Function at 0x438730
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46e1c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
cmp eax, ecx
push ebx
push esi
push edi
mov dword [esp + 0x1c], 1
je 0x43879b
mov edx, dword [eax + 8]
mov esi, dword [edx + 8]
test esi, esi
jne 0x438777
mov dword [esp + 0x1c], 0
mov eax, dword [eax]
cmp eax, ecx
jne 0x438765
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x43879b
xor eax, eax
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ecx]
cmp esi, ecx
mov dword [esp + 0x18], esi
je 0x438987
jmp 0x4387b0
mov esi, dword [esp + 0x18]
nop
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
mov ecx, dword [0x4800d8]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], 0x44
mov dword [esp + 0x14], ecx
mov ecx, dword [esi + 8]
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x88], eax
call fcn.0042c760
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4388c8
mov ebx, dword [esi + 8]
mov ecx, dword [ebx + 0x1c]
mov edx, dword [ecx - 8]
test edx, edx
je 0x438904
mov edi, ecx
cmp eax, edi
je 0x438904
mov edx, dword [eax - 0xc]
test edx, edx
lea ecx, [eax - 0xc]
jge 0x438832
lea edx, [eax - 0xc]
cmp edx, dword [0x4800dc]
jne 0x438839
mov edx, dword [edi - 0xc]
test edx, edx
jge 0x438883
mov ebx, dword [edi - 8]
push ebx
lea ecx, [esp + 0x18]
call fcn.00404480
test eax, eax
je 0x438900
lea eax, [ebx + 1]
cmp eax, ebx
jb 0x43886f
mov ecx, ebx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov dword [eax - 8], ebx
mov ecx, dword [esp + 0x14]
mov byte [ebx + ecx], 0
jmp 0x438900
mov edx, dword [0x4800dc]
add eax, 0xfffffff4
cmp eax, edx
je 0x4388b5
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4388ab
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
push eax
call fcn.00457c3f
add esp, 4
mov edx, dword [0x4800d8]
mov dword [esp + 0x14], edx
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0x14], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x438900
mov ecx, dword [esi + 8]
mov edx, dword [ecx + 0x1c]
mov ecx, dword [edx - 8]
test ecx, ecx
je 0x438904
lea eax, [esp + 0x10]
push eax
push 1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x18], 0x20
call fcn.00403ab0
mov eax, dword [esi + 8]
add eax, 0x1c
mov eax, dword [eax]
mov ecx, dword [eax - 8]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00403ab0
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x34]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x43893b
mov edx, dword [esp + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [esp + 0x24]
push eax
call edi
mov eax, dword [esp + 0x14]
mov edx, dword [0x4800dc]
lea ecx, [eax - 0xc]
cmp ecx, edx
mov dword [esp + 0x84], 0xffffffff
je 0x438975
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x438975
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.00457c3f
add esp, 4
mov ecx, dword [ebp + 8]
mov eax, dword [esi]
cmp eax, dword [ecx + 4]
mov dword [esp + 0x18], eax
jne 0x4387ab
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4