Function at 0x10147be
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x1020204]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x210], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x218], eax
mov eax, dword [ebp + 0x18]
xor esi, esi
push 0x40
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x270]
push esi
push eax
mov ebx, ecx
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x274], esi
call sub.msvcrt.dll_memset
xor eax, eax
mov dword [ebp - 0x230], esi
lea edi, [ebp - 0x22c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
xor edi, edi
cmp dword [ebx + 4], esi
je 0x101495a
push 0x28
call fcn.01012843
cmp eax, esi
pop ecx
je 0x101484f
mov ecx, eax
call fcn.0101479c
mov edi, eax
jmp 0x1014851
xor edi, edi
cmp edi, esi
je 0x1014b8d
cmp byte [0x1021190], 0
je 0x1014870
mov eax, dword [ebx + 4]
mov ecx, dword [eax]
push 0x1021190
push eax
call dword [ecx + 0x2c]
cmp byte [0x1021298], 0
je 0x1014889
mov eax, dword [ebx + 4]
mov ecx, dword [eax]
push 0x1021298
push eax
call dword [ecx + 0x38]
jmp 0x101489e
lea ecx, [ebx + 0x10c]
cmp byte [ecx], 0
je 0x101489e
mov eax, dword [ebx + 4]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x38]
push dword [ebp - 0x218]
mov ecx, edi
push dword [ebp - 0x21c]
push dword [ebp + 8]
call fcn.01012ad3
mov eax, dword [ebx + 0x318]
mov ecx, dword [ebx + 0x314]
mov esi, 0x208
push esi
mov dword [edi + 0x24], eax
lea eax, [ebp - 0x20c]
push 0
push eax
mov dword [edi + 0x20], ecx
call sub.msvcrt.dll_memset
push dword [ebp - 0x210]
mov eax, dword [ebp + 8]
push dword [eax*4 + 0x10201f0]
lea eax, [ebp - 0x20c]
push 0x10022e0
push esi
push eax
call fcn.010161e1
mov eax, dword [ebx + 4]
mov ecx, dword [eax]
add esp, 0x20
xor esi, esi
push esi
push edi
lea edx, [ebp - 0x20c]
push edx
push eax
call dword [ecx + 0x1c]
cmp eax, esi
jge 0x1014946
mov ebx, dword [ebx + 4]
mov eax, dword [ebx]
lea ecx, [ebp - 0x210]
push ecx
push ebx
call dword [eax + 0x28]
cmp dword [ebp - 0x210], esi
je 0x101493b
push dword [ebp - 0x210]
mov eax, dword [edi]
push edi
call dword [eax + 0x1c]
mov dword [ebp - 0x214], esi
jmp 0x1014b83
cmp dword [edi + 0x14], esi
jne 0x101493b
mov dword [ebp - 0x214], 1
jmp 0x1014b83
mov word [ebp - 0x244], si
push 0x10022d8
mov esi, 0x208
lea eax, [ebp - 0x20c]
push esi
push eax
mov dword [ebp - 0x274], 0x44
mov dword [ebp - 0x248], 1
call fcn.0101627b
add esp, 0xc
cmp byte [0x1021190], 0
je 0x10149bf
push 0x10022d0
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.01016202
push 0x1021190
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.01016202
add esp, 0x18
cmp byte [0x1021298], 0
jne 0x10149d1
cmp byte [ebx + 0x10c], 0
je 0x1014a0b
push 0x100218c
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.01016202
add esp, 0xc
cmp byte [0x1021298], 0
mov eax, 0x1021298
jne 0x10149fa
lea eax, [ebx + 0x10c]
push eax
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.01016202
add esp, 0xc
mov ebx, 0x1001ab0
push ebx
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.01016202
mov eax, dword [ebp + 8]
push dword [eax*4 + 0x10201f0]
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.01016202
push ebx
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.01016202
push dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.01016202
xor esi, esi
inc esi
add esp, 0x30
cmp dword [ebp + 8], esi
je 0x1014a71
jle 0x1014b4c
xor ebx, ebx
cmp dword [ebp + 8], 4
jle 0x1014a8d
jmp 0x1014ad5
xor ebx, ebx
cmp dword [0x1021188], ebx
je 0x1014a8d
cmp byte [0x10214c8], bl
je 0x1014a8d
mov dword [ebp - 0x220], 0x10214c8
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
or dword [ebp - 0x248], 0x100
push 0xfffffffffffffff6
call esi
mov dword [ebp - 0x23c], eax
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x238], eax
mov eax, dword [ebp - 0x218]
cmp eax, ebx
mov dword [ebp - 0x234], eax
je 0x1014ac8
cmp eax, 0xffffffff
jne 0x1014ad2
push 0xfffffffffffffff4
call esi
mov dword [ebp - 0x234], eax
xor esi, esi
inc esi
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x274]
push eax
push dword [ebp - 0x220]
lea eax, [ebp - 0x20c]
push ebx
push 0x20
push esi
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x1014b8d
push 0xffffffffffffffff
push dword [ebp - 0x230]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x1014b25
cmp eax, esi
je 0x1014b50
jle 0x1014b8d
cmp eax, 4
jg 0x1014b8d
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x230]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x1014b7d
cmp dword [ebp - 0x210], ebx
jne 0x1014b7d
mov dword [ebp - 0x214], esi
jmp 0x1014b8d
xor ebx, ebx
jmp 0x1014ad5
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x230]
mov dword [ebp - 0x214], esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x1014b8d
cmp dword [ebp - 0x210], ebx
jbe 0x1014b8d
mov dword [ebp - 0x214], ebx
jmp 0x1014b8d
mov dword [ebp - 0x214], ebx
test edi, edi
je 0x1014b8d
mov eax, dword [edi]
push edi
call dword [eax + 8]
push dword [ebp - 0x230]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x22c]
call esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x214]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01015dd4
leave
ret 0x14