Function at 0x10017a30
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10081e50
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
push ebx
push esi
push edi
mov eax, dword [0x100bb2a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], edx
mov edi, ecx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 4], 2
call fcn.10001e63
mov ecx, eax
test ecx, ecx
jne 0x10017a7c
push 0x80004005
call fcn.10001bd3
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.__s___s
push eax
call fcn.100096bf
push 0x40
lea eax, [ebp - 0x84]
mov dword [ebp - 0x88], 0x44
push 0
push eax
call fcn.1005cd30
add esp, 0x1c
mov dword [ebp - 0x5c], 1
mov eax, 1
mov word [ebp - 0x58], ax
call fcn.10001e63
mov ecx, eax
test ecx, ecx
jne 0x10017ae1
push 0x80004005
call fcn.10001bd3
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov eax, 0x100a57dd
mov byte [ebp - 4], 4
test eax, 0xffff0000
jne 0x10017b16
movzx esi, ax
mov ecx, esi
call fcn.10001cf0
test eax, eax
je 0x10017b25
push esi
push eax
lea ecx, [ebp - 0x14]
call fcn.10007d68
jmp 0x10017b25
push 0
push 0x100a57dd
lea ecx, [ebp - 0x14]
call fcn.10008e96
mov byte [ebp - 4], 5
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x1c], 0
nop dword [eax]
mov edx, dword [esi - 0xc]
test edx, edx
js 0x10017d73
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or ecx, eax
jge 0x10017b68
push edx
lea ecx, [ebp - 0x10]
call fcn.10008e39
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x88]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x10017bb1
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov ecx, dword [ebp - 0x20]
push dword [ebp - 0x38]
mov dword [ecx], eax
call ebx
push dword [ebp - 0x3c]
call ebx
jmp 0x10017bb9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
mov dword [ebp - 0x18], 0
mov edi, dword [ebp + 0x10]
push ecx
mov dword [ebp - 0x24], esp
mov ecx, dword [edi - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [edi - 4], 0
mov ecx, eax
lea eax, [edi - 4]
jl 0x10017be7
cmp ecx, dword [edi - 0x10]
jne 0x10017be7
lea ebx, [edi - 0x10]
lock inc dword [eax]
jmp 0x10017c11
mov eax, dword [ecx]
push 1
push dword [edi - 0xc]
call dword [eax]
mov ebx, eax
test ebx, ebx
je 0x10017d6e
mov eax, dword [edi - 0xc]
lea ecx, [ebx + 0x10]
mov dword [ebx + 4], eax
mov edx, dword [edi - 0xc]
inc edx
push edx
push edi
call fcn.100010b0
add esp, 8
mov ecx, dword [ebp - 0x24]
lea eax, [ebx + 0x10]
mov dword [ecx], eax
call fcn.100178a0
add esp, 4
test eax, eax
jne 0x10017c3c
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [ebp - 0x18]
inc ebx
mov dword [ebp - 0x18], ebx
cmp ebx, 0xa
jl 0x10017bc0
mov edi, dword [ebp + 0x10]
push ecx
mov dword [ebp - 0x28], esp
mov ecx, dword [edi - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [edi - 4], 0
mov ecx, eax
lea eax, [edi - 4]
jl 0x10017c63
cmp ecx, dword [edi - 0x10]
jne 0x10017c63
lea ebx, [edi - 0x10]
lock inc dword [eax]
jmp 0x10017c8d
mov eax, dword [ecx]
push 1
push dword [edi - 0xc]
call dword [eax]
mov ebx, eax
test ebx, ebx
je 0x10017d6e
mov eax, dword [edi - 0xc]
lea ecx, [ebx + 0x10]
mov dword [ebx + 4], eax
mov edx, dword [edi - 0xc]
inc edx
push edx
push edi
call fcn.100010b0
add esp, 8
mov ecx, dword [ebp - 0x28]
lea eax, [ebx + 0x10]
mov dword [ecx], eax
call fcn.100178a0
add esp, 4
test eax, eax
jne 0x10017cbe
mov eax, dword [ebp - 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
inc eax
mov edi, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
cmp eax, 5
jl 0x10017b40
xor ebx, ebx
jmp 0x10017cc3
mov ebx, 1
mov byte [ebp - 4], 3
or edi, 0xffffffff
mov edx, dword [ebp - 0x14]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10017ce4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10017cff
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, edi
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10017d1d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, edi
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10017d3b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x10017d5a
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.10008e8b
push 0x80070057
call fcn.10001bd3
int3