Function at 0x4025da
Capabilities:
Check if file exists
Create directory
Delete directory
Delete file
Get common file path
Get file attributes
Query environment variable
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4dc
mov eax, dword [0x4480e8]
xor eax, esp
mov dword [esp + 0x4d8], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
lea eax, [esp + 0x2d4]
push edi
push 0x104
push eax
xor ebx, ebx
push str._TEMP_
mov dword [esp + 0x7c], ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x402637
push ecx
lea edx, [esp + 0x2dc]
lea ecx, [esp + 0x14]
call fcn.00409858
pop ecx
lea ecx, [esp + 0x10]
call fcn.00404665
push esi
lea ecx, [esp + 0x5c]
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], 7
call fcn.004030d4
lea ecx, [esp + 0x58]
call fcn.00401c63
mov ecx, dword [esp + 0x6c]
mov bl, al
cmp ecx, 8
jb 0x4026a2
mov eax, dword [esp + 0x58]
lea ecx, [ecx*2 + 2]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], eax
cmp ecx, 0x1000
jb 0x402699
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x58]
push eax
call fcn.0040129b
mov eax, dword [esp + 0x5c]
pop ecx
pop ecx
mov ecx, dword [esp + 0x50]
push ecx
push eax
call fcn.0041a4e9
pop ecx
pop ecx
test bl, bl
je 0x4026ad
xor eax, eax
jmp 0x402ac0
xor edi, edi
mov dword [esp + 0x6c], 7
push esi
lea ecx, [esp + 0x5c]
mov dword [esp + 0x5c], edi
mov dword [esp + 0x6c], edi
call fcn.004030d4
push ecx
push str._noprefetch
lea ecx, [esp + 0x60]
call fcn.00402ef0
mov ecx, dword [esp + 0x6c]
mov esi, eax
cmp ecx, 8
jb 0x402720
mov eax, dword [esp + 0x58]
lea ecx, [ecx*2 + 2]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x50], eax
cmp ecx, 0x1000
jb 0x402717
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x54]
push eax
call fcn.0040129b
mov eax, dword [esp + 0x58]
pop ecx
pop ecx
mov ecx, dword [esp + 0x54]
push ecx
push eax
call fcn.0041a4e9
pop ecx
pop ecx
xor ebx, ebx
inc ebx
cmp esi, 0xffffffff
jne 0x40279b
lea ecx, [esp + 0x54]
call fcn.0040174a
cmp eax, 0x44cc40
je 0x402742
mov ecx, dword [eax]
push ecx
mov dword [eax], edi
call fcn.00402bf3
cmp dword [0x44cc40], edi
lea ecx, [esp + 0x54]
setne bl
call fcn.004018ad
test bl, bl
je 0x402798
push 8
call fcn.0041a4b9
mov esi, eax
pop ecx
push 0x28
mov dword [esi], edi
mov dword [esi + 4], edi
call fcn.0041a4b9
xor ebx, ebx
pop ecx
inc ebx
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov byte [eax + 0xc], bl
mov byte [eax + 0xd], bl
push esi
mov dword [esi], eax
call fcn.00402bad
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ecx, eax
call fcn.00402141
jmp 0x40279b
xor ebx, ebx
inc ebx
call fcn.00402389
lea eax, [esp + 0x78]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edi, [esp + 0x78]
lea edi, [edi + eax*2]
or eax, 0xffffffff
mov dword [esp + 0x54], eax
lea eax, [esp + 0x78]
push eax
mov dword [esp + 0x54], edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x402812
push 0
lea eax, [esp + 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x402812
lea ecx, [esp + 0x50]
call fcn.00404cf0
xor eax, eax
push eax
push 0x4000000
push ebx
push eax
push eax
push 0x80000000
lea eax, [esp + 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, dword [esp + 0x50]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x78]
mov byte [esp + 0xf], 0
xor esi, esi
cmp edi, eax
je 0x402a1d
lea ecx, [esp + 0x50]
call fcn.00404cf0
push esi
lea eax, [esp + 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, dword [esp + 0x50]
test eax, eax
je 0x402a1d
push str._setup.dll
push 0xb
push edi
call fcn.0041f603
add esp, 0xc
push 0x43752e
push 0xc
call fcn.0041aa68
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x40287a
mov dword [esi], 0x4425f4
and dword [esi + 4], 0
and dword [esi + 8], 0
jmp 0x40287c
xor esi, esi
mov dword [esp + 0x70], esi
test esi, esi
je 0x402a86
mov eax, dword [esi]
and dword [esp + 0x4c], 0
push ecx
push dword [esp + 0x54]
mov edi, dword [eax + 8]
lea ecx, [esp + 0x18]
lea eax, [esp + 0x80]
push eax
call fcn.00404452
push eax
lea ecx, [esp + 0x5c]
call fcn.00402c56
lea eax, [esp + 0x28]
mov ecx, edi
push eax
lea eax, [esp + 0x5c]
push eax
push str.setup.dll.z
push str.SZIP
push 0
call dword [0x436200]
mov ecx, esi
call edi
lea ecx, [esp + 0x58]
mov esi, eax
call fcn.00404484
lea ecx, [esp + 0x10]
call fcn.00404484
lea ecx, [esp + 0x28]
call fcn.00402c23
test esi, esi
jne 0x402a10
call fcn.00404944
test al, al
je 0x402917
mov edx, dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
lea ecx, [esp + 0x10]
call fcn.00407896
lea eax, [esp + 0x10]
jmp 0x40292d
mov edx, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [esp + 0x28]
push 2
pop ebx
call fcn.00407896
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x5c]
call fcn.00402c56
test bl, 2
je 0x402945
lea ecx, [esp + 0x28]
call fcn.00403003
test bl, 1
je 0x402953
lea ecx, [esp + 0x10]
call fcn.00403003
cmp dword [esp + 0x68], 0
je 0x402974
cmp dword [esp + 0x6c], 8
lea eax, [esp + 0x58]
jb 0x402969
mov eax, dword [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x402984
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x402a07
push 8
push 0
lea eax, [esp + 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4029ff
push str.LogMessage
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RunInstance
push edi
mov dword [0x44a300], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 4
mov ebx, eax
call fcn.0041a4b9
mov dword [esp + 0x78], eax
pop ecx
mov dword [eax], 0x4424b0
test ebx, ebx
je 0x4029de
push eax
mov ecx, ebx
call dword [0x436200]
call ebx
jmp 0x4029e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
mov esi, eax
push edi
setne byte [esp + 0x13]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x74]
call fcn.00402ad7
jmp 0x402a07
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [esp + 0x58]
call fcn.00403003
mov edi, dword [esp + 0x50]
lea ecx, [esp + 0x70]
call fcn.00402af4
cmp dword [0x44cc40], 0
je 0x402a4f
push 0
call fcn.00402bf3
mov ebx, dword [0x44cc44]
and dword [0x44cc44], 0
test ebx, ebx
je 0x402a4f
mov ecx, ebx
call fcn.00402fe8
push 8
push ebx
call fcn.0041a4e9
pop ecx
pop ecx
cmp byte [esp + 0xf], 0
jne 0x402a8b
test esi, esi
jne 0x402a62
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, esi
call fcn.004022bf
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
mov word [edi], ax
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x402aae
push 0xe
pop esi
jmp 0x402a14
push ecx
push edi
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x1c]
call fcn.00404452
mov ecx, eax
call fcn.00401e69
lea ecx, [esp + 0x10]
call fcn.00404484
mov eax, dword [esp + 0x54]
cmp eax, 0xffffffff
je 0x402abe
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [esp + 0x4e4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041a4ab
mov esp, ebp
pop ebp
ret 0x10