Function at 0x405c99
Capabilities:
Enumerate gui resources

Disassembly:
push 0x54
mov eax, 0x4384eb
call fcn.004233a3
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 0x405f58
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], 0xb5d0d0d0
mov dword [ebp - 0x30], 0xd0d0d0bb
mov dword [ebp - 0x2c], 0xf0d19e63
mov dword [ebp - 0x28], 0xcc24
call fcn.00403789
push eax
lea ecx, [ebp - 0x20]
call fcn.004024cc
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.0040148d
mov eax, dword [0x45375c]
mov esi, dword [0x453758]
cmp esi, eax
je 0x405d53
mov edi, eax
mov ecx, esi
call fcn.00406108
add esi, 8
cmp esi, edi
jne 0x405d3c
mov esi, dword [0x453758]
mov edi, dword [ebp - 0x40]
push 0
push 0x4060ff
mov dword [0x45375c], esi
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [0x45375c]
xor ecx, ecx
mov eax, dword [0x453758]
sub esi, eax
sar esi, 3
mov dword [ebp - 0x24], ecx
test esi, esi
je 0x405f34
push dword [eax + ecx*8]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x405f1f
mov eax, dword [0x453768]
xor edx, edx
sub eax, dword [0x453764]
sar eax, 3
test eax, eax
je 0x405df0
mov ecx, dword [ebp - 0x24]
mov edi, dword [0x453758]
mov edi, dword [edi + ecx*8]
mov dword [ebp - 0x20], edi
mov edi, dword [0x453764]
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [edi + edx*8]
mov edi, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x24]
je 0x405dd2
inc edx
cmp edx, eax
jb 0x405db7
jmp 0x405df0
mov eax, dword [0x453764]
lea ecx, [ecx*8 + 4]
add ecx, dword [0x453758]
lea eax, [eax + edx*8]
add eax, 4
push eax
call fcn.00402868
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov ecx, dword [0x453758]
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 0x405e53
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x54], 0xd
mov dword [ebp - 0x50], 0xc862a6c2
mov dword [ebp - 0x4c], 0x5fb7b6c3
mov dword [ebp - 0x48], 0xe6e6d0d1
mov dword [ebp - 0x44], 0xcc24f0e6
call fcn.00406516
push eax
lea ecx, [ebp - 0x5c]
call fcn.004024cc
mov dword [ebp - 4], 2
or ebx, 1
jmp 0x405e91
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], 0xd
mov dword [ebp - 0x34], 0xd0e4e4e4
mov dword [ebp - 0x30], 0x66babcb7
mov dword [ebp - 0x2c], 0x5fb7b6c3
mov dword [ebp - 0x28], 0xcc24f0d1
call fcn.00406516
push eax
lea ecx, [ebp - 0x58]
call fcn.004024cc
mov dword [ebp - 4], 3
or ebx, 2
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x3c], ebx
call fcn.00402582
mov dword [ebp - 4], 5
test bl, 2
je 0x405ebe
and ebx, 0xfffffffd
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x58]
lea ecx, [ecx - 0x10]
call fcn.0040148d
mov byte [ebp - 4], 7
test bl, 1
je 0x405edc
and ebx, 0xfffffffe
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x5c]
lea ecx, [ecx - 0x10]
call fcn.0040148d
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 [0x453758]
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.0040148d
mov ecx, dword [ebp - 0x24]
inc ecx
mov dword [ebp - 0x24], ecx
cmp ecx, esi
jae 0x405f34
mov eax, dword [0x453758]
jmp 0x405d83
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.00423352
ret