Function at 0x4587b4
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
test byte [eax + 8], 1
je 0x4587dd
mov eax, dword [ebp - 4]
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x45898b
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
call sub.GDI32.DLL_SaveDC
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x458984
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
test byte [eax + 8], 2
je 0x458834
mov eax, dword [ebp - 0x10]
push eax
call sub.GDI32.DLL_SaveDC
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0xc], 0
je 0x458827
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.GDI32.DLL_RestoreDC
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.USER32.DLL_GetWindowRect
xor eax, eax
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.USER32.DLL_ClientToScreen
mov eax, dword [ebp - 0x30]
sub dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x2c]
sub dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
test byte [eax + 8], 4
je 0x458969
mov eax, dword [ebp - 8]
test byte [eax + 8], 8
je 0x4588be
mov eax, dword [ebp - 0x10]
push eax
call sub.GDI32.DLL_SaveDC
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
test byte [eax + 8], 2
je 0x45889d
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
call fcn.0051a7c0
push 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
push eax
push 0x14
mov eax, dword [ebp - 4]
push eax
call sub.USER32.DLL_SendMessageA
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.GDI32.DLL_RestoreDC
mov eax, dword [ebp - 0x10]
push eax
call sub.GDI32.DLL_SaveDC
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
test byte [eax + 8], 2
je 0x4588e1
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
call fcn.0051a7c0
push 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
push eax
push 0x318
mov eax, dword [ebp - 4]
push eax
call sub.USER32.DLL_SendMessageA
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.GDI32.DLL_RestoreDC
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
call fcn.0051a7c0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 8]
test byte [eax + 8], 0x10
je 0x458945
mov byte [ebp - 0x40], 1
mov dword [ebp - 0x34], 0x1e
lea eax, [ebp - 0x40]
push eax
push 0x4586cc
mov eax, dword [ebp - 4]
push eax
call sub.USER32.DLL_EnumChildWindows
mov eax, dword [ebp - 8]
test byte [eax + 8], 0x20
je 0x458969
mov byte [ebp - 0x40], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x40]
push eax
push 0x4586cc
call sub.USER32.DLL_EnumWindows
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45898b
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.GDI32.DLL_RestoreDC
ret
mov eax, dword [ebp - 8]
mov dword [eax + 0xc], 1
mov esp, ebp
pop ebp
ret 4