Function at 0x422240
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f29e6
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x521284]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0xa4], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xa8], eax
xor eax, eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0xc4]
mov eax, dword [edx + 4]
mov esi, dword [edx]
mov edx, edi
mov dword [ebp - 0xa0], eax
call fcn.00422090
mov byte [ebp - 4], 1
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x4222d4
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x40]
call fcn.00403260
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 0
call fcn.00402a30
cmp esi, dword [ebp - 0xa0]
je 0x4223bf
nop dword [eax + eax]
push 1
push 0x50cda0
lea ecx, [ebp - 0x40]
call fcn.00403260
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x422319
mov edx, dword [esi]
xor eax, eax
mov dword [ebp - 0xc4], 0
mov word [ebp - 0xc4], ax
mov eax, edx
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xb0], 7
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x422345
sub eax, edi
lea ecx, [ebp - 0xc4]
sar eax, 1
push eax
push edx
call fcn.00402a90
lea edx, [ebp - 0xc4]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xdc]
call fcn.00422090
mov byte [ebp - 4], 3
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x422384
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x40]
call fcn.00403260
lea ecx, [ebp - 0xdc]
call fcn.00402a30
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 0
call fcn.00402a30
add esi, 0x18
cmp esi, dword [ebp - 0xa0]
jne 0x422300
mov edi, dword [ebp - 0xa4]
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 4
cmp eax, edi
je 0x4223fb
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4223ef
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0x28]
push eax
call fcn.00402a90
lea ecx, [ebp - 0x28]
call fcn.004156f0
test al, al
jne 0x422421
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 0x9c]
mov byte [ebp - 0x95], 0
mov dword [esi], eax
jmp 0x422572
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x94]
push edx
lea edx, [ebp - 0x84]
mov dword [ebp - 0x84], 0x44
push edx
lea eax, [ebp - 0x28]
xorps xmm0, xmm0
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
push eax
mov eax, dword [ebp - 0xa8]
cmovae ecx, dword [ebp - 0x40]
push 0
movlpd qword [ebp - 0x80], xmm0
push dword [eax]
movlpd qword [ebp - 0x78], xmm0
push 0
push 0
push 0
push ecx
push 0
movlpd qword [ebp - 0x70], xmm0
movlpd qword [ebp - 0x68], xmm0
movlpd qword [ebp - 0x60], xmm0
movlpd qword [ebp - 0x58], xmm0
movlpd qword [ebp - 0x50], xmm0
movlpd qword [ebp - 0x48], xmm0
movups xmmword [ebp - 0x94], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x422529
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 0x9c]
mov ecx, eax
mov dword [esi], ecx
mov esi, dword [0x524fac]
test esi, esi
je 0x4224f2
push ecx
push str.CreateProcess_failed__Error:__u
push 0x50cdf8
push 0x50cdf8
push str.ProcessUtils
push str.OOBEUtils
push 0x32
mov ecx, esi
call dword [0x4f4350]
call esi
add esp, 0x1c
mov byte [ebp - 0x95], 0
jmp 0x422572
mov eax, dword [0x524fb0]
test eax, eax
je 0x422520
mov esi, dword [eax]
push ecx
push str.CreateProcess_failed__Error:__u
push str.ProcessUtils
mov esi, dword [esi + 0x34]
mov ecx, esi
push 0x50cdf8
push 0x32
push eax
call dword [0x4f4350]
call esi
add esp, 0x18
mov byte [ebp - 0x95], 0
jmp 0x422572
push dword [ebp - 0x8c]
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
mov esi, dword [ebp - 0x9c]
mov eax, dword [ebp - 0xac]
push dword [ebp - 0x94]
mov dword [esi], 0
mov dword [eax], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x90]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
mov byte [ebp - 0x95], 1
lea ecx, [ebp - 0x28]
call fcn.00402a30
lea ecx, [ebp - 0x40]
call fcn.00402a30
mov al, byte [ebp - 0x95]
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.004cc21a
mov esp, ebp
pop ebp
ret