Function at 0x4227f0
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x1a74
call fcn.00463e50
mov eax, dword [0x4a97e0]
xor eax, esp
mov dword [esp + 0x1a6c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x1a84]
push esi
push edi
xor ebx, ebx
push 0x206
lea eax, [esp + 0x76]
push ebx
push eax
mov esi, ecx
mov dword [esp + 0x20], ebp
mov word [esp + 0x7c], bx
call fcn.00461780
add esp, 0xc
push esi
lea ecx, [esp + 0x74]
push 0x104
push ecx
mov dword [esp + 0x1c], ebx
call fcn.0045ea06
add esp, 0xc
cmp word [esi], 0x22
lea edi, [esp + 0x70]
jne 0x422894
lea eax, [esp + 0x70]
lea edi, [esp + 0x72]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x422860
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x6e], 0x22
jne 0x422894
lea eax, [esp + 0x70]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x422880
sub eax, edx
sar eax, 1
mov word [esp + eax*2 + 0x6e], bx
push 0x44
lea edx, [esp + 0x2c]
push ebx
push edx
call fcn.00461780
add esp, 0xc
push 0xffe
lea eax, [esp + 0xa7e]
push ebx
push eax
mov dword [esp + 0x34], 0x44
mov word [esp + 0xa84], bx
call fcn.00461780
add esp, 0xc
push ebp
push edi
push 0x494238
lea ecx, [esp + 0xa84]
push 0x800
push ecx
call fcn.0045eb08
add esp, 0x14
push 0x7fe
lea edx, [esp + 0x27e]
push ebx
push edx
mov word [esp + 0x284], bx
call fcn.00461780
add esp, 0xc
push esi
push str.__s_
lea eax, [esp + 0x280]
push 0x400
push eax
call fcn.0045eb08
add esp, 0x10
cmp dword [esp + 0x1a88], ebx
mov ebp, 1
je 0x42292f
xor ebp, ebp
lea ecx, [esp + 0xa78]
push ecx
push str.CreateProcess__s
call fcn.00421450
mov edi, eax
call fcn.00421970
add esp, 8
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x2c]
push eax
push ebx
push ebx
push 8
push ebx
push ebx
push ebx
lea ecx, [esp + 0xa98]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x422a01
push str.CreateProcess_failed
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.00421450
mov ecx, eax
call fcn.00421ae0
add esp, 4
push str.Attempt_spawn_before_giving_up...
call fcn.00421450
mov edi, eax
call fcn.00421970
mov ebx, dword [esp + 0x18]
add esp, 4
push ebx
lea edx, [esp + 0x27c]
push edx
push str._tspawnl__s__s
call fcn.00421450
mov edi, eax
call fcn.00421970
add esp, 0xc
push 0
push ebx
lea eax, [esp + 0x280]
push eax
push esi
push ebp
call fcn.0045f3b7
add esp, 0x14
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x422a5d
call fcn.00460a7f
push str.tspawn_failed
mov esi, eax
call fcn.00421450
mov ebx, dword [esi]
mov ecx, eax
call fcn.00421ae0
add esp, 4
jmp 0x422a59
cmp dword [esp + 0x1a88], ebx
je 0x422a3d
push str.Waiting_for_CreateProcess_to_complete
call fcn.00421450
mov edi, eax
call fcn.00421970
mov ecx, dword [esp + 0x1c]
add esp, 4
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
jmp 0x422a45
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x1c]
push eax
call esi
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1a7c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0045e88c
add esp, 0x1a74
ret