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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xe8
mov esi, esp
lea eax, [esi + 0xd0]
lea ecx, [esi + 0xdc]
mov dword [esi + 0xa4], ecx
mov dword [esi + 0xa0], eax
xor eax, eax
mov ecx, 0x60
mov dword [esi + 0x9c], eax
mov eax, ecx
call fcn.0065ab00
mov eax, esp
and eax, 0xfffffff8
mov esp, eax
mov ecx, 0x18
mov dword [esi + 0x98], eax
mov eax, ecx
call fcn.0065ab00
mov eax, esp
and eax, 0xfffffff8
mov esp, eax
lea ecx, [esi + 0xc0]
mov edx, 4
mov dword [esi + 0x94], eax
mov eax, edx
mov dword [esi + 0x90], ecx
call fcn.0065ab00
mov eax, esp
mov ecx, dword [esi + 0x98]
mov edx, dword [esi + 0x9c]
mov dword [esi + 0x8c], eax
mov dword [esi + 0x88], ecx
mov dword [esi + 0x84], edx
mov eax, dword [esi + 0x84]
mov ecx, 0x3e304d
mov dword [esi + 0xe0], ecx
sub esp, 8
mov ecx, esp
lea edx, [esi + 0xe0]
mov dword [ecx + 4], edx
mov dword [ecx], 0x55d
mov ecx, dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
mov dword [esi + 0x80], eax
call ecx
mov dword [esi + 0xdc], 0
sub esp, 0xc
mov ecx, esp
mov edx, dword [esi + 0xa4]
mov dword [ecx + 8], edx
mov dword [ecx + 4], 0x38a
mov dword [ecx], 0x24acc1
mov ecx, dword [sym.imp.GDI32.dll_GetEnhMetaFilePaletteEntries]
mov dword [esi + 0x7c], eax
call ecx
sub esp, 4
mov ecx, esp
mov dword [ecx], 0x564e5e
mov ecx, dword [sym.imp.KERNEL32.dll_GetProcessId]
mov dword [esi + 0x78], eax
call ecx
mov dword [esi + 0xd8], 0x624
sub esp, 8
mov ecx, esp
lea edx, [esi + 0xd8]
mov dword [ecx + 4], edx
mov dword [ecx], 0x1e1a66
mov ecx, dword [sym.imp.KERNEL32.dll_GetCommMask]
mov dword [esi + 0x74], eax
call ecx
sub esp, 0xc
mov ecx, esp
mov dword [ecx + 8], 0x561
mov dword [ecx + 4], str.NFtBIARnL3rQ_eU
mov dword [ecx], 0x59b
mov ecx, dword [sym.imp.USER32.dll_CharNextExA]
mov dword [esi + 0x70], eax
call ecx
sub esp, 0x10
mov ecx, dword [esi + 0xa0]
mov edx, dword [ecx]
mov edi, dword [ecx + 4]
mov ebx, esp
mov dword [ebx + 8], edi
mov dword [ebx + 4], edx
mov dword [ebx + 0xc], 0xfda
mov dword [ebx], 0xf2eeb0
mov edx, dword [sym.imp.USER32.dll_ChildWindowFromPointEx]
mov dword [esi + 0x6c], eax
call edx
xor ecx, ecx
mov dword [esi + 0x68], eax
mov dword [esi + 0x64], ecx
mov eax, dword [esi + 0x64]
mov ecx, 0x14
mov dword [esi + 0x60], eax
xor edx, edx
div ecx
cmp edx, 5
jne 0x4015cc
sub esp, 8
mov eax, esp
mov dword [eax + 4], 0xf33
mov dword [eax], 0xf33
mov eax, dword [sym.imp.KERNEL32.dll_Beep]
call eax
sub esp, 4
mov ecx, esp
mov dword [ecx], 0x58
mov ecx, dword [sym.imp.USER32.dll_IsCharLowerW]
mov dword [esi + 0x5c], eax
call ecx
mov dword [esi + 0x58], eax
mov eax, dword [esi + 0x60]
add eax, 1
cmp eax, 0x25a
mov dword [esi + 0x64], eax
jne 0x401583
sub esp, 4
mov eax, esp
mov dword [eax], 0x12b05b
mov eax, dword [sym.imp.USER32.dll_SetActiveWindow]
call eax
mov dword [esi + 0x54], eax
xor eax, eax
xor ecx, ecx
mov edx, dword [esi + 0x80]
sub edx, 0xd
mov dword [esi + 0x50], eax
mov dword [esi + 0x4c], ecx
mov dword [esi + 0x48], edx
je 0x4016e1
jmp 0x401611
mov eax, dword [esi + 0x80]
sub eax, 0x55
mov ecx, dword [esi + 0x4c]
mov dword [esi + 0x44], eax
mov dword [esi + 0x40], ecx
jne 0x401747
jmp 0x40162b
xor eax, eax
mov ecx, 0x10
sub esp, 0xc
mov edx, dword [esi + 0x90]
mov dword [esp], edx
mov dword [esp + 4], 0
mov dword [esp + 8], 0x10
mov dword [esi + 0x3c], eax
mov dword [esi + 0x38], ecx
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [esi + 0xbc], 0xd7e
sub esp, 0x18
mov eax, esp
lea ecx, [esi + 0xbc]
mov dword [eax + 0x14], ecx
lea ecx, [esi + 0xc0]
mov dword [eax + 0x10], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], 0x938
mov dword [eax + 4], 0x56a
mov dword [eax], 0xfcfcf4
mov eax, dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call eax
sub esp, 8
mov ecx, esp
lea edx, [esi + 0xa8]
mov dword [ecx + 4], edx
mov dword [ecx], 0xbddbf5
mov ecx, dword [sym.imp.USER32.dll_GetClientRect]
mov dword [esi + 0x34], eax
call ecx
sub esp, 0xc
mov ecx, esp
mov dword [ecx + 8], 0xdf4
mov dword [ecx + 4], str.FIW0temvV3_M_4f
mov dword [ecx], 0xbd8
mov ecx, dword [sym.imp.USER32.dll_CharNextExA]
mov dword [esi + 0x30], eax
call ecx
mov dword [esi + 0x2c], eax
mov eax, dword [esi + 0x8c]
mov dword [eax], 0xb04
sub esp, 8
mov ecx, esp
mov dword [ecx + 4], eax
mov dword [ecx], 0xf53109
mov ecx, dword [sym.imp.KERNEL32.dll_GetCommMask]
call ecx
sub esp, 8
mov ecx, esp
mov dword [ecx + 4], 0xda5
mov dword [ecx], 0x2cd23b
mov ecx, dword [sym.imp.USER32.dll_ShowWindow]
mov dword [esi + 0x28], eax
call ecx
sub esp, 8
mov ecx, esp
mov edx, dword [esi + 0x98]
mov dword [ecx], edx
mov dword [ecx + 4], 0xeb1
mov ecx, dword [sym.imp.KERNEL32.dll_WaitForDebugEvent]
mov dword [esi + 0x24], eax
call ecx
mov dword [esi + 0x20], eax
jmp 0x401801
mov eax, dword [esi + 0x40]
sub esp, 0x24
mov ecx, esp
mov dword [ecx + 0x20], 0x8d9
mov dword [ecx + 0x1c], 0xe27
mov dword [ecx + 0x18], 0x3e4
mov dword [ecx + 0x14], 0x3e4
mov dword [ecx + 0x10], 0x3e4
mov dword [ecx + 0xc], 0xa3f
mov dword [ecx + 8], 0x1f4
mov dword [ecx + 4], 0x3e4
mov dword [ecx], 0x3354a9
mov ecx, dword [sym.imp.GDI32.dll_Pie]
mov dword [esi + 0x1c], eax
call ecx
mov ecx, dword [sym.imp.USER32.dll_GetMessageTime]
mov dword [esi + 0x18], eax
call ecx
sub esp, 0xc
mov ecx, esp
mov dword [ecx + 8], 0xf42
mov dword [ecx + 4], 0x4c
mov dword [ecx], 0x837c18
mov ecx, dword [sym.imp.USER32.dll_GetMenuState]
mov dword [esi + 0x14], eax
call ecx
sub esp, 8
mov ecx, esp
mov edx, dword [esi + 0x94]
mov dword [ecx + 4], edx
mov dword [ecx], 0xacce78
mov ecx, dword [sym.imp.ole32.dll_OleCreateMenuDescriptor]
mov dword [esi + 0x10], eax
call ecx
mov ecx, dword [esi + 0x1c]
add ecx, 1
cmp ecx, 0xa
mov dword [esi + 0xc], eax
mov dword [esi + 0x40], ecx
jne 0x401747
mov eax, dword [sym.imp.KERNEL32.dll_GetACP]
call eax
mov ecx, dword [esi + 0x80]
add ecx, 1
cmp ecx, 0x123
sete dl
mov dword [esi + 8], eax
mov dword [esi + 4], ecx
mov byte [esi + 3], dl
mov al, byte [esi + 3]
test al, 1
mov ecx, dword [esi + 4]
mov dword [esi + 0x84], ecx
jne 0x40183b
jmp 0x401487
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret