Function at 0x5c9400
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x652e58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push esi
push edi
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x10], esp
push str.Unzip_df__2__r_n
add ecx, 0x4d4
mov dword [ebp - 4], 0
call fcn.0056fe30
mov eax, dword [0x6cdafc]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x5c9474
mov eax, dword [ebp + 8]
push 0
push 0x8000080
push 4
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x5c94ad
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x18]
push ecx
push edx
call fcn.00402850
mov eax, dword [ebp - 0x18]
add esp, 8
push 0
push 0x8000080
push 4
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x1c], esi
call fcn.00622d8a
cmp esi, 0xffffffff
je 0x5c95e4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
mov dword [ebp + 8], eax
jne 0x5c94d2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x5c9698
push 0
push eax
push 0
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
test edi, edi
jne 0x5c9504
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push 0
push 2
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
jne 0x5c953a
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x74]
call fcn.0057e540
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x30]
push 1
push edx
lea ecx, [ebp - 0x74]
mov dword [ebp - 4], 2
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x14], eax
call fcn.0057f120
push ebx
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
mov eax, dword [ebp + 8]
test eax, eax
jne 0x5c958b
lea ecx, [ebp - 0x74]
call fcn.0057edb0
jmp 0x5c95d2
mov eax, dword [ebp - 0x14]
push 0
push eax
push 0
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
jne 0x5c95b1
lea ecx, [ebp - 0x74]
call fcn.0057edb0
jmp 0x5c95d2
push 0
push 0
push 0
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [ebp - 0x20], eax
jne 0x5c95f9
lea ecx, [ebp - 0x74]
call fcn.0057edb0
push ebx
call edi
push esi
call edi
lea ecx, [ebp - 0x74]
mov dword [ebp - 4], 0xffffffff
call fcn.0057e580
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0x6c]
xor edx, edx
test ecx, ecx
mov dword [ebp + 8], edx
jbe 0x5c965e
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x70]
mov eax, dword [ebp + 8]
mov eax, dword [esi + eax*8]
lea edi, [eax + edx]
cmp edi, ecx
jbe 0x5c961c
sub ecx, edx
mov eax, ecx
mov edi, dword [ebp + 8]
mov ecx, eax
mov ebx, ecx
mov esi, dword [esi + edi*8 + 4]
mov edi, dword [ebp - 0x20]
add edi, edx
add edx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x14]
cmp ecx, edx
jbe 0x5c964f
mov eax, dword [ebp + 8]
mov esi, dword [ebp - 0x6c]
inc eax
cmp eax, esi
mov dword [ebp + 8], eax
jb 0x5c9608
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call edi
lea ecx, [ebp - 0x74]
call fcn.0057edb0
push esi
call edi
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
mov dword [eax + 0x4a8], ecx
lea ecx, [ebp - 0x74]
mov dword [eax + 0x4ac], 0
call fcn.0057e580
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4