Function at 0x4123d0
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48c
mov eax, dword [0x4422a0]
xor eax, ebp
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x18], 0
xor eax, eax
mov word [ebp - 0x480], ax
push 0x1fe
push 0
lea ecx, [ebp - 0x47e]
push ecx
call fcn.00402740
add esp, 0xc
xor edx, edx
mov word [ebp - 0x238], dx
push 0x1fe
push 0
lea eax, [ebp - 0x236]
push eax
call fcn.00402740
add esp, 0xc
mov dword [ebp - 0x280], 0
push 0x40
push 0
lea ecx, [ebp - 0x27c]
push ecx
call fcn.00402740
add esp, 0xc
mov dword [ebp - 0x14], 0
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0x24], 0
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 8]
push ecx
push str._CreateProcessRun___________RunFullName____________________s_
call fcn.004283a0
add esp, 8
mov edx, dword [ebp + 0xc]
push edx
push str._CreateProcessRun___________RunPgmParam____________________s_
call fcn.004283a0
add esp, 8
mov dword [ebp - 0x48c], 0
mov dword [ebp - 0x488], 0
mov dword [ebp - 0x484], 0x8000000
mov dword [ebp - 0x280], 0x44
mov dword [ebp - 0x24], 0xc
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 1
cmp dword [ebp + 0xc], 0
je 0x4124d6
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax]
cmp ecx, 0x20
jg 0x4124e5
mov dword [ebp - 0x48c], 0xffffffff
jmp 0x412738
cmp dword [ebp + 8], 0
je 0x41257f
mov edx, dword [ebp + 8]
movzx eax, word [edx]
cmp eax, 0x20
jle 0x41257f
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], 0
jmp 0x412516
mov edx, dword [ebp - 0x2c]
add edx, 1
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + eax*2]
test edx, edx
je 0x41255a
cmp dword [ebp - 0x2c], 0xff
jge 0x41255a
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + eax*2]
cmp edx, 0x2f
je 0x41254b
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + eax*2]
cmp edx, 0x5c
jne 0x412558
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp + 8]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 0x28], edx
jmp 0x41250d
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
push 0x4352d8
lea edx, [ebp - 0x238]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
jmp 0x41259f
mov ecx, dword [ebp + 0xc]
push ecx
push 0x4352e4
lea edx, [ebp - 0x238]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x254], 0x100
call fcn.00404517
mov dword [ebp - 0x248], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x244], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x240], ecx
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x280]
push eax
push 0
push 0
mov ecx, dword [ebp - 0x484]
push ecx
push 1
push 0
push 0
lea edx, [ebp - 0x238]
push edx
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x412688
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x488], eax
cmp dword [ebp - 0x488], 2
jne 0x41261c
mov dword [ebp - 0x48c], 0xfffffff5
jmp 0x412683
cmp dword [ebp - 0x488], 5
jne 0x412631
mov dword [ebp - 0x48c], 0xfffffff4
jmp 0x412683
cmp dword [ebp - 0x488], 0x3ee
jne 0x412649
mov dword [ebp - 0x48c], 0xfffffff3
jmp 0x412683
cmp dword [ebp - 0x488], 0x570
jne 0x412661
mov dword [ebp - 0x48c], 0xfffffff2
jmp 0x412683
cmp dword [ebp - 0x488], 0xc1
jne 0x412679
mov dword [ebp - 0x48c], 0xfffffff1
jmp 0x412683
mov dword [ebp - 0x48c], 0xfffffff0
jmp 0x412738
push 0x1388
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
je 0x4126ef
cmp dword [ebp - 0x30], 0
jne 0x4126d4
mov dword [ebp - 0x48c], 1
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4126ed
cmp dword [ebp - 0x30], 0x102
jne 0x4126ed
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp - 0x14]
mov dword [edx], eax
jmp 0x412719
mov dword [ebp - 0x48c], 0xffffffef
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x488], eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x488]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
push str._CreateProcessRun___________WaitForSingleObject____________08X_:__d_
call fcn.004283a0
add esp, 0xc
jmp 0x412738
mov edx, dword [ebp - 0x48c]
push edx
push str._CreateProcessRun___________fcret__________________________d_
call fcn.004283a0
add esp, 8
mov eax, dword [ebp - 0x48c]
mov ecx, dword [ebp - 0x34]
xor ecx, ebp
call fcn.00402730
mov esp, ebp
pop ebp
ret 0x14