Function at 0x579d20
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x63a180
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push ebp
push esi
push edi
mov eax, dword [0x70a308]
xor eax, esp
push eax
lea eax, [esp + 0x74]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x24], esi
push str.Unzip_df_r_n
call fcn.00597fd0
mov eax, dword [esi + 0xb0]
test eax, eax
je 0x579e25
mov eax, dword [eax + 0x10]
test eax, eax
je 0x579e25
cmp dword [0x704d14], 0
push 0
je 0x579d99
push 0x8000080
push 4
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
or edi, 0xffffffff
jmp 0x579dde
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00402a50
add esp, 0xc
mov dword [esp + 0x7c], 0
mov ecx, dword [esp + 0x1c]
push 0
push 0x8000080
push 4
push 0
push 0
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
or edi, 0xffffffff
mov ebp, eax
mov dword [esp + 0x7c], edi
lea ecx, [esp + 0x1c]
call fcn.00402550
cmp ebp, edi
jne 0x579e3b
lea ecx, [esp + 0x18]
call fcn.004024e0
mov dword [esp + 0x7c], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x1c]
push str.Unzip_df__cf_failed__lastErr_ld_r_n
push edx
call fcn.00402f60
mov eax, dword [esp + 0x24]
add esp, 0xc
push eax
mov ecx, esi
call fcn.00597fd0
mov dword [esp + 0x7c], edi
lea ecx, [esp + 0x18]
call fcn.00402550
xor al, al
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
jne 0x579e99
lea ecx, [esp + 0x18]
call fcn.004024e0
mov dword [esp + 0x7c], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x1c]
push str.Unzip_df__fs0__lastErr_ld_r_n
push ecx
call fcn.00402f60
mov edx, dword [esp + 0x24]
add esp, 0xc
push edx
mov ecx, esi
call fcn.00597fd0
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x7c], edi
lea ecx, [esp + 0x18]
call fcn.00402550
jmp 0x57a04c
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 0x579ecc
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
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 0x579f03
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push ebp
call esi
xor al, al
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
lea ecx, [esp + 0x30]
call fcn.00563e80
mov dword [esp + 0x7c], 3
lea eax, [esp + 0x14]
push eax
push 1
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x20], ebx
call fcn.00563d70
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call edi
test ebx, ebx
jne 0x579f7e
lea ecx, [esp + 0x30]
call fcn.00563a70
push ebp
call edi
mov dword [esp + 0x7c], 0xffffffff
lea ecx, [esp + 0x30]
call fcn.00563ea0
xor al, al
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
mov edx, dword [esp + 0x14]
push 0
push edx
push 0
push 4
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov esi, eax
mov dword [esp + 0x20], esi
test esi, esi
je 0x579f4b
push 0
push 0
push 0
push 2
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x579fc1
lea ecx, [esp + 0x30]
call fcn.00563a70
push esi
call edi
jmp 0x579f54
xor ebx, ebx
xor esi, esi
cmp dword [esp + 0x38], ebx
jbe 0x57a013
mov eax, dword [esp + 0x14]
nop
mov ecx, dword [esp + 0x34]
mov edi, dword [ecx + ebx*8]
lea edx, [edi + esi]
cmp edx, eax
jbe 0x579fe2
sub eax, esi
mov edi, eax
mov eax, dword [ecx + ebx*8 + 4]
mov ecx, dword [esp + 0x18]
push edi
push eax
lea edx, [esi + ecx]
push edx
call fcn.005fa190
mov eax, dword [esp + 0x20]
add esi, edi
add esp, 0xc
cmp eax, esi
jbe 0x57a009
inc ebx
cmp ebx, dword [esp + 0x38]
jb 0x579fd0
mov eax, dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esp + 0x20]
push eax
call edi
lea ecx, [esp + 0x30]
call fcn.00563a70
push ebp
call edi
mov ecx, dword [esp + 0x24]
push str.Unzip_df_OK_r_n
call fcn.00597fd0
mov dword [esp + 0x7c], 0xffffffff
lea ecx, [esp + 0x30]
call fcn.00563ea0
mov al, 1
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret