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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x178
xor eax, eax
lea ecx, [esp + 0xd0]
lea edx, [esp + 0x150]
lea esi, [esp + 0x160]
lea edi, [esp + 0x170]
mov dword [esp + 0xb4], ecx
mov dword [esp + 0xb0], edx
mov dword [esp + 0xac], esi
mov dword [esp + 0xa8], edi
mov dword [esp + 0xa4], eax
jmp 0x40144e
mov eax, dword [esp + 0xa0]
add eax, 1
cmp eax, 0x25a
mov dword [esp + 0x9c], eax
je 0x4015ca
jmp 0x40156f
mov eax, dword [esp + 0xa4]
mov ecx, 0x3e304d
mov dword [esp + 0x174], ecx
mov ecx, esp
lea edx, [esp + 0x174]
mov dword [ecx + 4], edx
mov dword [ecx], 0x55d
mov ecx, dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
mov dword [esp + 0x98], eax
call ecx
sub esp, 8
mov dword [esp + 0x170], 0
mov ecx, esp
mov edx, dword [esp + 0xa8]
mov dword [ecx + 8], edx
mov dword [ecx + 4], 0x38a
mov dword [ecx], 0x24acc1
mov ecx, dword [sym.imp.GDI32.dll_GetEnhMetaFilePaletteEntries]
mov dword [esp + 0x94], eax
call ecx
sub esp, 0xc
mov ecx, esp
mov dword [ecx], 0x564e5e
mov ecx, dword [sym.imp.KERNEL32.dll_GetProcessId]
mov dword [esp + 0x90], eax
call ecx
sub esp, 4
mov dword [esp + 0x16c], 0x624
mov ecx, esp
lea edx, [esp + 0x16c]
mov dword [ecx + 4], edx
mov dword [ecx], 0x1e1a66
mov ecx, dword [sym.imp.KERNEL32.dll_GetCommMask]
mov dword [esp + 0x8c], eax
call ecx
sub esp, 8
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 [esp + 0x88], eax
call ecx
sub esp, 0xc
mov ecx, dword [esp + 0xac]
mov edx, dword [ecx]
mov esi, dword [ecx + 4]
mov edi, esp
mov dword [edi + 8], esi
mov dword [edi + 4], edx
mov dword [edi + 0xc], 0xfda
mov dword [edi], 0xf2eeb0
mov edx, dword [sym.imp.USER32.dll_ChildWindowFromPointEx]
mov dword [esp + 0x84], eax
call edx
sub esp, 0x10
xor ecx, ecx
mov dword [esp + 0x80], eax
mov dword [esp + 0x9c], ecx
mov eax, dword [esp + 0x9c]
mov ecx, 0x14
mov dword [esp + 0xa0], eax
xor edx, edx
div ecx
cmp edx, 5
jne 0x40142b
mov eax, esp
mov dword [eax + 4], 0xf33
mov dword [eax], 0xf33
mov eax, dword [sym.imp.KERNEL32.dll_Beep]
call eax
sub esp, 8
mov dword [esp + 0x7c], eax
mov eax, esp
mov dword [eax], 0x58
mov eax, dword [sym.imp.USER32.dll_IsCharLowerW]
call eax
sub esp, 4
mov dword [esp + 0x78], eax
jmp 0x40142b
mov eax, esp
mov dword [eax], 0x12b05b
mov eax, dword [sym.imp.USER32.dll_SetActiveWindow]
call eax
sub esp, 4
mov dword [esp + 0x74], eax
xor eax, eax
xor ecx, ecx
mov edx, dword [esp + 0x98]
sub edx, 0xd
mov dword [esp + 0x70], eax
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x68], edx
je 0x4016da
jmp 0x401602
mov eax, dword [esp + 0x98]
sub eax, 0x55
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x64], eax
mov dword [esp + 0x60], ecx
jne 0x401749
jmp 0x401620
xor eax, eax
mov ecx, 0x10
mov edx, dword [esp + 0xb0]
mov dword [esp], edx
mov dword [esp + 4], 0
mov dword [esp + 8], 0x10
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], ecx
call sub.msvcrt.dll_memset
mov dword [esp + 0x14c], 0xd7e
mov eax, esp
lea ecx, [esp + 0x14c]
mov dword [eax + 0x14], ecx
lea ecx, [esp + 0x150]
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, 0x18
mov ecx, esp
lea edx, [esp + 0x138]
mov dword [ecx + 4], edx
mov dword [ecx], 0xbddbf5
mov ecx, dword [sym.imp.USER32.dll_GetClientRect]
mov dword [esp + 0x54], eax
call ecx
sub esp, 8
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 [esp + 0x50], eax
call ecx
sub esp, 0xc
mov dword [esp + 0x4c], eax
mov dword [esp + 0x134], 0xb04
mov eax, esp
lea ecx, [esp + 0x134]
mov dword [eax + 4], ecx
mov dword [eax], 0xf53109
mov eax, dword [sym.imp.KERNEL32.dll_GetCommMask]
call eax
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 [esp + 0x48], eax
call ecx
sub esp, 8
mov ecx, esp
lea edx, [esp + 0xd0]
mov dword [ecx], edx
mov dword [ecx + 4], 0xeb1
mov ecx, dword [sym.imp.KERNEL32.dll_WaitForDebugEvent]
mov dword [esp + 0x44], eax
call ecx
sub esp, 8
mov dword [esp + 0x40], eax
jmp 0x40180c
mov eax, dword [esp + 0x60]
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 [esp + 0x3c], eax
call ecx
sub esp, 0x24
mov ecx, dword [sym.imp.USER32.dll_GetMessageTime]
mov dword [esp + 0x38], eax
call ecx
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 [esp + 0x34], eax
call ecx
sub esp, 0xc
mov ecx, esp
lea edx, [esp + 0xb8]
mov dword [ecx + 4], edx
mov dword [ecx], 0xacce78
mov ecx, dword [sym.imp.ole32.dll_OleCreateMenuDescriptor]
mov dword [esp + 0x30], eax
call ecx
sub esp, 8
mov ecx, dword [esp + 0x3c]
add ecx, 1
cmp ecx, 0xa
mov dword [esp + 0x2c], eax
mov dword [esp + 0x60], ecx
jne 0x401749
mov eax, dword [sym.imp.KERNEL32.dll_GetACP]
call eax
mov ecx, dword [esp + 0x98]
add ecx, 1
cmp ecx, 0x123
mov dword [esp + 0x28], eax
mov dword [esp + 0xa4], ecx
jne 0x40144e
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret