Function at 0x59d970
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x63c660
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push esi
push edi
mov eax, dword [0x70a308]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x24], ecx
mov dword [ebp - 4], 0
push str.Unzip_df__2__r_n
add ecx, 0x4f4
call fcn.005547b0
mov dword [ebp - 4], 0xffffffff
push 0
cmp dword [0x704d14], 0
je 0x59d9f5
push 0x8000080
push 4
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp + 8], edi
jmp 0x59da3d
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x18]
push edx
call fcn.00402a50
add esp, 0xc
mov dword [ebp - 4], 2
push 0
push 0x8000080
push 4
push 0
push 0
push 0xc0000000
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00402550
mov edi, dword [ebp + 8]
cmp edi, 0xffffffff
je 0x59da7b
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x59da5e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x59dc2e
push 0
push eax
push 0
push 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov esi, eax
test esi, esi
jne 0x59da91
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push 0
push 2
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
jne 0x59dac8
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x70]
call fcn.00563e80
mov dword [ebp - 4], 3
mov dword [ebp - 0x28], ebx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x14]
push ecx
push 1
lea edx, [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x70]
call fcn.00563d70
mov dword [ebp - 0x1c], eax
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
cmp dword [ebp - 0x1c], 0
jne 0x59db3e
lea ecx, [ebp - 0x70]
call fcn.00563a70
push edi
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00563ea0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
mov eax, dword [ebp - 0x14]
push eax
push 0
push 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov esi, eax
mov dword [ebp - 0x20], esi
test esi, esi
je 0x59db0e
push 0
push 0
push 0
push 2
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x59dba3
lea ecx, [ebp - 0x70]
call fcn.00563a70
push esi
call ebx
push edi
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00563ea0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor esi, esi
xor ebx, ebx
cmp dword [ebp - 0x68], ebx
jbe 0x59dbeb
mov eax, dword [ebp - 0x14]
nop
mov ecx, dword [ebp - 0x6c]
mov edi, dword [ecx + ebx*8]
lea edx, [edi + esi]
cmp edx, eax
jbe 0x59dbc1
sub eax, esi
mov edi, eax
push edi
mov eax, dword [ecx + ebx*8 + 4]
push eax
mov ecx, dword [ebp - 0x1c]
lea edx, [esi + ecx]
push edx
call fcn.005fa190
add esp, 0xc
add esi, edi
mov eax, dword [ebp - 0x14]
cmp eax, esi
jbe 0x59dbe5
inc ebx
cmp ebx, dword [ebp - 0x68]
jb 0x59dbb0
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x20]
push eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
lea ecx, [ebp - 0x70]
call fcn.00563a70
push edi
call esi
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x4c8], ecx
mov dword [eax + 0x4cc], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00563ea0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4