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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xd0
xor eax, eax
lea ecx, [esp + 0xa8]
mov dword [esp + 0x9c], ecx
mov dword [esp + 0x98], eax
jmp 0x1000173b
mov eax, dword [esp + 0x94]
add eax, 1
cmp eax, 0x31
sete cl
mov dword [esp + 0x90], eax
mov byte [esp + 0x8f], cl
mov al, byte [esp + 0x8f]
test al, 1
mov ecx, dword [esp + 0x90]
mov dword [esp + 0x88], ecx
jne 0x100015fc
jmp 0x100016f0
mov eax, esp
lea ecx, [esp + 0xc0]
mov dword [eax], ecx
mov dword [eax + 8], 0xb31
mov dword [eax + 4], 0xb31
mov eax, dword [sym.imp.USER32.dll_OffsetRect]
call eax
sub esp, 0xc
mov dword [esp + 0x84], eax
xor eax, eax
xor ecx, ecx
mov edx, dword [esp + 0x80]
sub edx, 0xe
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], ecx
mov dword [esp + 0x74], edx
je 0x10001662
jmp 0x10001644
mov eax, dword [esp + 0x80]
sub eax, 0x24
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x70], eax
mov dword [esp + 0x6c], ecx
jne 0x10001828
jmp 0x10001662
mov eax, esp
mov dword [eax + 4], 1
mov dword [eax], 0xbec
mov eax, dword [sym.imp.KERNEL32.dll_IsDBCSLeadByteEx]
call eax
sub esp, 8
lea ecx, [esp + 0xa8]
xor edx, edx
mov esi, 0x18
mov edi, dword [esp + 0x9c]
mov dword [esp], edi
mov dword [esp + 4], 0
mov dword [esp + 8], 0x18
mov dword [esp + 0x68], eax
mov dword [esp + 0x64], ecx
mov dword [esp + 0x60], edx
mov dword [esp + 0x5c], esi
call fcn.1008d6a0
mov eax, dword [esp + 0x64]
mov dword [esp + 0xa4], eax
mov ecx, esp
lea edx, [esp + 0xa4]
mov dword [ecx + 8], edx
mov dword [ecx + 4], 0x203
mov dword [ecx], 7
mov ecx, dword [sym.imp.OLEAUT32.dll_SafeArrayCreateEx]
call ecx
sub esp, 0xc
mov dword [esp + 0x58], eax
jmp 0x10001898
mov eax, dword [esp + 0x88]
mov ecx, 0xcccccccd
mov dword [esp + 0x94], eax
mul ecx
shr edx, 4
imul eax, edx, 0x14
mov ecx, dword [esp + 0x94]
sub ecx, eax
mov eax, ecx
sub eax, 1
mov dword [esp + 0x54], ecx
mov dword [esp + 0x50], eax
je 0x1000179a
jmp 0x10001725
mov eax, dword [esp + 0x54]
sub eax, 8
mov dword [esp + 0x4c], eax
je 0x100017ff
jmp 0x100015bc
mov eax, dword [esp + 0x98]
mov ecx, esp
mov dword [ecx], 0x98da30
mov ecx, dword [sym.imp.KERNEL32.dll_HeapDestroy]
mov dword [esp + 0x80], eax
call ecx
sub esp, 4
mov ecx, esp
mov dword [ecx + 0xc], 0xf41
mov dword [ecx + 8], 0xe90
mov dword [ecx + 4], 0x282
mov dword [ecx], 0x1e7cbc
mov ecx, dword [sym.imp.USER32.dll_SetDlgItemInt]
mov dword [esp + 0x48], eax
call ecx
sub esp, 0x10
xor ecx, ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x88], ecx
jmp 0x100016f0
mov eax, esp
mov dword [eax + 0x20], 0xc8d
mov dword [eax + 0x1c], 0xc8d
mov dword [eax + 0x18], 0xa2d
mov dword [eax + 0x14], 0xc8d
mov dword [eax + 0x10], 0xa0
mov dword [eax + 0xc], 0xa0
mov dword [eax + 8], 0xc8d
mov dword [eax + 4], 0xc8d
mov dword [eax], 0x518e0b
mov eax, dword [sym.imp.GDI32.dll_Chord]
call eax
sub esp, 0x24
mov ecx, esp
mov dword [ecx], 0xbb9
mov ecx, dword [sym.imp.USER32.dll_GetThreadDesktop]
mov dword [esp + 0x40], eax
call ecx
sub esp, 4
mov dword [esp + 0x3c], eax
mov eax, esp
mov dword [eax + 8], 0x2b3
mov dword [eax + 4], 0x508
mov dword [eax], 0xcbdd75
mov eax, dword [sym.imp.KERNEL32.dll_PrepareTape]
call eax
sub esp, 0xc
mov dword [esp + 0x38], eax
jmp 0x100015bc
mov eax, dword [esp + 0x6c]
mov byte [esp + 0xa3], 1
mov word [esp + 0xa0], 0xc
mov ecx, esp
lea edx, [esp + 0xa0]
mov dword [ecx + 0xc], edx
lea edx, [esp + 0xa3]
mov dword [ecx + 8], edx
mov dword [ecx + 0x14], 0x2fa243
mov dword [ecx + 0x10], 0xe9a
mov dword [ecx + 4], 0xe9a
mov dword [ecx], 0x563
mov ecx, dword [sym.imp.USER32.dll_ToAsciiEx]
mov dword [esp + 0x34], eax
call ecx
sub esp, 0x18
mov ecx, dword [esp + 0x34]
add ecx, 1
cmp ecx, 0xa
mov dword [esp + 0x30], eax
mov dword [esp + 0x6c], ecx
jne 0x10001828
mov eax, dword [sym.imp.KERNEL32.dll_FreeConsole]
call eax
mov ecx, dword [esp + 0x80]
add ecx, 1
cmp ecx, 0xac
sete dl
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], ecx
mov byte [esp + 0x27], dl
mov al, byte [esp + 0x27]
test al, 1
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x98], ecx
jne 0x100018d9
jmp 0x1000173b
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret