Function at 0x10001318
Capabilities:
Create pipe
Create process on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x1a0
mov eax, esp
mov dword [eax + 4], 0xc3a
mov dword [eax], 0xfe2308
mov eax, dword [sym.imp.GDI32.dll_SetStretchBltMode]
call eax
sub esp, 8
mov dword [esp + 0x198], 0xfb3
mov ecx, esp
lea edx, [esp + 0x198]
mov dword [ecx + 4], edx
mov dword [ecx], 0xc6b042
mov ecx, dword [sym.imp.KERNEL32.dll_GetCommModemStatus]
mov dword [esp + 0xc4], eax
call ecx
sub esp, 8
mov ecx, esp
mov dword [ecx + 4], 0x5d3
mov dword [ecx], 0x8e953c
mov ecx, dword [sym.imp.GDI32.dll_SetTextCharacterExtra]
mov dword [esp + 0xc0], eax
call ecx
sub esp, 8
mov ecx, esp
mov dword [ecx], 0x480385
mov ecx, dword [sym.imp.KERNEL32.dll_PulseEvent]
mov dword [esp + 0xbc], eax
call ecx
sub esp, 4
xor ecx, ecx
lea edx, [esp + 0xc8]
lea esi, [esp + 0x108]
lea edi, [esp + 0x138]
lea ebx, [esp + 0x150]
mov dword [esp + 0xb8], eax
mov dword [esp + 0xb4], edx
mov dword [esp + 0xb0], esi
mov dword [esp + 0xac], edi
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xa4], ecx
jmp 0x1000147f
xor eax, eax
mov ecx, 0xc
mov edx, 0xa68c22
mov esi, 0xde1de3
mov dword [esp + 0x14c], esi
mov dword [esp + 0x148], edx
mov edx, dword [esp + 0xac]
mov dword [esp], edx
mov dword [esp + 4], 0
mov dword [esp + 8], 0xc
mov dword [esp + 0xa0], eax
mov dword [esp + 0x9c], ecx
call fcn.10138f50
mov eax, esp
lea ecx, [esp + 0x138]
mov dword [eax + 8], ecx
lea ecx, [esp + 0x148]
mov dword [eax + 4], ecx
lea ecx, [esp + 0x14c]
mov dword [eax], ecx
mov dword [eax + 0xc], 0xb59
mov eax, dword [sym.imp.KERNEL32.dll_CreatePipe]
call eax
sub esp, 0x10
mov dword [esp + 0x98], eax
jmp 0x1000160c
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x194], 0xbc1
mov dword [esp + 0x190], 0x650
mov ecx, esp
lea edx, [esp + 0x190]
mov dword [ecx + 0xc], edx
lea edx, [esp + 0x194]
mov dword [ecx + 8], edx
mov dword [ecx + 4], 0xe96
mov dword [ecx], 0x43e811
mov ecx, dword [sym.imp.USER32.dll_GetScrollRange]
mov dword [esp + 0x94], eax
call ecx
sub esp, 0x10
mov ecx, esp
mov dword [ecx + 4], 0x4d9
mov dword [ecx], 0x540cea
mov ecx, dword [sym.imp.USER32.dll_ActivateKeyboardLayout]
mov dword [esp + 0x90], eax
call ecx
sub esp, 8
xor ecx, ecx
mov edx, 0x3c
mov esi, dword [esp + 0xa8]
mov dword [esp], esi
mov dword [esp + 4], 0
mov dword [esp + 8], 0x3c
mov dword [esp + 0x8c], eax
mov dword [esp + 0x88], ecx
mov dword [esp + 0x84], edx
call fcn.10138f50
mov eax, esp
lea ecx, [esp + 0x150]
mov dword [eax + 4], ecx
mov dword [eax], 0xf850a6
mov eax, dword [sym.imp.USER32.dll_GetWindowInfo]
call eax
sub esp, 8
mov ecx, esp
mov dword [ecx + 4], 0x576
mov dword [ecx], 0xd0e6b5
mov ecx, dword [sym.imp.GDI32.dll_GetNearestColor]
mov dword [esp + 0x80], eax
call ecx
sub esp, 8
xor ecx, ecx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], ecx
jmp 0x100015cd
mov eax, esp
mov dword [eax + 4], 0x764946
mov dword [eax], 0x53bad2
mov eax, dword [sym.imp.GDI32.dll_SelectObject]
call eax
sub esp, 8
mov ecx, esp
mov dword [ecx + 4], 0x522
mov dword [ecx], 0x101e83ac
mov ecx, dword [sym.imp.KERNEL32.dll_WinExec]
mov dword [esp + 0x74], eax
call ecx
sub esp, 8
mov ecx, esp
mov dword [ecx], 0xb736e3
mov ecx, dword [sym.imp.GDI32.dll_EndPath]
mov dword [esp + 0x70], eax
call ecx
sub esp, 4
mov dword [esp + 0x6c], eax
jmp 0x10001787
mov eax, dword [esp + 0x78]
mov ecx, 0xaaaaaaab
mov dword [esp + 0x68], eax
mul ecx
shr edx, 3
imul eax, edx, 0xc
mov ecx, dword [esp + 0x68]
sub ecx, eax
mov eax, ecx
sub eax, 5
mov dword [esp + 0x64], ecx
mov dword [esp + 0x60], eax
je 0x100013f7
jmp 0x100015fd
mov eax, dword [esp + 0x64]
sub eax, 8
mov dword [esp + 0x5c], eax
jne 0x1000167b
jmp 0x1000160c
xor eax, eax
mov ecx, 0x2c
mov edx, dword [esp + 0xb0]
mov dword [esp], edx
mov dword [esp + 4], 0
mov dword [esp + 8], 0x2c
mov dword [esp + 0x58], eax
mov dword [esp + 0x54], ecx
call fcn.10138f50
mov eax, esp
lea ecx, [esp + 0x108]
mov dword [eax + 4], ecx
mov dword [eax], 0x113bec
mov eax, dword [sym.imp.USER32.dll_GetTitleBarInfo]
call eax
sub esp, 8
mov ecx, esp
lea edx, [esp + 0xc8]
mov dword [ecx + 4], edx
mov dword [ecx], 0xdd30ca
mov ecx, dword [sym.imp.USER32.dll_EndPaint]
mov dword [esp + 0x50], eax
call ecx
sub esp, 8
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x68]
add eax, 1
cmp eax, 0x14c
mov dword [esp + 0x78], eax
jne 0x100015cd
xor eax, eax
xor ecx, ecx
mov edx, dword [esp + 0x94]
sub edx, 0xb
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x40], edx
je 0x10001576
jmp 0x100016b5
mov eax, dword [esp + 0x94]
sub eax, 0x24
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], ecx
jne 0x100016ea
jmp 0x100016cf
mov eax, esp
mov dword [eax], 0x9e8c47
mov eax, dword [sym.imp.KERNEL32.dll_ResetEvent]
call eax
sub esp, 4
mov dword [esp + 0x34], eax
jmp 0x10001576
mov eax, dword [esp + 0x38]
mov ecx, esp
mov dword [ecx + 0xc], 0x6c0
mov dword [ecx + 8], 0x101e83b0
mov dword [ecx + 4], 0x101e83b4
mov dword [ecx], 0x3fd
mov ecx, dword [sym.imp.USER32.dll_CharPrevExA]
mov dword [esp + 0x30], eax
call ecx
sub esp, 0x10
mov ecx, esp
mov dword [ecx + 0x20], 0x453
mov dword [ecx + 0x1c], 0x866
mov dword [ecx + 0x18], 0xf1a
mov dword [ecx + 0x14], 0x608
mov dword [ecx + 0x10], 0x608
mov dword [ecx + 0xc], 0xf1a
mov dword [ecx + 8], 0x866
mov dword [ecx + 4], 0x19
mov dword [ecx], 0xb74bd3
mov ecx, dword [sym.imp.GDI32.dll_ArcTo]
mov dword [esp + 0x2c], eax
call ecx
sub esp, 0x24
mov ecx, dword [esp + 0x30]
add ecx, 1
cmp ecx, 0xa
mov dword [esp + 0x28], eax
mov dword [esp + 0x38], ecx
jne 0x100016ea
mov eax, dword [esp + 0x94]
add eax, 1
cmp eax, 0x6c
mov dword [esp + 0xa4], eax
jne 0x1000147f
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret