Function at 0x403cb0
Capabilities:
Check if file exists
Create process on windows
Delete file
Get common file path
Get file attributes
Query environment variable
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff3ac
push esi
push edi
push ebx
mov esi, dword [ebp + 8]
lea edi, [esi + 0x421]
push 0x400
push 0x4063ac
push edi
call sub.kernel32.dll_ExpandEnvironmentStringsA
push esi
mov esi, 0x4063ac
mov bl, 0
jmp 0x403cfd
lodsb al, byte [esi]
cmp al, 0x25
jne 0x403cfd
push 0x4063ac
call fcn.004048b0
push eax
push 0x4063ac
call sub.kernel32.dll_lstrcpyA
mov bl, 1
jmp 0x403d02
cmp byte [esi], 0
jne 0x403cdf
pop esi
mov edi, 0x4063ac
push 0x400
push 0x40fc18
push 5
push dword [0x406342]
call sub.user32.dll_LoadStringA
push 0x40fc18
call fcn.00401cc6
push edi
call fcn.00401cc6
cmp bl, 1
je 0x403d3d
test dword [esi + 0xd], 1
je 0x403d8a
cmp byte [0x406feb], 0
jne 0x403d80
push edi
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_lstrcpyA
lea eax, [ebp - 0x400]
push eax
call fcn.00401c70
push edi
call fcn.004048b0
push eax
push dword [0x406346]
lea eax, [ebp - 0x400]
push eax
push str.All_Files
push edi
call fcn.00404a60
jmp 0x403d82
xor eax, eax
test al, al
je 0x404061
push edi
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x403e28
test dword [esi + 0xd], 0x10
je 0x403da4
jmp 0x403dfc
cmp byte [0x406feb], 0
jne 0x403dd9
push 0x400
push 0x410018
push 0x29
push dword [0x406342]
call sub.user32.dll_LoadStringA
push 0x24
push edi
push 0x410018
push dword [0x406346]
call sub.user32.dll_MessageBoxA
jmp 0x403dee
cmp byte [0x406fed], 1
jne 0x403de9
mov eax, 6
jmp 0x403dee
mov eax, 7
cmp eax, 7
je 0x404061
cmp eax, 6
jne 0x403e28
push 0x80
push edi
call sub.kernel32.dll_SetFileAttributesA
push 0x400
push 0x410418
push 0x2a
push dword [0x406342]
call sub.user32.dll_LoadStringA
push 0x410418
call fcn.00401cc6
cmp byte [edi + 1], 0x3a
jne 0x403e59
cmp byte [edi + 2], 0x5c
jne 0x403e59
push edi
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_lstrcpyA
lea eax, [ebp - 0x400]
push eax
call fcn.00401c70
lea eax, [ebp - 0x400]
push eax
call fcn.00404ad0
mov eax, dword [esi + 5]
lea eax, [eax + esi]
push dword [esi + 1]
push eax
push edi
call fcn.004047f4
or eax, eax
jne 0x403ea2
push edi
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x404061
push 0x400
push 0x410818
push 0x2b
push dword [0x406342]
call sub.user32.dll_LoadStringA
push 0x410818
call fcn.00401cc6
jmp 0x404061
mov eax, dword [esi + 9]
or eax, eax
je 0x403ed6
push eax
push edi
call sub.kernel32.dll_SetFileAttributesA
cmp eax, 1
jne 0x403ed6
push 0x400
push 0x410c18
push 0x2c
push dword [0x406342]
call sub.user32.dll_LoadStringA
push 0x410c18
call fcn.00401cc6
test dword [esi + 0xd], 2
je 0x404040
push 0x400
push 0x411018
push 0x2d
push dword [0x406342]
call sub.user32.dll_LoadStringA
push 0x411018
call fcn.00401cc6
lea ebx, [esi + 0x21]
cmp byte [ebx], 0
jne 0x403f10
xor ebx, ebx
jmp 0x403f28
push 0x400
lea eax, [ebp - 0x800]
push eax
push ebx
call sub.kernel32.dll_ExpandEnvironmentStringsA
lea ebx, [ebp - 0x800]
test dword [esi + 0xd], 4
je 0x403ffe
push 0x44
lea eax, [ebp - 0xc44]
push eax
call sub.kernel32.dll_RtlZeroMemory
push 0x10
lea eax, [ebp - 0xc54]
push eax
call sub.kernel32.dll_RtlZeroMemory
push 0x4062f8
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_lstrcpyA
cmp byte [edi + 1], 0x3a
je 0x403f9d
lea eax, [ebp - 0xc00]
push eax
push 0x400
call sub.kernel32.dll_GetCurrentDirectoryA
lea eax, [ebp - 0xc00]
push eax
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_lstrcatA
push 0x4062fa
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_lstrcatA
push edi
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_lstrcatA
push 0x4062fc
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_lstrcatA
push ebx
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_lstrcatA
lea eax, [ebp - 0xc54]
push eax
lea eax, [ebp - 0xc44]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x400]
push eax
push edi
call sub.kernel32.dll_CreateProcessA
push 0xffffffffffffffff
push dword [ebp - 0xc54]
call sub.kernel32.dll_WaitForSingleObject
jmp 0x404010
push 0xa
push 0
push ebx
push edi
push str.open
push 0
call sub.shell32.dll_ShellExecuteA
test dword [esi + 0xd], 8
je 0x404040
push 0x400
push 0x411418
push 0x2e
push dword [0x406342]
call sub.user32.dll_LoadStringA
push 0x411418
call fcn.00401cc6
push edi
call sub.kernel32.dll_DeleteFileA
push 0x400
push 0x411818
push 0x2f
push dword [0x406342]
call sub.user32.dll_LoadStringA
push 0x411818
call fcn.00401cc6
push 0x400
push 0x411c18
push 0xc
push dword [0x406342]
call sub.user32.dll_LoadStringA
push 0x411c18
call fcn.00401cc6
push 0x4060ef
call fcn.00401cc6
pop ebx
pop edi
pop esi
leave
ret 4