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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x354
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, 0x104
push esi
lea eax, [ebp - 0x250]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x250]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4032db
push 8
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
mov dword [ebp - 4], eax
test eax, eax
je 0x403128
push 0x86
push 4
pop ebx
mov edx, 0x4093c0
call fcn.00403a50
push 8
pop eax
call sub.ntdll.dll__alloca_probe
mov edi, esp
test edi, edi
je 0x40314a
push 0x97
push 5
mov eax, edi
pop ebx
mov edx, 0x409188
call fcn.00403a50
push 0x10
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
mov dword [ebp - 8], eax
test eax, eax
je 0x40316d
push 0x8f
push 0xf
pop ebx
mov edx, 0x409190
call fcn.00403a50
push 8
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
mov dword [ebp - 0xc], eax
test eax, eax
je 0x403190
push 0x90
push 4
pop ebx
mov edx, 0x40976c
call fcn.00403a50
push 8
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
test eax, eax
je 0x4031b0
push 0x95
push 6
pop ebx
mov edx, 0x409870
call fcn.00403a50
lea ecx, [ebp - 0x250]
push ecx
push eax
lea eax, [ebp - 0x354]
push esi
push eax
call dword [sym.imp.ntdll.dll__snprintf]
lea ecx, [ebp - 0x14c]
add esp, 0x10
mov eax, edi
sub ecx, edi
mov dl, byte [eax]
mov byte [ecx + eax], dl
inc eax
test dl, dl
jne 0x4031d3
push 0xa
call fcn.00403c37
add eax, 0xa
push eax
call fcn.00403cc7
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4031ef
lea edi, [ebp - 0x14c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4031ff
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp - 8]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40321c
lea edi, [ebp - 0x14c]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40322e
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.0040336c
mov ebx, eax
test ebx, ebx
je 0x4032db
mov eax, dword [ebp - 4]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403258
sub eax, edx
lea edi, [ebx - 1]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x403264
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 - 0x14c]
rep movsb byte es:[edi], byte [esi]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x403285
sub eax, ecx
lea ecx, [ebp - 0x14c]
push ecx
push ebx
call fcn.00403047
test eax, eax
je 0x4032d4
mov ecx, dword [ebp - 0xc]
xor eax, eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], ecx
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x354]
push eax
mov dword [ebp - 0x48], 0x3c
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x44], 0x800000
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov esi, ebx
call fcn.00403b69
lea esp, [ebp - 0x360]
pop edi
pop esi
pop ebx
leave
ret