Function at 0x4022b3
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 0x4024c1
push 8
pop ebx
mov eax, ebx
call sub.ntdll.dll__alloca_probe
mov eax, esp
mov dword [ebp - 4], eax
test eax, eax
je 0x402315
push 0x87
push 4
mov edx, 0x4063bc
call fcn.00402d34
mov eax, ebx
call sub.ntdll.dll__alloca_probe
mov edi, esp
test edi, edi
je 0x402335
push 0x99
push 5
mov eax, edi
mov edx, 0x406150
call fcn.00402d34
push 0x10
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
mov dword [ebp - 8], eax
test eax, eax
je 0x402357
push 0x86
push 0xf
mov edx, 0x406158
call fcn.00402d34
mov eax, ebx
call sub.ntdll.dll__alloca_probe
mov eax, esp
mov dword [ebp - 0xc], eax
test eax, eax
je 0x402378
push 0x91
push 4
mov edx, 0x406768
call fcn.00402d34
mov eax, ebx
call sub.ntdll.dll__alloca_probe
mov eax, esp
test eax, eax
je 0x402396
push 0x97
push 6
mov edx, 0x40686c
call fcn.00402d34
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 0x4023b9
push 0xa
call fcn.00402ed1
add eax, 0xa
push eax
call fcn.00402ef8
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4023d5
lea edi, [ebp - 0x14c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4023e5
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 0x402402
lea edi, [ebp - 0x14c]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x402414
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.0040254a
mov ebx, eax
test ebx, ebx
je 0x4024c1
mov eax, dword [ebp - 4]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40243e
sub eax, edx
lea edi, [ebx - 1]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40244a
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 0x40246b
sub eax, ecx
lea ecx, [ebp - 0x14c]
push ecx
push ebx
call fcn.00402233
test eax, eax
je 0x4024ba
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.00402e9d
lea esp, [ebp - 0x360]
pop edi
pop esi
pop ebx
leave
ret