Function at 0x404610
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
push ebx
push esi
lea eax, [ebp - 0x10]
push edi
mov edi, dword [sym.imp.USER32.dll_EnumWindows]
xor esi, esi
push eax
push 0x404510
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call edi
mov eax, dword [ebp - 0xc]
cmp eax, esi
je 0x404657
push eax
push 4
call fcn.00407260
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
cmp eax, esi
je 0x40466c
push eax
push 8
call fcn.00407260
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], esi
jne 0x404676
cmp dword [ebp - 0x10], esi
je 0x404687
lea ecx, [ebp - 0x10]
mov dword [ebp - 0xc], esi
push ecx
push 0x404510
mov dword [ebp - 4], esi
call edi
push esi
push 2
call dword [0x414b20]
lea edx, [ebp - 0x15c]
mov ebx, eax
mov ecx, 0x4a
mov esi, 0x414b40
lea edi, [ebp - 0x15c]
push edx
rep movsd dword es:[edi], dword [esi]
push ebx
mov dword [ebp - 0x15c], 0x128
call dword [0x414b2c]
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x154]
cmp eax, esi
je 0x4046ef
lea eax, [ebp - 0x15c]
push eax
push ebx
call dword [0x414b30]
test eax, eax
je 0x4046e3
cmp dword [ebp - 0x154], esi
jne 0x4046c9
cmp dword [ebp - 0x154], esi
je 0x4046ef
xor esi, esi
jmp 0x4046f2
mov esi, dword [ebp - 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x4047e6
push 0
push 0x1f4
push 1
push 0
call dword [sym.imp.USER32.dll_SetTimer]
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
lea ecx, [ebp - 0x34]
push 0
push ecx
mov esi, eax
call edi
test eax, eax
mov dword [ebp - 0x14], eax
je 0x404762
lea edx, [ebp - 0x34]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
cmp dword [ebp - 0x30], 0x113
jne 0x40474f
cmp dword [ebp - 0x2c], esi
je 0x404762
push 0
push 0
lea ecx, [ebp - 0x34]
push 0
push ecx
call edi
test eax, eax
mov dword [ebp - 0x14], eax
jne 0x40472d
push esi
push 0
call dword [sym.imp.USER32.dll_KillTimer]
push 0
push 2
call dword [0x414b20]
lea edx, [ebp - 0x15c]
mov ebx, eax
mov ecx, 0x4a
mov esi, 0x414b40
lea edi, [ebp - 0x15c]
push edx
rep movsd dword es:[edi], dword [esi]
push ebx
mov dword [ebp - 0x15c], 0x128
call dword [0x414b2c]
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x154]
cmp eax, esi
je 0x4047d4
lea eax, [ebp - 0x15c]
push eax
push ebx
call dword [0x414b30]
test eax, eax
je 0x4047c8
cmp dword [ebp - 0x154], esi
jne 0x4047ae
cmp dword [ebp - 0x154], esi
je 0x4047d4
xor esi, esi
jmp 0x4047d7
mov esi, dword [ebp - 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x404701
mov esi, dword [ebp + 0xc]
push 0xffffffffffffffff
push esi
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x404808
lea ecx, [ebp - 0x18]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x40483e
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x404832
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
mov edx, dword [ebp - 0x10]
dec eax
mov dword [ebp - 0xc], eax
push 1
mov eax, dword [edx + eax*4]
push eax
call esi
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x40481c
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00406fc0
add esp, 4
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x404879
mov eax, dword [ebp - 4]
test eax, eax
je 0x404870
mov esi, dword [sym.imp.USER32.dll_EnableMenuItem]
dec eax
push 0x400
mov dword [ebp - 4], eax
mov edx, dword [ecx + eax*8 + 4]
mov eax, dword [ecx + eax*8]
push edx
push eax
call esi
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
test eax, eax
jne 0x404852
push ecx
call fcn.00406fc0
add esp, 4
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret