Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .text:00401590 ; =============== S U B R O U T I N E =======================================
- .text:00401590
- .text:00401590
- .text:00401590 sub_401590 proc near ; DATA XREF: .rdata:0040245Cāo
- .text:00401590 push esi
- .text:00401591 mov esi, ecx
- .text:00401593 call ?OnInitDialog@CDialog@@UAEHXZ ; CDialog::OnInitDialog(void)
- .text:00401598 mov eax, [esi+20h]
- .text:0040159B push 0 ; lpTimerFunc
- .text:0040159D push 64h ; uElapse
- .text:0040159F push 3 ; nIDEvent
- .text:004015A1 push eax ; hWnd
- .text:004015A2 call ds:SetTimer
- .text:004015A8 push 0 ; int
- .text:004015AA lea ecx, [esi+64h] ; this
- .text:004015AD mov dword ptr [esi+60h], 0
- .text:004015B4 call ?EnableWindow@CWnd@@QAEHH@Z ; CWnd::EnableWindow(int)
- .text:004015B9 mov eax, 1
- .text:004015BE pop esi
- .text:004015BF retn
- .text:004015BF sub_401590 endp
- .text:004015BF
- .text:004015C0 ; ---------------------------------------------------------------------------
- .text:004015C0 sub esp, 0Ch
- .text:004015C3 push esi
- .text:004015C4 mov esi, ecx
- .text:004015C6 mov edx, [esi+60h]
- .text:004015C9 inc edx
- .text:004015CA mov eax, edx
- .text:004015CC mov [esi+60h], edx
- .text:004015CF cmp eax, 64h
- .text:004015D2 jle short loc_401608
- .text:004015D4 mov eax, [esi+20h]
- .text:004015D7 push edi
- .text:004015D8 push 3
- .text:004015DA push eax
- .text:004015DB call ds:KillTimer
- .text:004015E1 lea edi, [esi+64h]
- .text:004015E4 push 1
- .text:004015E6 mov ecx, edi
- .text:004015E8 call ?EnableWindow@CWnd@@QAEHH@Z ; CWnd::EnableWindow(int)
- .text:004015ED push offset unk_403024
- .text:004015F2 mov ecx, edi
- .text:004015F4 call ?SetWindowTextA@CWnd@@QAEXPBD@Z ; CWnd::SetWindowTextA(char const *)
- .text:004015F9 pop edi
- .text:004015FA mov ecx, esi
- .text:004015FC call ?Default@CWnd@@IAEJXZ ; CWnd::Default(void)
- .text:00401601 pop esi
- .text:00401602 add esp, 0Ch
- .text:00401605 retn 4
- .text:00401608 ; ---------------------------------------------------------------------------
- loc_401608: ; CODE XREF: .text:004015D2āj
- .text:00401608 mov ecx, 64h
- .text:0040160D lea edx, [esp+4]
- .text:00401611 sub ecx, eax
- .text:00401613 push ecx
- .text:00401614 push offset unk_403020
- .text:00401619 push edx
- .text:0040161A call ds:sprintf
- .text:00401620 add esp, 0Ch
- .text:00401623 lea eax, [esp+4]
- .text:00401627 lea ecx, [esi+64h]
- .text:0040162A push eax
- .text:0040162B call ?SetWindowTextA@CWnd@@QAEXPBD@Z ; CWnd::SetWindowTextA(char const *)
- .text:00401630 mov ecx, esi
- .text:00401632 call ?Default@CWnd@@IAEJXZ ; CWnd::Default(void)
- .text:00401637 pop esi
- .text:00401638 add esp, 0Ch
- .text:0040163B retn 4
- .text:0040163B ; ---------------------------------------------------------------------------
- .text:0040163E align 10h
- .text:00401640 cmp dword ptr [ecx+60h], 64h
- .text:00401644 jl short locret_40164B
- .text:00401646 jmp ?Default@CWnd@@IAEJXZ ; CWnd::Default(void)
- .text:0040164B ; ---------------------------------------------------------------------------
Add Comment
Please, Sign In to add comment