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

Disassembly:
sub esp, 0x4dc
mov eax, dword [esp + 0x4e0]
push ebx
push ebp
push esi
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edi
xor ebx, ebx
push edx
mov edx, dword [esp + 0x4f8]
push 0x41b438
push ebx
push edx
push eax
mov dword [esp + 0x30], 0x1e
mov dword [esp + 0x2c], ebx
call dword [ecx + 0x14]
test eax, eax
jge 0x40df29
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x4dc
ret
mov eax, dword [esp + 0x4fc]
test eax, eax
je 0x40df42
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov ebp, eax
mov dword [esp + 0x24], ebp
jmp 0x40df4e
call dword [sym.imp.USER32.dll_CreateMenu]
mov dword [esp + 0x24], eax
mov ebp, eax
mov eax, dword [esp + 0x14]
test ebp, ebp
jne 0x40df69
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x4dc
ret
mov edx, dword [esp + 0x4f8]
mov dword [edx], eax
mov ecx, dword [eax]
lea edx, [esp + 0x28]
push edx
mov edx, dword [0x41eae8]
push 0xe0
push edx
push eax
call dword [ecx + 0x10]
test eax, eax
jl 0x40e2b8
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x38]
push edx
lea edx, [esp + 0x14]
mov ecx, dword [eax]
push edx
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x40e2aa
lea eax, [esp + 0x1cc]
mov dword [esp + 0x20], eax
cmp ebx, 0xc8
jge 0x40e2aa
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x3c]
push edx
lea edx, [esp + 0x14]
mov ecx, dword [eax]
push edx
push 1
push eax
call dword [ecx + 0x24]
test dword [esp + 0x3c], 0x20000000
je 0x40e142
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x40]
push 0
push eax
push ecx
push edx
call fcn.0040dee0
mov edi, eax
add esp, 0x10
test edi, edi
je 0x40e125
push 0x220
call fcn.00412b14
mov esi, eax
mov dword [esi], 0
mov eax, dword [esp + 0x14]
mov dword [esi + 4], eax
mov dword [esi + 0x218], 1
mov dword [esi + 0x214], edi
mov ecx, dword [esp + 0x44]
lea edi, [esi + 8]
mov dword [esi + 0x21c], ecx
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
push edi
push 0
push edx
push eax
call fcn.0040b260
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
lea ecx, [esi + 0x10c]
push ecx
push 0x8000
push edx
push eax
call fcn.0040b260
add esp, 0x24
lea ecx, [esp + 0x78]
mov dword [esp + 0x78], 0x154
push 0
push ecx
push 0
push 0x29
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
lea edx, [esp + 0x118]
push edx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov ebp, eax
test ebp, ebp
jne 0x40e0aa
push 0x11
call dword [sym.imp.GDI32.dll_GetStockObject]
mov ebp, eax
mov eax, dword [0x41eae8]
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
push ebp
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
lea ecx, [esp + 0x30]
mov dword [esp + 0x2c], eax
push ecx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esi + 8]
push ecx
push eax
push ebx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov eax, dword [esp + 0x34]
mov ecx, dword [0x41ed78]
cmp eax, ecx
jle 0x40e0f2
mov dword [0x41ed78], eax
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x1c]
lea eax, [edx + 0x1e]
cmp eax, ecx
jle 0x40e105
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x2c]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push ebp
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [0x41eae8]
push ebx
push ecx
jmp 0x40e26a
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x40e28c
mov eax, dword [0x41ed80]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x14]
jmp 0x40e28c
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40e28c
push 0x220
call fcn.00412b14
mov esi, eax
mov eax, dword [0x41ed7c]
mov dword [esi], eax
mov ecx, dword [0x41ed7c]
inc ecx
lea edi, [esi + 8]
mov dword [0x41ed7c], ecx
mov ecx, dword [esp + 0x14]
mov dword [esi + 4], ecx
mov dword [esi + 0x218], 0
mov edx, dword [esp + 0x18]
push edi
mov dword [esi + 0x21c], edx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push 0
push eax
push ecx
call fcn.0040b260
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
lea edx, [esi + 0x10c]
push edx
push 0x8000
push eax
push ecx
call fcn.0040b260
add esp, 0x24
lea edx, [esp + 0x78]
mov dword [esp + 0x78], 0x154
push 0
push edx
push 0
push 0x29
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
lea eax, [esp + 0x118]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov ebp, eax
test ebp, ebp
jne 0x40e1f3
push 0x11
call dword [sym.imp.GDI32.dll_GetStockObject]
mov ebp, eax
mov ecx, dword [0x41eae8]
push ecx
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
push ebp
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x2c], eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x30]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push edx
lea eax, [esi + 8]
push ecx
push eax
push ebx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov eax, dword [esp + 0x34]
mov ecx, dword [0x41ed78]
cmp eax, ecx
jle 0x40e23c
mov dword [0x41ed78], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x1c]
add eax, 0x1e
cmp eax, ecx
jle 0x40e24f
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x2c]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push ebp
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edx, dword [0x41eae8]
push ebx
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov ebp, dword [esp + 0x24]
inc edx
mov dword [eax], esi
add eax, 4
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], eax
mov ebx, edx
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x38]
push edx
lea edx, [esp + 0x14]
mov ecx, dword [eax]
push edx
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x40dfba
mov eax, dword [esp + 0x28]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
test ebx, ebx
jne 0x40e2f0
mov eax, dword [0x422ba0]
lea edx, [esp + 0x44]
push 0x32
push edx
push 0xa43a
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
lea ecx, [esp + 0x44]
push ecx
push 0x12c
push 3
push ebp
call dword [sym.imp.USER32.dll_AppendMenuA]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x4dc
ret
jle 0x40e30a
push 0x40e360
push 4
lea edx, [esp + 0x1d4]
push ebx
push edx
call fcn.004133f8
add esp, 0x10
test ebx, ebx
jle 0x40e353
mov edi, dword [sym.imp.USER32.dll_AppendMenuA]
lea esi, [esp + 0x1cc]
mov eax, dword [esi]
mov ecx, dword [esp + 0x1c]
mov dword [eax + 0x210], ecx
mov eax, dword [esi]
push eax
mov ecx, dword [eax + 0x218]
test ecx, ecx
je 0x40e342
mov edx, dword [eax + 0x214]
push edx
push 0x110
jmp 0x40e34a
mov eax, dword [eax]
push eax
push 0x100
push ebp
call edi
add esi, 4
dec ebx
jne 0x40e31b
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x4dc
ret