Function at 0x10003e76
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x64]
sub esp, 0xcc
mov eax, dword [0x1001cf10]
xor eax, ebp
mov dword [ebp + 0x60], eax
mov eax, dword [ebp + 0x6c]
mov dword [ebp + 0x3c], eax
mov eax, dword [ebp + 0x70]
push ebx
push esi
mov dword [ebp + 0x38], eax
mov eax, dword [ebp + 0x74]
push edi
mov dword [ebp + 0x30], eax
mov eax, dword [ebp + 0x78]
xor ebx, ebx
push 0x40
mov dword [ebp + 0x34], eax
lea eax, [ebp - 0x64]
push ebx
push eax
mov esi, ecx
mov dword [ebp + 0x40], ebx
mov dword [ebp + 0x44], ebx
mov dword [ebp - 0x68], 0x44
call sub.msvcr100.dll_memset
mov eax, dword [esi]
mov dword [ebp + 0x1c], eax
lea eax, [esi + 8]
mov dword [ebp + 0x2c], eax
mov eax, dword [eax]
add esp, 0xc
mov dword [ebp + 0x20], eax
lea edi, [esi + 0x10]
mov eax, dword [edi]
mov dword [ebp + 0x48], ebx
mov dword [ebp + 0x4c], ebx
mov dword [ebp + 0x50], ebx
mov dword [ebp + 0x54], ebx
mov dword [ebp + 0x58], ebx
mov dword [ebp + 0x5c], ebx
mov ebx, dword [sym.imp.kernel32.dll_GetStdHandle]
push 0xfffffffffffffff6
mov dword [ebp + 0x24], eax
call ebx
push 0xfffffffffffffff5
mov dword [ebp + 0x10], eax
call ebx
push 0xfffffffffffffff4
mov dword [ebp + 0x14], eax
call ebx
mov dword [ebp + 0x18], eax
xor ebx, ebx
mov eax, dword [ebp + ebx + 0x10]
cmp eax, 0xffffffff
je 0x10003f47
lea ecx, [ebp + 0x28]
push ecx
push eax
call dword [sym.imp.kernel32.dll_GetHandleInformation]
test eax, eax
je 0x10003f2d
mov eax, dword [ebp + 0x28]
and eax, 1
jmp 0x10003f2f
xor eax, eax
test eax, eax
je 0x10003f47
xor eax, eax
inc eax
push 0
push eax
push dword [ebp + ebx + 0x10]
mov dword [ebp + ebx + 0x48], eax
call dword [sym.imp.kernel32.dll_SetHandleInformation]
add ebx, 4
cmp ebx, 0x18
jl 0x10003f0d
push dword [ebp + 0x3c]
or dword [ebp - 0x14], 0xffffffff
or dword [ebp - 0x10], 0xffffffff
and dword [ebp - 0xc], 0
lea ebx, [ebp - 0x30]
lea eax, [ebp - 0x14]
call fcn.10003dd5
pop ecx
test eax, eax
je 0x100040a1
push dword [ebp + 0x3c]
mov esi, dword [ebp + 0x2c]
or dword [ebp - 8], 0xffffffff
or dword [ebp - 4], 0xffffffff
lea ebx, [ebp - 0x2c]
lea eax, [ebp - 8]
mov dword [ebp], 1
call fcn.10003dd5
pop ecx
test eax, eax
je 0x10004090
or eax, 0xffffffff
cmp byte [ebp + 0x7c], 0
mov dword [ebp + 4], eax
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], 1
je 0x10003fbe
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x28], ecx
mov dword [edi], eax
mov dword [edi + 4], eax
jmp 0x10003fd7
push dword [ebp + 0x3c]
lea ebx, [ebp - 0x28]
lea eax, [ebp + 4]
mov esi, edi
call fcn.10003dd5
pop ecx
test eax, eax
je 0x10004060
mov esi, 0x8000400
call dword [sym.imp.kernel32.dll_GetConsoleWindow]
test eax, eax
je 0x10004009
mov eax, dword [ebp + 0x10]
cmp dword [ebp - 0x30], eax
je 0x10004004
mov eax, dword [ebp + 0x14]
cmp dword [ebp - 0x2c], eax
je 0x10004004
cmp byte [ebp + 0x7c], 0
jne 0x10003fff
mov eax, dword [ebp + 0x18]
cmp dword [ebp - 0x28], eax
jne 0x10004009
mov esi, 0x400
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x68]
push eax
push dword [ebp + 0x34]
mov dword [ebp - 0x3c], pe_nt_image_headers32
push dword [ebp + 0x30]
push esi
push 1
xor esi, esi
push esi
push esi
push dword [ebp + 0x38]
push esi
call dword [sym.imp.kernel32.dll_CreateProcessW]
test eax, eax
jne 0x10004043
push dword [ebp + 0x3c]
mov edi, str.CreateProcess
call fcn.1000a5ff
pop ecx
jmp 0x10004060
cmp dword [ebp - 0x20], 0xffffffff
je 0x10004052
push dword [ebp - 0x20]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebp - 0x24]
cdq
mov dword [ebp + 0x40], eax
or eax, edx
mov dword [ebp + 0x44], edx
jne 0x10004065
xor eax, eax
inc eax
jmp 0x10004067
xor eax, eax
push eax
lea eax, [ebp + 4]
call fcn.10003e41
mov eax, dword [ebp + 0x40]
or eax, dword [ebp + 0x44]
pop ecx
jne 0x1000407c
inc eax
jmp 0x1000407e
xor eax, eax
push eax
lea eax, [ebp - 8]
call fcn.10003e41
mov eax, dword [ebp + 0x40]
or eax, dword [ebp + 0x44]
pop ecx
jne 0x10004095
xor eax, eax
inc eax
jmp 0x10004097
xor eax, eax
push eax
lea eax, [ebp - 0x14]
call fcn.10003e41
pop ecx
xor esi, esi
mov eax, dword [ebp + esi + 0x24]
cmp eax, 0xffffffff
je 0x100040bf
xor ecx, ecx
cmp dword [ebp + esi + 0x5c], ecx
setne cl
push ecx
push 1
push eax
call dword [sym.imp.kernel32.dll_SetHandleInformation]
sub esi, 4
cmp esi, 0xffffffec
jge 0x100040a3
mov ecx, dword [ebp + 0x60]
mov eax, dword [ebp + 0x40]
mov edx, dword [ebp + 0x44]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100122d0
add ebp, 0x64
leave
ret