Function at 0x403522
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 0x40371d
push 8
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
mov dword [ebp - 4], eax
test eax, eax
je 0x40357e
push 4
pop ebx
mov edx, 0x409480
call fcn.0040449f
push 8
pop eax
call sub.ntdll.dll__alloca_probe
mov edi, esp
test edi, edi
je 0x40359b
push 5
mov eax, edi
pop ebx
mov edx, 0x409248
call fcn.0040449f
push 0x10
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
mov dword [ebp - 8], eax
test eax, eax
je 0x4035b9
push 0xf
pop ebx
mov edx, 0x409250
call fcn.0040449f
push 8
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4035d7
push 4
pop ebx
mov edx, 0x40982c
call fcn.0040449f
push 8
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
test eax, eax
je 0x4035f2
push 6
pop ebx
mov edx, 0x409930
call fcn.0040449f
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 0x403615
push 0xa
call fcn.0040450c
add eax, 0xa
push eax
call fcn.0040476c
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403631
lea edi, [ebp - 0x14c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x403641
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 0x40365e
lea edi, [ebp - 0x14c]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x403670
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.004037a9
mov ebx, eax
test ebx, ebx
je 0x40371d
mov eax, dword [ebp - 4]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40369a
sub eax, edx
lea edi, [ebx - 1]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4036a6
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 0x4036c7
sub eax, ecx
lea ecx, [ebp - 0x14c]
push ecx
push ebx
call fcn.004034a2
test eax, eax
je 0x403716
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.0040469e
lea esp, [ebp - 0x360]
pop edi
pop esi
pop ebx
leave
ret