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

Disassembly:
sub esp, 0x27c
mov eax, dword [0x44c274]
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.00414950
mov eax, dword [ebx + 4]
mov ebp, dword [0x44dfa4]
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 0x410615
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 0x4105f3
jmp 0x4103a0
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 0x4105de
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 0x4105de
test ah, 1
je 0x410452
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetMenuItemCount]
test eax, eax
jle 0x4105de
mov ecx, dword [esp + 0x10]
push 0
push 0
push 0x800
push ecx
call dword [0x44df30]
jmp 0x4105de
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 0x410504
call fcn.00414950
push 0x30
lea ecx, [esp + 0x74]
push 0
push ecx
call fcn.00414950
add esp, 0x18
mov dword [esp + 0x64], 0x30
call fcn.0040fd70
test al, al
je 0x4104a8
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 [0x44df60]
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 [0x44df30]
jmp 0x4105de
call fcn.00414950
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 0x410576
mov ecx, esi
push ecx
call dword [0x44df24]
test eax, eax
jne 0x4105be
mov eax, dword [esp + 0xe8]
mov ecx, dword [0x44e2d0]
push 0xc8
lea edx, [esp + 0xfc]
push edx
push eax
push ecx
mov esi, 0x43fb10
call dword [0x44df88]
xor ecx, ecx
test eax, eax
jle 0x4105be
cmp word [esp + ecx*2 + 0xf8], 0xa
je 0x4105b7
add ecx, 1
cmp ecx, eax
jl 0x4105a3
jmp 0x4105be
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 [0x44df30]
mov esi, dword [esp + 0x1c]
add esi, 1
cmp esi, dword [esp + 0x14]
mov dword [esp + 0x1c], esi
jl 0x4103a0
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.USER32.dll_GetMenuItemCount]
test eax, eax
jne 0x410619
test esi, esi
je 0x41060d
push esi
call dword [sym.imp.USER32.dll_DestroyMenu]
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_MessageBeep]
xor al, al
jmp 0x41061d
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.004144f2
add esp, 0x27c
ret 4