Function at 0x401e70
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x474
mov eax, dword [0x412064]
xor eax, esp
mov dword [esp + 0x470], eax
push ebx
push esi
push edi
xor eax, eax
xor edi, edi
push 0x40
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x28]
push edi
push eax
mov esi, ecx
mov ebx, edx
mov dword [esp + 0x18], edi
mov dword [esp + 0x2c], edi
call fcn.00405cb0
add esp, 0xc
push 0x207
lea ecx, [esp + 0x6d]
push edi
push ecx
mov byte [esp + 0x74], 0
call fcn.00405cb0
add esp, 0xc
or eax, 0xffffffff
cmp esi, edi
je 0x4020f7
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401ee1
sub eax, edx
cmp dword [0x5b55c4], 1
mov edi, eax
mov dword [esp + 0x20], 0x44
jne 0x401f07
mov dword [esp + 0x28], str.08BB0577_43FA_4feb_8133_BC3D64AB6B8B
mov eax, ebx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401f10
push 0x104
sub eax, edx
push esi
lea edx, [esp + 0x70]
push edx
je 0x401f61
call fcn.004036d3
mov ecx, 0x103
add esp, 0xc
sub ecx, edi
je 0x401f69
lea edi, [esp + 0x68]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x401f40
mov ax, word [0x40fde0]
push ecx
lea ecx, [esp + 0x6c]
push ebx
push ecx
mov word [edi], ax
call fcn.0040385f
jmp 0x401f66
call fcn.004036d3
add esp, 0xc
lea eax, [esp + 0x68]
push eax
push str.CreateProcess_SREng_Core_Process._RunCommand_is__s_r_n
push 0x5b4a1c
call fcn.00401110
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x24]
push edx
push 0
push 0
push 0x30
push 1
push 0
push 0
lea eax, [esp + 0x88]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x401fc3
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.004030d8
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
push str.CreateProcess_Failed._GetLastError___d_r_n
push 0x5b4a1c
call fcn.00401110
add esp, 0xc
or edi, 0xffffffff
call esi
push 0x207
lea ecx, [esp + 0x275]
push 0
push ecx
mov ebx, eax
mov byte [esp + 0x27c], 0
call fcn.00405cb0
add esp, 0xc
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x40203f
push ebx
push str.LoadLibrary_user32.dll_failed._LastError___d_r_n
push 0x5b4a1c
call fcn.00401110
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.004030d8
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push esi
call ebx
push str.LoadStringA
push esi
mov dword [0x5b55b0], eax
call ebx
cmp dword [0x5b55b0], 0
mov dword [0x5b55b4], eax
je 0x4020e3
test eax, eax
je 0x4020e3
push 0x208
lea edx, [esp + 0x274]
push edx
push 0x83
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [0x5b55b4]
test eax, eax
push 0x10
push 0x40fecc
je 0x4020bf
lea eax, [esp + 0x278]
push eax
push 0
call dword [0x5b55b0]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.004030d8
mov esp, ebp
pop ebp
ret
push str.Launch_System_Repair_Engineer_core_module_failed.
push 0
call dword [0x5b55b0]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.004030d8
mov esp, ebp
pop ebp
ret
push str.MessageBoxA__NULL__LoadStringA__NULL_r_n
push 0x5b4a1c
call fcn.00401110
add esp, 8
mov eax, edi
mov ecx, dword [esp + 0x47c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004030d8
mov esp, ebp
pop ebp
ret