Function at 0x402b60
Capabilities:
Get file size
Get system information on windows
Read file on windows
Read file via mapping
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x64]
push 0xffffffffffffffff
push 0x43b88c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x13c
mov eax, dword [0x447648]
push ebx
push esi
mov esi, dword [ebp + 0x74]
push edi
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push esi
mov dword [ebp + 0x54], eax
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp + 4], edi
jne 0x402bd0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.Failed_to_open_target_file___s___GetLastError_returned__d
push ebx
call fcn.004021f0
add esp, 0x10
xor al, al
jmp 0x40329c
mov ecx, dword [0x43de14]
mov edx, dword [0x43de18]
mov dword [ebp + 0x24], ecx
mov ecx, dword [0x43de1c]
mov dword [ebp + 0x2c], ecx
mov cl, byte [0x43de22]
mov dword [ebp + 0x28], edx
mov dx, word [0x43de20]
mov byte [ebp + 0x32], cl
lea eax, [ebp + 0x33]
mov word [ebp + 0x30], dx
xor ecx, ecx
mov byte [eax], cl
inc eax
inc ecx
cmp ecx, 0xf
jb 0x402c04
xor edx, edx
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
push ebx
mov dword [eax + 0xc], edx
lea eax, [ebp + 0x74]
push eax
push 0x2e
lea ecx, [ebp + 0x24]
push ecx
push edi
mov dword [ebp + 0x4e], 0x200
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, dword [ebp + 0x70]
mov eax, dword [esi + 8]
imul eax, eax, 0x114
push eax
call fcn.0042c503
mov edx, dword [esi + 8]
mov dword [ebp + 8], eax
mov eax, dword [esi + 4]
mov esi, dword [eax]
add esp, 4
xor ecx, ecx
cmp esi, eax
mov dword [ebp + 0x10], ebx
mov dword [ebp - 0xc], edx
mov dword [ebp + 0x1c], esi
je 0x403194
jmp 0x402c70
mov ecx, dword [ebp - 4]
jmp 0x402c70
mov ebx, dword [esi + 0x28]
inc ecx
test ebx, ebx
mov dword [ebp - 4], ecx
mov dword [ebp + 0x20], ebx
je 0x402c82
mov edx, dword [ebx]
jmp 0x402c87
mov edx, str._file_
cmp dword [esi + 0x24], 0x10
jb 0x402c92
mov eax, dword [esi + 0x10]
jmp 0x402c95
lea eax, [esi + 0x10]
push dword [ebp - 0xc]
push ecx
push eax
push edx
push str.Status:_Repacking_files...___From__s_r_nInfo:__s_r_nProgress:__u_of__u
call fcn.00401e30
xor eax, eax
add esp, 0x14
test ebx, ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x24]
je 0x402e9e
cmp eax, 0x10
jb 0x402ccb
mov eax, dword [esi + 0x10]
jmp 0x402cce
lea eax, [esi + 0x10]
lea ecx, [ebp - 0x24]
push ecx
push eax
push ebx
call fcn.00410190
mov ebx, eax
test byte [ebx + 0x10], 1
je 0x403137
mov edx, dword [ebx]
cmp edx, 0x714
jne 0x402d0e
cmp dword [ebx + 4], 0x449
jne 0x402d0e
cmp dword [ebx + 8], 0x55c
jne 0x402d0e
cmp dword [ebx + 0xc], 0x58a
je 0x403137
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 8]
mov dword [ebp - 0x20], eax
xor eax, eax
cmp edx, eax
mov esi, edx
mov dword [ebp - 0x18], ecx
je 0x402e94
push 1
lea edx, [ebp - 0x94]
push edx
xor ecx, ecx
push ecx
push eax
push edi
mov dword [ebp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov ecx, dword [ebp + 0x20]
mov eax, dword [ebp - 0x94]
mov edi, dword [ecx]
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x3c], 0xf
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x50], 0
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x402d62
sub eax, ecx
push eax
push edi
lea ecx, [ebp - 0x54]
call fcn.00406000
mov ecx, dword [ebp + 0x6c]
lea edx, [ebp - 0x54]
xor edi, edi
push edx
mov dword [ebp + 0x60], edi
call fcn.004087a0
mov dword [ebp + 0xc], eax
cmp dword [ebp - 0x3c], 0x10
mov dword [ebp + 0x60], 0xffffffff
jb 0x402da2
mov eax, dword [ebp - 0x50]
push eax
call fcn.0042b5b2
add esp, 4
test byte [ebx + 0x10], 6
mov dword [ebp - 0x3c], 0xf
mov dword [ebp - 0x40], edi
mov byte [ebp - 0x50], 0
jne 0x402dfc
mov ecx, dword [ebx + 0xc]
lea edx, [ebp - 0xe4]
push edx
mov dword [ebp + 0x20], ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [ebp - 0xc8]
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebx + 0xc]
dec edi
not edi
and edi, eax
mov eax, dword [ebx]
sub eax, edi
add eax, ecx
push eax
mov eax, dword [ebp + 0xc]
push edi
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, dword [ebx + 0xc]
sub ebx, edi
mov dword [ebp + 0x18], eax
add ebx, eax
jmp 0x402e17
mov eax, dword [ebp - 0x24]
push edi
lea ecx, [ebp - 0x98]
push ecx
mov ecx, dword [ebp + 0x20]
lea edx, [ebp - 0x2c]
push edx
push eax
push ecx
call fcn.0040e900
mov ebx, eax
xor edi, edi
test esi, esi
jbe 0x402e50
lea ecx, [ecx]
lea edx, [edi + 0x1000]
cmp edx, esi
mov eax, 0x1000
jbe 0x402e33
mov eax, esi
sub eax, edi
mov edx, dword [ebp + 4]
push 0
lea ecx, [ebp + 0x74]
push ecx
push eax
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 0x74]
add edi, eax
add ebx, eax
cmp edi, esi
jb 0x402e20
mov edi, dword [ebp + 0x18]
test edi, edi
je 0x402e76
lea eax, [ebp - 0xc0]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0xa4]
dec ecx
not ecx
and ecx, edi
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edi, dword [ebp + 4]
mov ecx, dword [ebp + 0x1c]
cmp dword [ecx + 0x24], 0x10
mov eax, dword [ecx + 0x20]
mov dword [ebp + 0x14], eax
jb 0x4030e1
mov ecx, dword [ecx + 0x10]
jmp 0x4030e4
mov dword [ebp - 0x20], eax
xor esi, esi
mov dword [ebp - 0x18], eax
jmp 0x402e79
cmp eax, 0x10
jb 0x402ea8
mov eax, dword [esi + 0x10]
jmp 0x402eab
lea eax, [esi + 0x10]
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push eax
mov dword [ebp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov eax, 0x10000
mov dword [ebp - 0x18], ebx
call fcn.0042c510
test ebx, ebx
mov dword [ebp + 0x14], esp
jne 0x402ef7
mov ecx, dword [ebp + 0x18]
push ecx
mov dword [ebp - 0x20], ebx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x402e79
push ebx
call fcn.00408b40
mov ebx, eax
push ebx
call fcn.0042c503
add esp, 4
push 0x38
push 0x43de74
xor ecx, ecx
push 0xffffffffffffffff
lea edx, [ebp - 0x8c]
push edx
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x20], ecx
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], ebx
call fcn.0040aa90
mov ebx, eax
test ebx, ebx
je 0x402f84
mov eax, dword [ebp + 0xc]
push eax
call fcn.0042c4fe
mov ecx, dword [ebp + 0x18]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 8]
push edx
call fcn.0042c4fe
mov eax, dword [esi + 0x24]
add esp, 4
cmp eax, 0x10
jb 0x402f70
mov eax, dword [esi + 0x10]
jmp 0x402f73
lea eax, [esi + 0x10]
push ebx
push eax
push 0x43de7c
push 1
call fcn.004021f0
add esp, 0x10
mov ebx, dword [ebp - 0x18]
test ebx, ebx
jbe 0x402fe8
jmp 0x402f90
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
push 0
lea ecx, [ebp - 0x28]
push ecx
push 0x10000
push eax
push edx
mov dword [ebp - 0x8c], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x28]
add dword [ebp + 0x20], eax
mov dword [ebp - 0x88], eax
jmp 0x402fc0
push 0
lea eax, [ebp - 0x8c]
push eax
call fcn.00408e10
mov eax, dword [ebp - 0x88]
test eax, eax
jne 0x402fc0
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x402fc0
mov eax, dword [ebp + 0x20]
mov ecx, ebx
sub ecx, eax
jne 0x402f90
push 4
lea edx, [ebp - 0x8c]
push edx
mov dword [ebp - 0x88], 0
call fcn.00408e10
lea eax, [ebp - 0x8c]
push eax
call fcn.00409660
test eax, eax
mov dword [ebp + 0x14], eax
je 0x40305e
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0042c4fe
mov edx, dword [ebp + 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
push edx
call ebx
push edi
call ebx
mov eax, dword [ebp + 8]
push eax
call fcn.0042c4fe
mov eax, dword [esi + 0x24]
add esp, 4
cmp eax, 0x10
jb 0x403047
mov esi, dword [esi + 0x10]
jmp 0x40304a
add esi, 0x10
mov ecx, dword [ebp + 0x14]
push ecx
push esi
push str.Zlib_Fatal_error_while_compressing__s__code__d_
push 1
call fcn.004021f0
add esp, 0x10
mov esi, dword [ebp - 0x78]
push 1
lea edx, [ebp - 0x38]
push edx
xor ecx, ecx
push ecx
xor eax, eax
push eax
push edi
mov dword [ebp - 0x20], esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
test esi, esi
mov dword [ebp - 0x10], eax
mov dword [ebp + 0x20], ecx
jbe 0x4030c6
lea esp, [esp]
lea edx, [ebx + 0x1000]
cmp edx, esi
mov eax, 0x1000
jbe 0x4030a3
mov eax, esi
sub eax, ebx
mov edx, dword [ebp + 0x20]
push 0
lea ecx, [ebp + 0x74]
push ecx
push eax
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 0x74]
mov edx, dword [ebp + 0x20]
add edx, eax
add ebx, eax
cmp ebx, esi
mov dword [ebp + 0x20], edx
jb 0x403090
mov eax, dword [ebp + 0xc]
push eax
call fcn.0042c4fe
mov ecx, dword [ebp + 0x18]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x402e79
add ecx, 0x10
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
inc eax
push eax
push ecx
add edx, ebx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0x20]
add eax, ecx
mov ecx, dword [ebp - 0x18]
mov byte [eax + ebx], 0
mov dword [eax + ebx + 1], edx
mov edx, dword [ebp - 0x10]
inc eax
mov dword [eax + ebx + 4], esi
mov esi, dword [ebp + 0x1c]
add eax, 4
add eax, 4
mov dword [eax + ebx], ecx
add eax, 4
mov byte [eax + ebx], 1
inc eax
add edx, 0xffffffd2
mov dword [eax + ebx], edx
add eax, 4
mov dword [ebp + 0x10], eax
inc dword [ebp - 8]
mov al, byte [esi + 0x2d]
test al, al
jne 0x403188
mov ecx, dword [esi + 8]
mov al, byte [ecx + 0x2d]
test al, al
jne 0x403161
mov eax, dword [ecx]
mov dl, byte [eax + 0x2d]
test dl, dl
jne 0x40315c
mov ecx, eax
mov eax, dword [ecx]
mov dl, byte [eax + 0x2d]
test dl, dl
je 0x403151
mov dword [ebp + 0x1c], ecx
jmp 0x403185
mov eax, dword [esi + 4]
mov cl, byte [eax + 0x2d]
test cl, cl
jne 0x403182
jmp 0x403170
mov esi, dword [ebp + 0x1c]
cmp esi, dword [eax + 8]
jne 0x403182
mov dword [ebp + 0x1c], eax
mov eax, dword [eax + 4]
mov cl, byte [eax + 0x2d]
test cl, cl
je 0x40316d
mov dword [ebp + 0x1c], eax
mov esi, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x70]
cmp esi, dword [eax + 4]
jne 0x402c68
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00408b40
push eax
mov dword [ebp], eax
call fcn.0042c503
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
add esp, 4
push edx
mov ebx, eax
push esi
lea eax, [ebp]
push eax
push ebx
call fcn.00408b20
push esi
call fcn.0042c4fe
add esp, 4
push 1
lea edx, [ebp - 0x30]
push edx
xor ecx, ecx
push ecx
xor eax, eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov esi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp]
mov edx, dword [ebp + 0x10]
sub esi, 0x2e
sbb eax, 0
push 0
mov dword [ebp - 0x34], eax
lea eax, [ebp + 0x74]
push eax
mov dword [ebp + 0x70], ecx
push 4
lea ecx, [ebp + 0x70]
push ecx
push edi
mov dword [ebp + 0x6c], edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [ebp + 0x74]
push edx
push 4
lea eax, [ebp + 0x6c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp]
push 0
lea ecx, [ebp + 0x74]
push ecx
push edx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call fcn.0042c4fe
add esp, 4
xor ecx, ecx
push ecx
lea edx, [ebp - 0x9c]
push edx
push ecx
mov eax, 0x1e
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov eax, dword [ebp - 8]
add eax, 7
push 0
lea ecx, [ebp + 0x74]
mov dword [ebp + 0x14], esi
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], eax
push ecx
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 4
lea edx, [ebp + 0x14]
push edx
push edi
call esi
push 0
lea eax, [ebp + 0x74]
push eax
push 4
lea ecx, [ebp - 0xc]
push ecx
push edi
call esi
push 0
lea edx, [ebp + 0x74]
push edx
push 4
lea eax, [ebp - 4]
push eax
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
lea esp, [ebp - 0xf0]
mov ecx, dword [ebp + 0x58]
mov dword fs:[0], ecx
mov ecx, dword [ebp + 0x54]
call fcn.0042b7bd
pop edi
pop esi
pop ebx
add ebp, 0x64
mov esp, ebp
pop ebp
ret 0x14