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

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0xc8
xor eax, eax
mov ecx, 0x18
lea edx, [esp + 0x90]
mov dword [esp], edx
mov dword [esp + 4], 0
mov dword [esp + 8], 0x18
mov dword [esp + 0x8c], eax
mov dword [esp + 0x88], ecx
call fcn.00577e50
mov eax, esp
lea ecx, [esp + 0x90]
mov dword [eax], ecx
mov eax, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call eax
sub esp, 4
xor eax, eax
lea ecx, [esp + 0xa8]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x80]
mov ecx, eax
sub ecx, 0xf
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], ecx
je 0x4012bf
jmp 0x401245
mov eax, dword [esp + 0x7c]
sub eax, 0x2f
mov dword [esp + 0x74], eax
jne 0x4012d1
jmp 0x401254
mov eax, esp
mov dword [eax + 4], 0xf0e79d
mov dword [eax], 0xe60828
mov eax, dword [sym.imp.GDI32.dll_GetClipRgn]
call eax
sub esp, 8
xor ecx, ecx
mov edx, 0x1c
mov esi, dword [esp + 0x84]
mov dword [esp], esi
mov dword [esp + 4], 0
mov dword [esp + 8], 0x1c
mov dword [esp + 0x70], eax
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x68], edx
call fcn.00577e50
mov eax, esp
lea ecx, [esp + 0xa8]
mov dword [eax + 4], ecx
mov dword [eax], 0xf6dfca
mov eax, dword [sym.imp.USER32.dll_TranslateMDISysAccel]
call eax
sub esp, 8
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x7c]
add eax, 1
mov dword [esp + 0x60], eax
jmp 0x401492
mov eax, dword [esp + 0x7c]
add eax, 1
mov ecx, dword [sym.imp.USER32.dll_EndMenu]
mov dword [esp + 0x5c], eax
call ecx
mov ecx, esp
mov dword [ecx + 4], 0x499
mov dword [ecx], 0xf0c
mov ecx, dword [sym.imp.ole32.dll_CoCancelCall]
mov dword [esp + 0x58], eax
call ecx
sub esp, 8
mov ecx, dword [sym.imp.USER32.dll_EndMenu]
mov dword [esp + 0x54], eax
call ecx
mov ecx, esp
mov dword [ecx + 4], 0x499
mov dword [ecx], 0xf0c
mov ecx, dword [sym.imp.ole32.dll_CoCancelCall]
mov dword [esp + 0x50], eax
call ecx
sub esp, 8
mov ecx, dword [sym.imp.USER32.dll_EndMenu]
mov dword [esp + 0x4c], eax
call ecx
mov ecx, esp
mov dword [ecx + 4], 0x499
mov dword [ecx], 0xf0c
mov ecx, dword [sym.imp.ole32.dll_CoCancelCall]
mov dword [esp + 0x48], eax
call ecx
sub esp, 8
mov ecx, dword [sym.imp.USER32.dll_EndMenu]
mov dword [esp + 0x44], eax
call ecx
mov ecx, esp
mov dword [ecx + 4], 0x499
mov dword [ecx], 0xf0c
mov ecx, dword [sym.imp.ole32.dll_CoCancelCall]
mov dword [esp + 0x40], eax
call ecx
sub esp, 8
mov ecx, dword [sym.imp.USER32.dll_EndMenu]
mov dword [esp + 0x3c], eax
call ecx
mov ecx, esp
mov dword [ecx + 4], 0x499
mov dword [ecx], 0xf0c
mov ecx, dword [sym.imp.ole32.dll_CoCancelCall]
mov dword [esp + 0x38], eax
call ecx
sub esp, 8
mov ecx, dword [sym.imp.USER32.dll_EndMenu]
mov dword [esp + 0x34], eax
call ecx
mov ecx, esp
mov dword [ecx + 4], 0x499
mov dword [ecx], 0xf0c
mov ecx, dword [sym.imp.ole32.dll_CoCancelCall]
mov dword [esp + 0x30], eax
call ecx
sub esp, 8
mov ecx, dword [sym.imp.USER32.dll_EndMenu]
mov dword [esp + 0x2c], eax
call ecx
mov ecx, esp
mov dword [ecx + 4], 0x499
mov dword [ecx], 0xf0c
mov ecx, dword [sym.imp.ole32.dll_CoCancelCall]
mov dword [esp + 0x28], eax
call ecx
sub esp, 8
mov ecx, dword [sym.imp.USER32.dll_EndMenu]
mov dword [esp + 0x24], eax
call ecx
mov ecx, esp
mov dword [ecx + 4], 0x499
mov dword [ecx], 0xf0c
mov ecx, dword [sym.imp.ole32.dll_CoCancelCall]
mov dword [esp + 0x20], eax
call ecx
sub esp, 8
mov ecx, dword [sym.imp.USER32.dll_EndMenu]
mov dword [esp + 0x1c], eax
call ecx
mov ecx, esp
mov dword [ecx + 4], 0x499
mov dword [ecx], 0xf0c
mov ecx, dword [sym.imp.ole32.dll_CoCancelCall]
mov dword [esp + 0x18], eax
call ecx
sub esp, 8
mov ecx, dword [sym.imp.USER32.dll_EndMenu]
mov dword [esp + 0x14], eax
call ecx
mov ecx, esp
mov dword [ecx + 4], 0x499
mov dword [ecx], 0xf0c
mov ecx, dword [sym.imp.ole32.dll_CoCancelCall]
mov dword [esp + 0x10], eax
call ecx
sub esp, 8
mov ecx, dword [esp + 0x5c]
cmp ecx, 0x109
mov dword [esp + 0xc], eax
mov dword [esp + 0x60], ecx
je 0x4014a2
mov eax, dword [esp + 0x60]
mov dword [esp + 0x80], eax
jmp 0x40122d
lea esp, [ebp - 4]
pop esi
pop ebp
ret