Function at 0x4023c0
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 0x402621
push 8
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
mov dword [ebp - 8], eax
test eax, eax
je 0x402420
push 0x99
push 4
mov edx, 0x405434
call fcn.0040295d
push 0x1c
pop eax
call sub.ntdll.dll__alloca_probe
mov edi, esp
test edi, edi
je 0x402441
push 0x87
push 0x1b
mov eax, edi
mov edx, 0x4051b0
call fcn.0040295d
push 0x14
pop eax
call sub.ntdll.dll__alloca_probe
mov ebx, esp
test ebx, ebx
je 0x402462
push 0x86
push 0x13
mov eax, ebx
mov edx, 0x4051cc
call fcn.0040295d
push 8
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
mov dword [ebp - 4], eax
test eax, eax
je 0x402484
push 0x89
push 4
mov edx, 0x4057dc
call fcn.0040295d
push 8
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
test eax, eax
je 0x4024a3
push 0x8f
push 6
mov edx, 0x4058e0
call fcn.0040295d
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 0x4024c6
push 0xa
call fcn.00402b46
add eax, 0xa
push eax
call fcn.00402a1d
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4024e2
lea edi, [ebp - 0x148]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4024f2
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 0x40250e
lea edi, [ebp - 0x148]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x402520
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.004026a9
mov ebx, eax
test ebx, ebx
je 0x402621
mov eax, dword [ebp - 8]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40254a
sub eax, edx
lea edi, [ebx - 1]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x402556
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 0x402577
sub eax, ecx
lea ecx, [ebp - 0x148]
push ecx
push ebx
call fcn.00402340
test eax, eax
je 0x40261a
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 0x40259f
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 0x40261a
mov esi, dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push 0x40
push dword [ebp - 0xc]
call esi
push dword [ebp - 0xc]
call fcn.00401e80
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.00402b12
lea esp, [ebp - 0x460]
pop edi
pop esi
pop ebx
leave
ret