Function at 0x403d00
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 0x403d4d
lodsb al, byte [esi]
cmp al, 0x25
jne 0x403d4d
push 0x4063ac
call fcn.00404900
push eax
push 0x4063ac
call sub.kernel32.dll_lstrcpyA
mov bl, 1
jmp 0x403d52
cmp byte [esi], 0
jne 0x403d2f
pop esi
mov edi, 0x4063ac
push 0x400
push 0x40fc18
push 5
push dword [0x406342]
call sub.user32.dll_LoadStringA
push 0x40fc18
call fcn.00401ce6
push edi
call fcn.00401ce6
cmp bl, 1
je 0x403d8d
test dword [esi + 0xd], 1
je 0x403dda
cmp byte [0x406feb], 0
jne 0x403dd0
push edi
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_lstrcpyA
lea eax, [ebp - 0x400]
push eax
call fcn.00401c90
push edi
call fcn.00404900
push eax
push dword [0x406346]
lea eax, [ebp - 0x400]
push eax
push 0x4062e9
push edi
call fcn.00404ab0
jmp 0x403dd2
xor eax, eax
test al, al
je 0x4040b1
push edi
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x403e78
test dword [esi + 0xd], 0x10
je 0x403df4
jmp 0x403e4c
cmp byte [0x406feb], 0
jne 0x403e29
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 0x403e3e
cmp byte [0x406fed], 1
jne 0x403e39
mov eax, 6
jmp 0x403e3e
mov eax, 7
cmp eax, 7
je 0x4040b1
cmp eax, 6
jne 0x403e78
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.00401ce6
cmp byte [edi + 1], 0x3a
jne 0x403ea9
cmp byte [edi + 2], 0x5c
jne 0x403ea9
push edi
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_lstrcpyA
lea eax, [ebp - 0x400]
push eax
call fcn.00401c90
lea eax, [ebp - 0x400]
push eax
call fcn.00404b20
mov eax, dword [esi + 5]
lea eax, [eax + esi]
push dword [esi + 1]
push eax
push edi
call fcn.00404844
or eax, eax
jne 0x403ef2
push edi
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x4040b1
push 0x400
push 0x410818
push 0x2b
push dword [0x406342]
call sub.user32.dll_LoadStringA
push 0x410818
call fcn.00401ce6
jmp 0x4040b1
mov eax, dword [esi + 9]
or eax, eax
je 0x403f26
push eax
push edi
call sub.kernel32.dll_SetFileAttributesA
cmp eax, 1
jne 0x403f26
push 0x400
push 0x410c18
push 0x2c
push dword [0x406342]
call sub.user32.dll_LoadStringA
push 0x410c18
call fcn.00401ce6
test dword [esi + 0xd], 2
je 0x404090
push 0x400
push 0x411018
push 0x2d
push dword [0x406342]
call sub.user32.dll_LoadStringA
push 0x411018
call fcn.00401ce6
lea ebx, [esi + 0x21]
cmp byte [ebx], 0
jne 0x403f60
xor ebx, ebx
jmp 0x403f78
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 0x40404e
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 0x403fed
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 0x404060
push 0xa
push 0
push ebx
push edi
push str.open
push 0
call sub.shell32.dll_ShellExecuteA
test dword [esi + 0xd], 8
je 0x404090
push 0x400
push 0x411418
push 0x2e
push dword [0x406342]
call sub.user32.dll_LoadStringA
push 0x411418
call fcn.00401ce6
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.00401ce6
push 0x400
push 0x411c18
push 0xc
push dword [0x406342]
call sub.user32.dll_LoadStringA
push 0x411c18
call fcn.00401ce6
push 0x4060ef
call fcn.00401ce6
pop ebx
pop edi
pop esi
leave
ret 4