Function at 0x405a69
Capabilities:
Enumerate gui resources

Disassembly:
push 0x54
mov eax, 0x43805b
call fcn.00422ef7
mov dword [ebp - 0x60], ecx
lea eax, [ebp - 0x1c]
xor ebx, ebx
push eax
mov dword [ebp - 0x3c], ebx
call dword [sym.imp.USER32.dll_GetCursorPos]
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov edi, eax
mov dword [ebp - 0x40], edi
test edi, edi
je 0x405d28
mov esi, dword [sym.imp.USER32.dll_AppendMenuW]
push ebx
push ebx
push 0x800
push edi
call esi
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], 0xb
mov dword [ebp - 0x34], 0x77242424
mov dword [ebp - 0x30], 0x2424247d
mov dword [ebp - 0x2c], 0x44235295
mov dword [ebp - 0x28], 0xc77d
call fcn.004036ee
push eax
lea ecx, [ebp - 0x20]
call fcn.00402546
and dword [ebp - 4], ebx
push dword [eax]
push 0x2c30
push ebx
push edi
call esi
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.00401564
mov eax, dword [0x45275c]
mov esi, dword [0x452758]
cmp esi, eax
je 0x405b23
mov edi, eax
mov ecx, esi
call fcn.00405ed3
add esi, 8
cmp esi, edi
jne 0x405b0c
mov esi, dword [0x452758]
mov edi, dword [ebp - 0x40]
push 0
push 0x405eca
mov dword [0x45275c], esi
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [0x45275c]
xor ecx, ecx
mov eax, dword [0x452758]
sub esi, eax
sar esi, 3
mov dword [ebp - 0x24], ecx
test esi, esi
je 0x405d04
push dword [eax + ecx*8]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x405cef
mov eax, dword [0x452768]
xor edx, edx
sub eax, dword [0x452764]
sar eax, 3
test eax, eax
je 0x405bc0
mov ecx, dword [ebp - 0x24]
mov edi, dword [0x452758]
mov edi, dword [edi + ecx*8]
mov dword [ebp - 0x20], edi
mov edi, dword [0x452764]
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [edi + edx*8]
mov edi, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x24]
je 0x405ba2
inc edx
cmp edx, eax
jb 0x405b87
jmp 0x405bc0
mov eax, dword [0x452764]
lea ecx, [ecx*8 + 4]
add ecx, dword [0x452758]
lea eax, [eax + edx*8]
add eax, 4
push eax
call fcn.004028dc
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov ecx, dword [0x452758]
mov edx, dword [ebp - 0x24]
and dword [ebp - 0x14], 0
mov dword [ebp - 0x20], eax
push dword [ecx + edx*8]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x405c23
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x54], 0xd
mov dword [ebp - 0x50], 0x6c964a76
mov dword [ebp - 0x4c], 0x91797a75
mov dword [ebp - 0x48], 0xa0a2423
mov dword [ebp - 0x44], 0xc77d440a
call fcn.004062d4
push eax
lea ecx, [ebp - 0x5c]
call fcn.00402546
mov dword [ebp - 4], 2
or ebx, 1
jmp 0x405c61
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], 0xd
mov dword [ebp - 0x34], 0x24080808
mov dword [ebp - 0x30], 0x8a7e7079
mov dword [ebp - 0x2c], 0x91797a75
mov dword [ebp - 0x28], 0xc77d4423
call fcn.004062d4
push eax
lea ecx, [ebp - 0x58]
call fcn.00402546
mov dword [ebp - 4], 3
or ebx, 2
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x3c], ebx
call fcn.004025e0
mov dword [ebp - 4], 5
test bl, 2
je 0x405c8e
and ebx, 0xfffffffd
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x58]
lea ecx, [ecx - 0x10]
call fcn.00401564
mov byte [ebp - 4], 7
test bl, 1
je 0x405cac
and ebx, 0xfffffffe
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x5c]
lea ecx, [ecx - 0x10]
call fcn.00401564
push dword [ebp - 0x14]
mov eax, dword [ebp - 0x24]
add eax, 0x2b68
push eax
push 0
push dword [ebp - 0x20]
call dword [sym.imp.USER32.dll_AppendMenuW]
mov eax, dword [0x452758]
mov edx, dword [ebp - 0x24]
push dword [eax + edx*8 + 4]
push dword [ebp - 0x20]
push 0x410
push 0
push edi
call dword [sym.imp.USER32.dll_InsertMenuW]
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00401564
mov ecx, dword [ebp - 0x24]
inc ecx
mov dword [ebp - 0x24], ecx
cmp ecx, esi
jae 0x405d04
mov eax, dword [0x452758]
jmp 0x405b53
mov esi, dword [ebp - 0x60]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
xor eax, eax
push eax
push esi
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push eax
push edi
call dword [sym.imp.USER32.dll_TrackPopupMenu]
push edi
call dword [sym.imp.USER32.dll_DestroyMenu]
call fcn.00422ea6
ret