Function at 0x401290
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x128
mov eax, dword [0x414004]
xor eax, esp
mov dword [esp + 0x124], eax
mov eax, dword [0x412cac]
xor ecx, ecx
add eax, 2
push esi
setb cl
neg ecx
or ecx, eax
push edi
push ecx
call fcn.004048ec
mov esi, dword [0x412cac]
add esp, 4
mov edi, eax
lea ecx, [esi + 2]
push ecx
push 0
push edi
call fcn.00403a10
add esp, 0xc
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, edi
call fcn.00401000
push 0x412ca4
push dword [0x412cac]
add eax, 2
push eax
call fcn.00404660
add esp, 0xc
lea ecx, [esp + 0xd8]
push edi
call fcn.00401940
push edi
call fcn.004046c4
add esp, 4
mov byte [esp + 0x14], 0
mov byte [esp + 0x10], 0
lea ecx, [esp + 0xf0]
push dword [esp + 0x14]
push dword [esp + 0x14]
push dword [esp + 0x18]
call fcn.00401570
add esp, 0xc
mov ecx, eax
call fcn.00401860
push eax
lea ecx, [esp + 0xa4]
call fcn.00401940
push eax
lea edx, [esp + 0xdc]
lea ecx, [esp + 0xc4]
call fcn.00401e90
add esp, 4
lea ecx, [esp + 0xa0]
call fcn.00401910
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
lea ecx, [esp + 0xd8]
call fcn.00401900
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
test eax, eax
je 0x4014ed
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x10
call fcn.004029b4
add esp, 4
mov edi, eax
xorps xmm0, xmm0
push 0x44
movups xmmword [edi], xmm0
call fcn.004029b4
add esp, 4
mov esi, eax
push 0x44
push 0
push esi
call fcn.00403a10
add esp, 0xc
lea ecx, [esp + 0xc0]
push edi
push esi
push 0
push 0
push 0
push 0
push 0
push 0
call fcn.00401900
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4014bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [esp + 0x18]
call fcn.00401250
mov byte [esp + 0x10], 0
lea ecx, [esp + 0x30]
push dword [esp + 0x10]
mov byte [esp + 0x18], 0
mov esi, eax
push dword [esp + 0x18]
push dword [esp + 0x18]
call fcn.00401590
add esp, 0xc
mov ecx, eax
call fcn.004015f0
push eax
lea ecx, [esp + 0xa4]
call fcn.00401940
push esi
mov edx, eax
lea ecx, [esp + 0xf4]
call fcn.00401ec0
add esp, 4
lea ecx, [esp + 0xa0]
call fcn.00401910
lea ecx, [esp + 0x18]
call fcn.00401910
mov byte [esp + 0x10], 0
lea ecx, [esp + 0xa0]
push dword [esp + 0x10]
mov byte [esp + 0x18], 0
push dword [esp + 0x18]
push dword [esp + 0x18]
call fcn.004015a0
add esp, 0xc
mov ecx, eax
call fcn.004015b0
push 0x10
push eax
lea ecx, [esp + 0xf8]
call fcn.00401900
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea ecx, [esp + 0xc0]
call fcn.00401910
lea ecx, [esp + 0xd8]
call fcn.00401910
mov ecx, dword [esp + 0x12c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.004029a6
mov esp, ebp
pop ebp
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [esp + 0x18]
call fcn.00401250
mov byte [esp + 0x10], 0
lea ecx, [esp + 0x30]
push dword [esp + 0x10]
mov byte [esp + 0x18], 0
mov esi, eax
push dword [esp + 0x18]
push dword [esp + 0x18]
call fcn.00401580
add esp, 0xc
mov ecx, eax
call fcn.004015f0
push eax
lea ecx, [esp + 0xf4]
call fcn.00401940
push esi
mov edx, eax
lea ecx, [esp + 0xa4]
call fcn.00401ec0
add esp, 4
lea ecx, [esp + 0xf0]
call fcn.00401910
lea ecx, [esp + 0x18]
call fcn.00401910
push 0x10
push str.Error
lea ecx, [esp + 0xa8]
jmp 0x4014a7