Function at 0x40fb10
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44d751
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
mov dword [ebp - 0x10], 0
jne 0x40fca1
test ebx, ebx
jne 0x40fb5d
xor al, al
lea esp, [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ax, word [ebx]
cmp ax, 0x22
jne 0x40fb96
lea edi, [ebx + 2]
push 0x22
push edi
call dword [sym.imp.MSVCRT.dll_wcschr]
mov esi, eax
add esp, 8
test esi, esi
jne 0x40fb91
xor al, al
lea esp, [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp + 8], edi
jmp 0x40fbf0
movzx eax, ax
test eax, eax
mov dword [ebp + 8], ebx
lea esi, [ebx + 2]
je 0x40fc37
cmp eax, 9
je 0x40fbb1
cmp eax, 0x20
jne 0x40fbd1
movzx eax, word [esi]
add esi, 2
test eax, eax
jne 0x40fba7
xor al, al
lea esp, [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, word [esi]
test eax, eax
je 0x40fbed
cmp eax, 9
je 0x40fbed
cmp eax, 0x20
je 0x40fbed
movzx eax, word [esi + 2]
add esi, 2
test eax, eax
jne 0x40fbd8
mov edi, dword [ebp + 8]
cmp esi, edi
jne 0x40fc0a
xor al, al
lea esp, [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push edi
call fcn.0040f5b0
add esp, 8
cmp eax, edi
jne 0x40fc9f
mov bx, word [esi]
mov eax, 0xc
mov word [esi], 0
call fcn.00440ed0
mov edi, esp
test edi, edi
mov dword [ebp - 0x10], edi
jne 0x40fc4d
xor al, al
lea esp, [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x14], edi
mov eax, dword [0x45c6e8]
test eax, eax
mov dword [ebp - 4], 0
je 0x40fc65
call fcn.00407620
push 0x571a54
mov ecx, edi
call fcn.0040d380
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
mov dword [ebp - 4], 0xffffffff
call fcn.0040d440
mov edx, dword [ebp + 8]
push 1
lea ecx, [ebp - 0x18]
push ecx
push edx
call fcn.0040b5b0
mov word [esi], bx
mov ebx, dword [ebp + 0xc]
add esp, 0xc
mov edi, eax
jmp 0x40fca1
xor edi, edi
mov esi, dword [ebp + 0x2c]
mov eax, dword [ebp + 0x28]
mov ecx, dword [ebp + 0x24]
mov edx, dword [ebp + 0x20]
push esi
push eax
mov eax, dword [ebp + 0x1c]
push ecx
movzx ecx, byte [ebp + 0x18]
push edx
mov edx, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push ecx
push edx
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
mov dword [ebp + 0x18], eax
je 0x40fcf1
mov bl, byte [ebp + 0x30]
test bl, 1
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jne 0x40fce4
mov ecx, dword [esi]
push ecx
call edi
test bl, 2
jne 0x40fd39
mov edx, dword [esi + 4]
push edx
call edi
jmp 0x40fd39
push 1
push 0x45d054
mov ecx, 0x571fa8
call fcn.0040c190
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, 0x571fa8
call fcn.0040bd00
mov esi, eax
push 1
push 0x45d050
mov ecx, esi
call fcn.0040c190
push 1
push edi
mov ecx, esi
call fcn.0040c190
push 0x40b880
mov ecx, esi
call fcn.0040ba90
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x40fd45
call fcn.0040d4b0
mov ecx, dword [ebp + 0x18]
xor eax, eax
test ecx, ecx
setne al
lea esp, [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret