Function at 0x410200
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x27c
mov eax, dword [0x448270]
xor eax, esp
mov dword [esp + 0x278], eax
push ebx
mov ebx, dword [esp + 0x284]
push ebp
push esi
push edi
push 0x4c
xor esi, esi
lea eax, [esp + 0x9c]
push esi
push eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0xa0], 0x50
call fcn.004141c0
mov eax, dword [ebx + 4]
mov ebp, dword [0x449fa4]
add esp, 0xc
mov dword [esp + 0x98], 0x10
mov edx, dword [eax + 0xc]
mov eax, dword [eax]
lea ecx, [esp + 0x94]
push ecx
push edx
push 0x41c
push eax
call ebp
mov edi, dword [esp + 0xb4]
push esi
push esi
push 0x418
push edi
call ebp
cmp eax, esi
mov dword [esp + 0x14], eax
jle 0x410555
push esi
push esi
push 0x52e
push edi
call ebp
cmp eax, esi
setne cl
mov dword [esp + 0x20], eax
mov byte [ebx + 8], cl
call dword [sym.imp.USER32.dll_CreatePopupMenu]
lea edx, [esp + 0x54]
mov dword [esp + 0x10], eax
xor eax, eax
push edx
push edi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
call dword [sym.imp.USER32.dll_GetClientRect]
cmp dword [esp + 0x14], esi
mov dword [esp + 0x1c], esi
jle 0x410533
jmp 0x4102e0
xor eax, eax
mov dword [esp + 0xe4], eax
mov dword [esp + 0xe8], eax
mov dword [esp + 0xec], eax
mov dword [esp + 0xf0], eax
mov dword [esp + 0xf4], eax
lea eax, [esp + 0xe4]
push eax
push esi
push 0x417
push edi
call ebp
test byte [esp + 0xec], 8
jne 0x41051e
lea ecx, [esp + 0x24]
push ecx
push esi
xor eax, eax
push 0x41d
push edi
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
call ebp
mov eax, dword [esp + 0xec]
mov edx, dword [esp + 0x2c]
mov bl, al
shr bl, 2
and bl, 1
cmp edx, dword [esp + 0x5c]
jle 0x41051e
test ah, 1
je 0x410392
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetMenuItemCount]
test eax, eax
jle 0x41051e
mov ecx, dword [esp + 0x10]
push 0
push 0
push 0x800
push ecx
call dword [0x449f34]
jmp 0x41051e
mov edx, dword [esp + 0x18]
cmp byte [edx + 8], 0
push 0x18e
lea eax, [esp + 0xfe]
push 0
mov word [esp + 0x100], 0
push eax
je 0x410444
call fcn.004141c0
push 0x30
lea ecx, [esp + 0x74]
push 0
push ecx
call fcn.004141c0
add esp, 0x18
mov dword [esp + 0x64], 0x30
call fcn.0040fcb0
test al, al
je 0x4103e8
mov dword [esp + 0x64], 0x2c
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x64]
push eax
push 1
push esi
lea edx, [esp + 0x104]
push ecx
mov dword [esp + 0x78], 0x14
mov dword [esp + 0x98], edx
mov dword [esp + 0x9c], 0xc8
call dword [0x449f60]
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x78]
xor ecx, ecx
test bl, bl
sete cl
push edx
mov edx, dword [esp + 0x14]
push eax
or ecx, 0x10
push ecx
push edx
call dword [0x449f34]
jmp 0x41051e
call fcn.004141c0
xor eax, eax
add esp, 0xc
mov dword [esp + 0x38], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0xec]
push eax
lea esi, [esp + 0x100]
push 0x43f
mov ecx, esi
push edi
mov dword [esp + 0x44], 0x20
mov dword [esp + 0x48], 2
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], 0xc8
call ebp
cmp eax, 0xffffffff
je 0x4104b6
mov ecx, esi
push ecx
call dword [0x449f28]
test eax, eax
jne 0x4104fe
mov eax, dword [esp + 0xe8]
mov ecx, dword [0x44a2c8]
push 0xc8
lea edx, [esp + 0xfc]
push edx
push eax
push ecx
mov esi, 0x43cae8
call dword [0x449f88]
xor ecx, ecx
test eax, eax
jle 0x4104fe
cmp word [esp + ecx*2 + 0xf8], 0xa
je 0x4104f7
add ecx, 1
cmp ecx, eax
jl 0x4104e3
jmp 0x4104fe
lea esi, [esp + ecx*2 + 0xfa]
mov edx, dword [esp + 0xe8]
mov ecx, dword [esp + 0x10]
xor eax, eax
test bl, bl
sete al
push esi
push edx
push eax
push ecx
call dword [0x449f34]
mov esi, dword [esp + 0x1c]
add esi, 1
cmp esi, dword [esp + 0x14]
mov dword [esp + 0x1c], esi
jl 0x4102e0
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.USER32.dll_GetMenuItemCount]
test eax, eax
jne 0x410559
test esi, esi
je 0x41054d
push esi
call dword [sym.imp.USER32.dll_DestroyMenu]
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_MessageBeep]
xor al, al
jmp 0x41055d
mov dword [ebx], esi
mov al, 1
mov ecx, dword [esp + 0x288]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00413d5c
add esp, 0x27c
ret 4