Function at 0x40354e
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
jne 0x4035a9
push str.break__n
push 0x21f
push str.FileSelfDelete
push str.src_fileio.cpp
call fcn.00404366
add esp, 0x10
jmp 0x40381d
push 8
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
mov dword [ebp - 8], eax
test eax, eax
je 0x4035cb
push 0x95
push 4
mov edx, 0x4086d4
call fcn.0040425a
push 0x1c
pop eax
call sub.ntdll.dll__alloca_probe
mov edi, esp
test edi, edi
je 0x4035ec
push 0x87
push 0x1b
mov eax, edi
mov edx, 0x408450
call fcn.0040425a
push 0x14
pop eax
call sub.ntdll.dll__alloca_probe
mov ebx, esp
test ebx, ebx
je 0x40360d
push 0x80
push 0x13
mov eax, ebx
mov edx, 0x40846c
call fcn.0040425a
push 8
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
mov dword [ebp - 4], eax
test eax, eax
je 0x40362f
push 0x98
push 4
mov edx, 0x408a7c
call fcn.0040425a
push 8
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
test eax, eax
je 0x40364e
push 0x81
push 6
mov edx, 0x408b80
call fcn.0040425a
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 0x403671
push 0xa
call fcn.004045fa
add eax, 0xa
push eax
call fcn.0040431a
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40368d
lea edi, [ebp - 0x148]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40369d
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 0x4036b9
lea edi, [ebp - 0x148]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4036cb
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.00403910
mov ebx, eax
test ebx, ebx
jne 0x4036fb
push str.break__n
push 0x230
jmp 0x403592
mov eax, dword [ebp - 8]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403700
sub eax, edx
lea edi, [ebx - 1]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40370c
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 0x40372d
sub eax, ecx
lea ecx, [ebp - 0x148]
push ecx
push ebx
call fcn.00403415
test eax, eax
mov eax, ebx
jne 0x40376e
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40374c
sub eax, edx
mov eax, ebx
jne 0x40375e
mov eax, str.none
push eax
push str.break___s_n
push 0x236
jmp 0x403804
lea edx, [ebp - 0x350]
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x403776
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 0x4037f3
mov esi, dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push 0x40
push dword [ebp - 0xc]
call esi
push dword [ebp - 0xc]
call fcn.00402574
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]
jmp 0x403816
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x405650
push 0x24d
push str.FileSelfDelete
push str.src_fileio.cpp
call fcn.00404366
add esp, 0x14
mov esi, ebx
call fcn.0040459f
lea esp, [ebp - 0x460]
pop edi
pop esi
pop ebx
leave
ret