Function at 0x482ea0
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x567578
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x5d6b80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ebx, [esi + 0x38]
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
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 0x48311f
mov eax, dword [esi + 0x14]
push 0x5ddfb8
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, 0x5ddfd0
push eax
call fcn.00482c30
push 0x5ddfb8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, esi
call fcn.00482cb0
xor ecx, ecx
xor ebx, ebx
mov dword [ebp - 0x10], ecx
cmp dword [esi + 0x10], ecx
jne 0x4830a1
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
test ebx, ebx
jne 0x482f69
cmp ecx, 5
jge 0x482f69
push esi
inc ecx
push 0x483150
mov dword [ebp - 0x10], ecx
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [esi + 0x20], ebx
je 0x482f69
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 0x4830a1
cmp eax, 0x80
je 0x4830a1
cmp eax, 0xffffffff
je 0x4830a1
cmp eax, 0x102
jne 0x482fc5
push esi
push 0x483150
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [esi + 0x20], 0
je 0x48303c
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x48303c
test eax, eax
jne 0x48303c
xor edi, edi
jmp 0x482fd0
cmp edi, dword [esi + 0x20]
jge 0x483011
test edi, edi
js 0x483090
cmp edi, dword [esi + 0x20]
jge 0x483090
push dword [esi + 0x18]
mov eax, dword [esi + 0x1c]
mov ecx, 0x5de840
push dword [esi + 8]
push dword [eax + edi*4]
call fcn.005163f0
test eax, eax
je 0x48300a
test ebx, ebx
mov eax, 1
cmove ebx, eax
inc edi
cmp dword [esi + 0x10], 0
je 0x482fd0
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x483028
push eax
call fcn.0052616f
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 0x4830a1
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x30]
push eax
call edi
test eax, eax
je 0x483082
push 0
push 0
push 0
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x48307c
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 0x483042
cmp dword [esi + 0x10], 0
jne 0x4830a1
mov ecx, dword [ebp - 0x10]
jmp 0x482f42
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
xor edi, edi
cmp dword [esi + 0x2c], edi
jle 0x4830c7
mov ebx, dword [sym.imp.USER32.dll_UnhookWinEvent]
mov edi, edi
test edi, edi
js 0x483090
cmp edi, dword [esi + 0x2c]
jge 0x483090
mov eax, dword [esi + 0x28]
push dword [eax + edi*4]
call ebx
inc edi
cmp edi, dword [esi + 0x2c]
jl 0x4830b0
mov edi, dword [esi + 0x14]
push 0x5ddfb8
mov dword [ebp - 0x14], 0x5ddfb8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x5ddfd8]
xor eax, eax
mov dword [ebp - 4], 0
test ecx, ecx
jle 0x483111
mov edx, dword [0x5ddfd0]
cmp dword [edx + eax*4], edi
je 0x483101
inc eax
cmp eax, ecx
jl 0x4830f5
jmp 0x483111
cmp eax, 0xffffffff
je 0x483111
push eax
mov ecx, 0x5ddfd0
call fcn.00482de0
push 0x5ddfb8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ebx, [esi + 0x38]
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp dword [ebx], 0
jg 0x48313b
mov ecx, esi
call fcn.00482bb0
push esi
call fcn.0052586e
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret