Function at 0x5802a0
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x62bbc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push ebp
push esi
push edi
mov esi, ecx
push str.Unzip_df_r_n
mov dword [esp + 0x24], esi
call fcn.005a7550
mov eax, dword [esi + 0xb0]
test eax, eax
je 0x580539
mov eax, dword [eax + 0x10]
test eax, eax
je 0x580539
mov ecx, dword [0x6a45ac]
test ecx, ecx
je 0x580310
push 0
push 0x8000080
push 4
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
mov dword [esp + 0x1c], ebp
jmp 0x58034a
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00402500
mov ecx, dword [esp + 0x1c]
add esp, 8
push 0
push 0x8000080
push 4
push 0
push 0
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], ebp
call fcn.00602ad6
or edi, 0xffffffff
cmp ebp, edi
jne 0x5803aa
mov edx, dword [0x6cc708]
mov dword [esp + 0x14], edx
mov dword [esp + 0x78], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x18]
push str.Unzip_df__cf_failed__lastErr_ld_r_n
push eax
call fcn.005fb90b
mov ecx, dword [esp + 0x20]
add esp, 0xc
push ecx
mov ecx, esi
call fcn.005a7550
lea ecx, [esp + 0x14]
mov dword [esp + 0x78], edi
call fcn.00602ad6
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
add esp, 0x6c
ret
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
jne 0x580419
mov edx, dword [0x6cc708]
mov dword [esp + 0x18], edx
mov dword [esp + 0x78], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x1c]
push str.Unzip_df__fs0__lastErr_ld_r_n
push eax
call fcn.005fb90b
mov ecx, dword [esp + 0x24]
add esp, 0xc
push ecx
mov ecx, esi
call fcn.005a7550
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x18]
mov dword [esp + 0x78], edi
call fcn.00602ad6
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
add esp, 0x6c
ret
push 0
push ebx
push 0
push 4
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov esi, eax
test esi, esi
jne 0x58044b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
add esp, 0x6c
ret
push 0
push 0
push 0
push 2
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x580481
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
add esp, 0x6c
ret
lea ecx, [esp + 0x2c]
call fcn.00562d10
lea edx, [esp + 0x10]
lea eax, [esp + 0x24]
push edx
push 1
push eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x84], 2
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x1c], ebx
call fcn.005638f0
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
test ebx, ebx
jne 0x5804d7
lea ecx, [esp + 0x2c]
call fcn.00563580
jmp 0x580525
mov ecx, dword [esp + 0x10]
push 0
push ecx
push 0
push 4
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x14], ebx
jne 0x580500
lea ecx, [esp + 0x2c]
call fcn.00563580
jmp 0x580525
push 0
push 0
push 0
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
mov dword [esp + 0x18], edi
jne 0x58054e
lea ecx, [esp + 0x2c]
call fcn.00563580
push ebx
call esi
push ebp
call esi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x78], 0xffffffff
call fcn.00562d50
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
add esp, 0x6c
ret
mov ecx, dword [esp + 0x34]
xor edx, edx
xor eax, eax
test ecx, ecx
jbe 0x5805b1
mov ecx, dword [esp + 0x10]
jmp 0x580564
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x30]
mov ebx, dword [esi + eax*8]
lea ebp, [ebx + edx]
cmp ebp, ecx
jbe 0x580576
sub ecx, edx
mov ebx, ecx
mov esi, dword [esi + eax*8 + 4]
mov ecx, ebx
mov ebp, ecx
add edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
add edx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
cmp ecx, edx
jbe 0x58059f
mov esi, dword [esp + 0x34]
inc eax
cmp eax, esi
jb 0x580560
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call esi
lea ecx, [esp + 0x2c]
call fcn.00563580
push ebp
call esi
mov ecx, dword [esp + 0x20]
push str.Unzip_df_OK_r_n
call fcn.005a7550
lea ecx, [esp + 0x2c]
mov dword [esp + 0x78], 0xffffffff
call fcn.00562d50
mov ecx, dword [esp + 0x70]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x6c
ret