Function at 0x404230
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c4d0
mov eax, dword fs:[0]
push eax
sub esp, 0x80
push ebx
push esi
push edi
mov eax, dword [0x42600c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], edx
mov ebx, ecx
push str.enter_DoStartProcess
call fcn.00403ef0
add esp, 4
mov dword [ebp - 4], 0
push 0x800
push 0
push str.USERENV.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
push str.CreateEnvironmentBlock
push edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call esi
mov dword [ebp - 0x1c], eax
push str.DestroyEnvironmentBlock
push edi
call esi
mov ecx, eax
mov edx, dword [ebp - 0x1c]
test edx, edx
je 0x404450
test ecx, ecx
je 0x404450
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
push eax
sub esp, 8
mov eax, esp
mov dword [eax], ecx
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov dword [eax + 4], 1
mov edi, dword [ebp - 0x20]
mov dword [eax + 8], edi
lea ecx, [ebp - 0x2c]
call fcn.004049e0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x1c], 0
jne 0x40431d
push 0
push str.initResult_d
call fcn.00403ef0
add esp, 8
mov dword [ebp - 0x38], vtable.std::exception.0
xorps xmm0, xmm0
movq qword [ebp - 0x34], xmm0
push 0x424d78
lea eax, [ebp - 0x38]
push eax
call fcn.004061e1
xorps xmm0, xmm0
movups xmmword [ebp - 0x48], xmm0
push 0x44
push 0
lea eax, [ebp - 0x8c]
push eax
call fcn.00406710
add esp, 0xc
mov dword [ebp - 0x8c], 0x44
mov dword [ebp - 0x84], str.Winsta0Default
xor esi, esi
push ebx
lea ecx, [ebp - 0x14]
call fcn.004022b0
mov byte [ebp - 4], 2
push ecx
lea ecx, [ebp - 0x14]
call fcn.004021b0
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
je 0x4043bf
lea ecx, [eax + 1]
push ecx
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x14]
call fcn.00402070
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x14]
call fcn.004021e0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.00402250
push dword [ebp - 0x1c]
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x14]
call fcn.00402110
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x14]
call fcn.004021e0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.00402250
mov esi, dword [ebp - 0x14]
push esi
push ebx
push str.create_process__s___s
call fcn.00403ef0
add esp, 0xc
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x8c]
push eax
push esi
push dword [ebp - 0x2c]
push 0x400
push 0
push 0
push 0
push ebx
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x4043fd
xor edi, edi
mov dword [ebp - 0x18], edi
jmp 0x404416
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [ebp - 0x18], edi
push edi
push str.create_process_failed__d
call fcn.00403ef0
add esp, 8
push ecx
lea ecx, [ebp - 0x14]
call fcn.00403cc0
push dword [ebp - 0x44]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x48]
call esi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00402250
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00403b70
mov dword [ebp - 4], 0xffffffff
jmp 0x4044a7
push ecx
push edx
push str.pFuncCreateEnvironmentBlock_x_pFuncDestroyEnvironmentBlock_x
call fcn.00403ef0
add esp, 0xc
mov eax, 0xa
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push str.normal_exit:_d
call fcn.00403ef0
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret