Function at 0x5d77f0
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x214]
sub esp, 0x214
push 0xffffffffffffffff
push 0x667623
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x758898]
xor eax, ebp
mov dword [ebp + 0x210], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x28], esi
mov ebx, dword [ebp + 0x21c]
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp + 0x228]
mov ecx, dword [ebp + 0x22c]
mov dword [ebp - 0x2c], ecx
xor edi, edi
mov dword [ebp - 4], edi
push 1
push eax
mov ecx, esi
call fcn.005d7790
test al, al
je 0x5d78c8
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
cmp ecx, edi
jg 0x5d7874
jl 0x5d786f
cmp eax, 0x2da0
jae 0x5d7874
mov dword [ebp - 0x54], ecx
jmp 0x5d787c
mov eax, 0x2da0
mov dword [ebp - 0x54], edi
mov edi, eax
mov dword [ebp - 0x24], edi
xor ecx, ecx
neg eax
mov dword [ebp - 0x60], eax
adc ecx, ecx
neg ecx
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], ecx
push 2
lea edx, [ebp - 0x40]
push edx
push eax
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x34], eax
cmp eax, 0xffffffff
jne 0x5d78f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x5d78f4
push eax
push str.SetFilePointer___error__ld_in_CFormatParsing::FillZipFormatStruct___r_n
mov ecx, esi
call fcn.005d8a10
mov eax, 6
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x210]
xor ecx, ebp
call fcn.0062023e
add ebp, 0x214
mov esp, ebp
pop ebp
ret 0x14
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
mov dword [ebp - 0x4c], edi
test edi, edi
jne 0x5d7914
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LocalAlloc_error__ld_in_CFormatParsing::FillZipFormatStruct___r_n
jmp 0x5d78c1
push 0
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x24]
push edx
push edi
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x5d7cdf
mov ecx, dword [ebp - 0x24]
cmp dword [ebp - 0x18], ecx
jb 0x5d7cdf
cmp dword [ebx], 0
je 0x5d797c
mov byte [ebp - 4], 1
mov ecx, dword [ebx]
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x64], ecx
test ecx, ecx
je 0x5d795d
mov edx, dword [ecx]
push 1
mov eax, dword [edx]
call eax
mov dword [ebp - 4], 0
jmp 0x5d797c
push 0x58
call fcn.005f44e8
add esp, 4
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x5d799a
mov ecx, eax
call fcn.005d97b0
jmp 0x5d799c
xor eax, eax
mov dword [ebp - 0x50], eax
mov byte [ebp - 4], 0
mov dword [ebx], eax
test eax, eax
jne 0x5d79c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.new_operator_error__ld_in_CFormatParsing::FillZipFormatStruct___r_n
mov ecx, esi
call fcn.005d8a10
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x5d78c8
mov ecx, dword [ebp - 0x24]
push ecx
push edi
mov ecx, eax
call fcn.005d9090
cmp eax, 0xc8
je 0x5d7a13
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__ld__ECDR_32___Process_ECDR____in_CFormatParsing::FillZipFormatStruct___r_n
mov ecx, esi
call fcn.005d8a10
mov ecx, dword [ebx]
test ecx, ecx
je 0x5d79fc
mov edx, dword [ecx]
push 1
mov eax, dword [edx]
call eax
mov dword [ebx], 0
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, 1
jmp 0x5d78cd
mov eax, dword [ebx]
mov ecx, dword [eax + 0x38]
mov dword [eax + 0xc], ecx
mov eax, dword [ebx]
mov edx, dword [eax + 0x34]
mov dword [eax + 0x10], edx
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [ebx]
mov eax, dword [edx + 0x38]
xor edi, edi
mov ecx, dword [ebp + 0x220]
sub ecx, eax
mov eax, dword [ebp + 0x224]
sbb eax, edi
mov edi, dword [esi + 0x1c]
cmp edi, eax
jg 0x5d7a61
jl 0x5d7a51
mov eax, dword [esi + 0x18]
cmp eax, ecx
jae 0x5d7a61
cmp dword [ebp - 0x2c], 0
jne 0x5d7a61
mov eax, 7
jmp 0x5d78cd
mov ecx, dword [edx + 0x10]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x5d7aa0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LocalAlloc_error__ld_in_CFormatParsing::FillZipFormatStruct___r_n
mov ecx, esi
call fcn.005d8a10
mov ecx, dword [ebx]
test ecx, ecx
je 0x5d7a95
mov edx, dword [ecx]
push 1
mov eax, dword [edx]
call eax
mov dword [ebx], 0
jmp 0x5d78c8
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x38]
xor edi, edi
mov edx, dword [ebp + 0x220]
sub edx, eax
mov eax, dword [ebp + 0x224]
sbb eax, edi
mov edi, dword [esi + 0x1c]
cmp edi, eax
jl 0x5d7b6b
jg 0x5d7acf
mov eax, dword [esi + 0x18]
cmp eax, edx
jb 0x5d7b6b
mov eax, dword [ecx + 0xc]
xor ecx, ecx
sub eax, dword [ebp + 0x220]
mov dword [ebp - 0x30], eax
sbb ecx, dword [ebp + 0x224]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], ecx
push 2
lea ecx, [ebp - 0x40]
push ecx
push eax
mov edx, dword [esi + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x34], eax
cmp eax, 0xffffffff
jne 0x5d7b24
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x5d7b24
push eax
push str.SetFilePointer___error__ld_in_CFormatParsing::FillZipFormatStruct___r_n
mov ecx, esi
call fcn.005d8a10
jmp 0x5d7ca5
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebx]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [esi + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x5d7b53
mov edx, dword [ebx]
mov eax, dword [ebp - 0x18]
cmp eax, dword [edx + 0x10]
je 0x5d7c6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReadFile___error__ld_in_CFormatParsing::FillZipFormatStruct___r_n
mov ecx, esi
call fcn.005d8a10
jmp 0x5d7ca5
mov edi, dword [ebp - 0x2c]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x48], edi
test edi, edi
je 0x5d7c6f
mov ecx, dword [esi + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
mov edx, dword [edi + 0x10]
push edx
mov ecx, esi
call fcn.005d7790
test al, al
je 0x5d7ca5
cmp edi, dword [ebp - 0x2c]
jne 0x5d7c0b
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
xor ecx, ecx
mov edx, dword [edi + 0xc]
cmp edx, ecx
jg 0x5d7c0b
jl 0x5d7bbb
mov ecx, dword [edi + 8]
cmp ecx, eax
jae 0x5d7c0b
push 0
push 0
sub eax, dword [edi + 8]
push eax
mov edx, dword [esi + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x34], eax
cmp eax, 0xffffffff
jne 0x5d7bf4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x5d7bf4
push eax
push str.SetFilePointer___error__ld_in_CFormatParsing::FillZipFormatStruct___r_n
mov ecx, esi
call fcn.005d8a10
jmp 0x5d7ca5
mov eax, dword [ebx]
mov ecx, dword [eax + 0xc]
xor edx, edx
mov eax, dword [edi + 8]
sub eax, ecx
mov ecx, dword [edi + 0xc]
sbb ecx, edx
add dword [esi + 0x18], eax
adc dword [esi + 0x1c], ecx
mov edx, dword [ebx]
mov eax, dword [edx + 0x10]
sub eax, dword [ebp - 0x20]
xor ecx, ecx
mov edx, dword [esi + 0x1c]
cmp edx, ecx
jg 0x5d7c2d
jl 0x5d7c25
mov ecx, dword [esi + 0x18]
cmp ecx, eax
jae 0x5d7c2d
mov edx, dword [esi + 0x18]
mov dword [ebp - 0x1c], edx
jmp 0x5d7c30
mov dword [ebp - 0x1c], eax
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
add edx, eax
push edx
mov ecx, dword [esi + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x5d7b53
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x18], eax
jne 0x5d7b53
add dword [ebp - 0x20], eax
mov edi, dword [edi + 0x58]
jmp 0x5d7b75
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebx]
call fcn.005d99e0
test eax, eax
jne 0x5d7cc8
lea ecx, [ebp]
call fcn.004c14c0
mov byte [ebp - 4], 4
push 1
push str.ParseCentralDir_failed_in_CFormatParsing::FillZipFormatStruct___r_n
lea ecx, [ebp]
call fcn.004c1630
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.004c1620
mov ecx, dword [ebx]
test ecx, ecx
je 0x5d7cb3
mov eax, dword [ecx]
push 1
mov edx, dword [eax]
call edx
mov dword [ebx], 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x5d78c8
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [ebx]
mov byte [edx + 8], 1
xor eax, eax
jmp 0x5d78cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReadFile___error__ld_in_CFormatParsing::FillZipFormatStruct___r_n
mov ecx, esi
call fcn.005d8a10
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x5d78c8