Function at 0x1000af40
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10078348
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push esi
push edi
mov eax, dword [0x100a5688]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], edx
mov edi, ecx
mov dword [ebp - 0x24], edi
mov dword [ebp - 4], 2
mov eax, dword [0x100a55e8]
mov ecx, 0x100a55e8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 3
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push dword [ebp + 8]
push str.__s___s
push eax
call fcn.10004b70
push 0x40
lea eax, [ebp - 0x78]
push 0
push eax
mov dword [ebp - 0x7c], 0x44
call fcn.10059510
add esp, 0x1c
mov eax, 1
push 0x1009e38a
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x50], 1
mov word [ebp - 0x4c], ax
call fcn.10003f00
mov byte [ebp - 4], 4
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x18], 0
lea ebx, [ebx]
mov edx, dword [esi - 0xc]
test edx, edx
js 0x1000b241
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x1000b018
push edx
lea ecx, [ebp - 0x10]
call fcn.10005090
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x7c]
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 0x1000b05e
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov ecx, dword [ebp - 0x1c]
push dword [ebp - 0x34]
mov dword [ecx], eax
call ebx
push dword [ebp - 0x38]
call ebx
jmp 0x1000b066
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
mov dword [ebp - 0x14], 0
lea ecx, [ecx]
mov edi, dword [ebp + 0x10]
push ecx
mov ecx, dword [edi - 0x10]
mov dword [ebp - 0x20], esp
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [edi - 4], 0
lea edx, [edi - 4]
mov ecx, eax
jl 0x1000b09d
cmp ecx, dword [edi - 0x10]
jne 0x1000b09d
lea ebx, [edi - 0x10]
mov eax, 1
lock xadd dword [edx], eax
jmp 0x1000b0c9
mov eax, dword [ecx]
push 1
push dword [edi - 0xc]
call dword [eax]
mov ebx, eax
test ebx, ebx
je 0x1000b23c
mov ecx, dword [edi - 0xc]
mov dword [ebx + 4], ecx
mov ecx, dword [edi - 0xc]
inc ecx
push ecx
push edi
push ecx
lea eax, [ebx + 0x10]
push eax
call fcn.10059484
add esp, 0x10
mov ecx, dword [ebp - 0x20]
lea eax, [ebx + 0x10]
mov dword [ecx], eax
call fcn.1000adb0
add esp, 4
test eax, eax
jne 0x1000b0f8
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [ebp - 0x14]
inc ebx
mov dword [ebp - 0x14], ebx
cmp ebx, 0xa
jl 0x1000b070
mov edi, dword [ebp + 0x10]
push ecx
mov ecx, dword [edi - 0x10]
mov dword [ebp - 0x20], esp
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [edi - 4], 0
lea edx, [edi - 4]
mov ecx, eax
jl 0x1000b125
cmp ecx, dword [edi - 0x10]
jne 0x1000b125
lea ebx, [edi - 0x10]
mov eax, 1
lock xadd dword [edx], eax
jmp 0x1000b151
mov eax, dword [ecx]
push 1
push dword [edi - 0xc]
call dword [eax]
mov ebx, eax
test ebx, ebx
je 0x1000b23c
mov ecx, dword [edi - 0xc]
mov dword [ebx + 4], ecx
mov ecx, dword [edi - 0xc]
inc ecx
push ecx
push edi
push ecx
lea eax, [ebx + 0x10]
push eax
call fcn.10059484
add esp, 0x10
mov ecx, dword [ebp - 0x20]
lea eax, [ebx + 0x10]
mov dword [ecx], eax
call fcn.1000adb0
add esp, 4
test eax, eax
jne 0x1000b182
mov eax, dword [ebp - 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x18], eax
cmp eax, 5
jl 0x1000aff0
xor ebx, ebx
jmp 0x1000b187
mov ebx, 1
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
or edi, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x1000b1aa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [esi + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1000b1c7
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1000b1e7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1000b207
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp + 0x10]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x1000b228
mov ecx, dword [esi]
push esi
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.10005040
push 0x80070057
call fcn.10005160
int3