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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, 0x104
push esi
lea eax, [ebp - 0x24c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x402ec5
push 8
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
mov dword [ebp - 8], eax
test eax, eax
je 0x402cc7
push 0x88
push 4
mov edx, 0x40643c
call fcn.00403676
push 0x1c
pop eax
call sub.ntdll.dll__alloca_probe
mov edi, esp
test edi, edi
je 0x402ce8
push 0x97
push 0x1b
mov eax, edi
mov edx, 0x4061b8
call fcn.00403676
push 0x14
pop eax
call sub.ntdll.dll__alloca_probe
mov ebx, esp
test ebx, ebx
je 0x402d09
push 0x83
push 0x13
mov eax, ebx
mov edx, 0x4061d4
call fcn.00403676
push 8
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
mov dword [ebp - 4], eax
test eax, eax
je 0x402d28
push 0x7f
push 4
mov edx, 0x4067e4
call fcn.00403676
push 8
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
test eax, eax
je 0x402d47
push 0x8c
push 6
mov edx, 0x4068e8
call fcn.00403676
lea ecx, [ebp - 0x24c]
push ecx
push eax
lea eax, [ebp - 0x454]
push esi
push eax
call dword [sym.imp.ntdll.dll__snprintf]
lea ecx, [ebp - 0x148]
add esp, 0x10
mov eax, edi
sub ecx, edi
mov dl, byte [eax]
mov byte [ecx + eax], dl
inc eax
test dl, dl
jne 0x402d6a
push 0xa
call fcn.0040385f
add eax, 0xa
push eax
call fcn.00403736
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402d86
lea edi, [ebp - 0x148]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x402d96
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
mov eax, ebx
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x402db2
lea edi, [ebp - 0x148]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x402dc4
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00402f4d
mov ebx, eax
test ebx, ebx
je 0x402ec5
mov eax, dword [ebp - 8]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402dee
sub eax, edx
lea edi, [ebx - 1]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x402dfa
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0x148]
rep movsb byte es:[edi], byte [esi]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x402e1b
sub eax, ecx
lea ecx, [ebp - 0x148]
push ecx
push ebx
call fcn.00402be7
test eax, eax
je 0x402ebe
lea edx, [ebp - 0x350]
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x402e43
mov ecx, dword [ebp - 4]
xor eax, eax
mov dword [ebp - 0x38], ecx
lea ecx, [ebp - 0x350]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x34], ecx
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x454]
push eax
mov dword [ebp - 0x44], 0x3c
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x40], 0x800040
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x402ebe
mov esi, dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push 0x40
push dword [ebp - 0xc]
call esi
push dword [ebp - 0xc]
call fcn.00402118
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
push 0xf
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov esi, ebx
call fcn.0040382b
lea esp, [ebp - 0x460]
pop edi
pop esi
pop ebx
leave
ret