Function at 0x4af418
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x6c], edx
mov dword [ebp - 0x68], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4af69f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.004af01c
mov byte [ebx + 0x48], 0
lea eax, [ebx + 0x8c]
call fcn.00404874
xor eax, eax
mov dword [ebx + 0x90], eax
test byte [ebx + 0x65], 2
setne al
mov byte [ebp - 0x11], al
lea eax, [ebx + 0x54]
xor ecx, ecx
mov edx, 0x10
call fcn.004031c8
lea eax, [ebp - 8]
xor ecx, ecx
mov edx, 8
call fcn.004031c8
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0xc
call fcn.004031c8
xor eax, eax
mov al, byte [ebx + 0x50]
mov edi, dword [eax*4 + 0x4bc428]
xor eax, eax
mov esi, 0x4bc448
mov edx, eax
cmp dl, 7
ja 0x4af4af
and edx, 0x7f
bt dword [ebx + 0x3c], edx
jae 0x4af4b3
add edi, dword [esi]
inc eax
add esi, 4
cmp al, 8
jne 0x4af4a1
lea edx, [ebp - 0x68]
mov eax, dword [ebx + 0x34]
call fcn.00408d04
mov eax, dword [ebp - 0x68]
call fcn.0047b0d4
mov esi, eax
lea edx, [ebp - 0x6c]
mov eax, dword [ebx + 0x40]
call fcn.00408d04
mov eax, dword [ebp - 0x6c]
call fcn.0047b0d4
mov dword [ebp - 0xc], eax
mov eax, ebx
call fcn.004af6b0
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jne 0x4af4fd
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x4af50e
mov eax, ebx
call fcn.004af6b0
mov edx, eax
lea eax, [ebp - 0x10]
call fcn.0047a6ac
xor eax, eax
push ebp
push 0x4af67d
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x64]
mov eax, dword [ebx + 0x4c]
call fcn.004ae700
cmp byte [ebp - 0x11], 0
je 0x4af551
lea edx, [ebp - 8]
lea eax, [ebp - 0x20]
call fcn.004ae480
or dword [ebp - 0x38], 0x100
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
lea eax, [ebx + 0x54]
push eax
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
push edi
cmp byte [ebp - 0x11], 1
cmc
sbb eax, eax
push eax
push 0
push 0
mov eax, dword [ebx + 0x38]
call fcn.00404d50
push eax
push esi
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x4af59d
mov eax, ebx
call fcn.004af078
lea eax, [ebp - 4]
call fcn.004ae45c
lea eax, [ebp - 8]
call fcn.004ae45c
call fcn.0040e134
cmp byte [ebp - 0x11], 0
je 0x4af605
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebx + 0x54]
mov dl, 1
mov eax, dword [0x4aec5c]
call fcn.004aecc4
mov esi, eax
mov dword [ebx + 0x80], esi
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x18], 0x4af730
mov eax, esi
call fcn.004225f8
mov eax, ebx
call fcn.004af178
push eax
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x4ae910]
call fcn.004ae974
mov esi, eax
mov dword [ebx + 0x84], esi
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x18], 0x4af3e4
mov eax, esi
call fcn.004225f8
mov byte [ebx + 0x48], 2
jmp 0x4af64f
cmp byte [ebx + 0x64], 0
je 0x4af639
mov ecx, dword [ebx + 0x54]
mov dl, 1
mov eax, dword [0x4ae7a8]
call fcn.004ae814
mov esi, eax
mov dword [ebx + 0x80], esi
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x18], 0x4af730
mov eax, esi
call fcn.004225f8
mov byte [ebx + 0x48], 2
jmp 0x4af64f
push 0xffffffffffffffff
mov eax, dword [ebx + 0x54]
push eax
call sub.user32.dll_WaitForInputIdle
mov eax, ebx
call fcn.004af078
mov byte [ebx + 0x48], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4af684
lea eax, [ebp - 0x1c]
call fcn.004ae45c
lea eax, [ebp - 0x20]
call fcn.004ae45c
lea eax, [ebp - 0x18]
call fcn.004ae45c
lea eax, [ebp - 0x10]
call fcn.0047a7c4
ret