Function at 0x4028c0
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 0x4028fa
push esi
push str.WARNING:_zip_source_file__s_cannot_be_found__operation_aborted_n
call fcn.00402760
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.00408780
mov esi, eax
add esp, 0xc
test esi, esi
je 0x402b1a
lea eax, [esp + 0x110]
push eax
push 0xffffffffffffffff
push esi
call fcn.004087f0
add esp, 0xc
test eax, eax
jne 0x402b01
cmp dword [esp + 0x110], 1
jne 0x402abb
lea ecx, [esp + 0x110]
push ecx
push 0
push esi
call fcn.004087f0
add esp, 0xc
test eax, eax
jne 0x402b27
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 0x4029b5
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 0x4029f6
push esi
call fcn.00408920
add esp, 4
test al, al
push esi
je 0x4029e2
call fcn.004088d0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x230
ret
call fcn.00403eb0
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.00402760
lea edx, [esp + 0x118]
push edx
push esi
call fcn.004027b0
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 0x402a84
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 0x4029c0
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.00408920
add esp, 4
test al, al
push esi
je 0x402aea
call fcn.004088d0
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.00402760
push esi
call fcn.00408920
add esp, 8
test al, al
push esi
je 0x402aea
call fcn.004088d0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x230
ret
call fcn.00403eb0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x230
ret
push str.____GetZipItem_failed__n
call fcn.00402760
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x230
ret
push str._OpenZip_failed__n
call fcn.00402760
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x230
ret