Function at 0x458e60
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fa038
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x53f030]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0
push 0
push 0
push 0
mov dword [esi + 0x10], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0xc], eax
test eax, eax
je 0x4590cc
mov eax, dword [esi + 0x14]
push 0x543bec
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
lea eax, [ebp - 0x14]
mov ecx, 0x543c04
push eax
call fcn.00458cf0
push 0x543bec
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, esi
call fcn.00458d60
xor ecx, ecx
xor ebx, ebx
mov dword [ebp - 0x10], ecx
cmp dword [esi + 0x10], ecx
jne 0x459052
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
test ebx, ebx
jne 0x458f1f
cmp ecx, 5
jge 0x458f1f
push esi
inc ecx
push 0x4590e0
mov dword [ebp - 0x10], ecx
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [esi + 0x20], ebx
je 0x458f1f
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x4ff
push dword [esi + 0x34]
lea eax, [esi + 0xc]
push 0
push eax
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp dword [esi + 0x10], 0
jne 0x459052
cmp eax, 0x80
je 0x459052
cmp eax, 0xffffffff
je 0x459052
cmp eax, 0x102
jne 0x458f7b
push esi
push 0x4590e0
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [esi + 0x20], 0
je 0x458fed
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x458fed
test eax, eax
jne 0x458fed
xor edi, edi
cmp edi, dword [esi + 0x20]
jge 0x458fc2
test edi, edi
js 0x459041
cmp edi, dword [esi + 0x20]
jge 0x459041
push dword [esi + 0x18]
mov eax, dword [esi + 0x1c]
mov ecx, 0x5442c8
push dword [esi + 8]
push dword [eax + edi*4]
call fcn.004cd230
test eax, eax
je 0x458fbb
test ebx, ebx
mov eax, 1
cmove ebx, eax
inc edi
cmp dword [esi + 0x10], 0
je 0x458f81
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x458fd9
push eax
call fcn.004d92bb
add esp, 4
mov dword [esi + 0x1c], 0
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
cmp dword [esi + 0x10], 0
jne 0x459052
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x30]
push eax
call edi
test eax, eax
je 0x459033
push 0
push 0
push 0
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x45902d
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp dword [esi + 0x10], 0
je 0x458ff3
cmp dword [esi + 0x10], 0
jne 0x459052
mov ecx, dword [ebp - 0x10]
jmp 0x458ef8
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
xor edi, edi
cmp dword [esi + 0x2c], edi
jle 0x459077
mov ebx, dword [sym.imp.USER32.dll_UnhookWinEvent]
nop
test edi, edi
js 0x459041
cmp edi, dword [esi + 0x2c]
jge 0x459041
mov eax, dword [esi + 0x28]
push dword [eax + edi*4]
call ebx
inc edi
cmp edi, dword [esi + 0x2c]
jl 0x459060
mov esi, dword [esi + 0x14]
push 0x543bec
mov dword [ebp - 0x14], 0x543bec
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x543c0c]
xor eax, eax
mov dword [ebp - 4], 0
test ecx, ecx
jle 0x4590c1
mov edx, dword [0x543c04]
cmp dword [edx + eax*4], esi
je 0x4590b1
inc eax
cmp eax, ecx
jl 0x4590a5
jmp 0x4590c1
cmp eax, 0xffffffff
je 0x4590c1
push eax
mov ecx, 0x543c04
call fcn.0044a480
push 0x543bec
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret