Function at 0x10004850
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100505f0
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x1006e098]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
mov edx, dword [ebp + 0xc]
xor eax, eax
movlpd qword [ebp - 0x90], xmm0
movlpd qword [ebp - 0x88], xmm0
movlpd qword [ebp - 0x80], xmm0
movlpd qword [ebp - 0x78], xmm0
movlpd qword [ebp - 0x70], xmm0
movlpd qword [ebp - 0x68], xmm0
movlpd qword [ebp - 0x60], xmm0
movlpd qword [ebp - 0x58], xmm0
mov dword [ebp - 0x94], 0x44
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov edi, 7
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edi
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 1
test edx, edx
je 0x10004979
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10004900
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.10002b10
mov edi, dword [ebp - 0x30]
test edi, edi
je 0x10004976
push 1
push 0x10056764
lea ecx, [ebp - 0x28]
call fcn.10002b10
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10004934
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.10002650
push 2
push 0x10056768
lea ecx, [ebp - 0x28]
call fcn.10002650
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push edi
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x28]
push eax
call fcn.10002650
mov edi, dword [ebp - 0x2c]
jmp 0x10004999
mov edi, dword [ebp - 0x2c]
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10004980
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.10002b10
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x94]
push ecx
push 0
push 0
push 0
push 1
push 0
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x100049d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
jmp 0x10004a02
cmp byte [ebp + 0x10], 0
je 0x100049ed
mov eax, dword [ebp + 0x14]
or ecx, 0xffffffff
test eax, eax
cmovg ecx, eax
push ecx
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x50]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x4c]
call esi
mov esi, 1
cmp edi, 8
jb 0x10004a35
mov ecx, dword [ebp - 0x40]
lea edx, [edi*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10004a2b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004a88
push edx
push ecx
call fcn.10016b0e
add esp, 8
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x10004a6b
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10004a61
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004a8d
push edx
push ecx
call fcn.10016b0e
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100170cd
mov esp, ebp
pop ebp
ret
call fcn.100323d9
call fcn.100323d9
int3