Function at 0x402e40
Capabilities:
Check if file exists
Copy file
Create directory
Delete file
Get common file path
Set current directory
Set file attributes

Disassembly:
sub esp, 0x230
push ebx
push esi
mov esi, dword [esp + 0x23c]
push edi
push 4
push esi
call dword [sym.imp.MSVCRT.dll__access]
add esp, 8
test eax, eax
je 0x402e7a
push esi
push str.WARNING:_zip_source_file__s_cannot_be_found__operation_aborted_n
call fcn.00402ce0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x230
ret
xor eax, eax
mov ecx, 0x4b
lea edi, [esp + 0x110]
push 2
push eax
push esi
rep stosd dword es:[edi], eax
call fcn.00408d00
mov esi, eax
add esp, 0xc
test esi, esi
je 0x40309a
lea eax, [esp + 0x110]
push eax
push 0xffffffffffffffff
push esi
call fcn.00408d70
add esp, 0xc
test eax, eax
jne 0x403081
cmp dword [esp + 0x110], 1
jne 0x40303b
lea ecx, [esp + 0x110]
push ecx
push 0
push esi
call fcn.00408d70
add esp, 0xc
test eax, eax
jne 0x4030a7
mov ecx, 0x40
lea edi, [esp + 0xd]
mov byte [esp + 0xc], al
lea edx, [esp + 0xc]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push edx
push 0x104
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [esp + 0xc]
push str.Loader
push eax
call edi
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
lea ecx, [esp + 0xc]
push ecx
call ebx
test eax, eax
jne 0x402f35
lea edx, [esp + 0xc]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [esp + 0xc]
push eax
call ebx
test eax, eax
jne 0x402f76
push esi
call fcn.00408ea0
add esp, 4
test al, al
push esi
je 0x402f62
call fcn.00408e50
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x230
ret
call fcn.00404430
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x230
ret
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push str.____Zip_archive_contains_1_file___OK
call fcn.00402ce0
lea edx, [esp + 0x118]
push edx
push esi
call fcn.00402d30
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [esp + 0x114]
lea edx, [esp + 0xc]
push ecx
push edx
call edi
mov edi, dword [esp + 0x244]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x80
push edi
call ebx
push 0
lea eax, [esp + 0x10]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
push 0x80
jne 0x403004
lea ecx, [esp + 0x10]
push ecx
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x402f40
lea eax, [esp + 0x10]
push eax
call ebx
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
call fcn.00408ea0
add esp, 4
test al, al
push esi
je 0x40306a
call fcn.00408e50
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x230
ret
push str.____Zip_archive_contains_multi_file__n
call fcn.00402ce0
push esi
call fcn.00408ea0
add esp, 8
test al, al
push esi
je 0x40306a
call fcn.00408e50
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x230
ret
call fcn.00404430
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x230
ret
push str.____GetZipItem_failed__n
call fcn.00402ce0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x230
ret
push str._OpenZip_failed__n
call fcn.00402ce0
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x230
ret