Function at 0x5d81d0
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x214]
sub esp, 0x214
push 0xffffffffffffffff
push 0x668053
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.005d8170
test al, al
je 0x5d82a8
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
cmp ecx, edi
jg 0x5d8254
jl 0x5d824f
cmp eax, 0x2da0
jae 0x5d8254
mov dword [ebp - 0x54], ecx
jmp 0x5d825c
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 0x5d82d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x5d82d4
push eax
push str.SetFilePointer___error__ld_in_CFormatParsing::FillZipFormatStruct___r_n
mov ecx, esi
call fcn.005d7650
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.00620b8d
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 0x5d82f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LocalAlloc_error__ld_in_CFormatParsing::FillZipFormatStruct___r_n
jmp 0x5d82a1
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 0x5d86bf
mov ecx, dword [ebp - 0x24]
cmp dword [ebp - 0x18], ecx
jb 0x5d86bf
cmp dword [ebx], 0
je 0x5d835c
mov byte [ebp - 4], 1
mov ecx, dword [ebx]
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x64], ecx
test ecx, ecx
je 0x5d833d
mov edx, dword [ecx]
push 1
mov eax, dword [edx]
call eax
mov dword [ebp - 4], 0
jmp 0x5d835c
push 0x58
call fcn.005f4e18
add esp, 4
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x5d837a
mov ecx, eax
call fcn.005da0b0
jmp 0x5d837c
xor eax, eax
mov dword [ebp - 0x50], eax
mov byte [ebp - 4], 0
mov dword [ebx], eax
test eax, eax
jne 0x5d83a8
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.005d7650
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x5d82a8
mov ecx, dword [ebp - 0x24]
push ecx
push edi
mov ecx, eax
call fcn.005d9990
cmp eax, 0xc8
je 0x5d83f3
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.005d7650
mov ecx, dword [ebx]
test ecx, ecx
je 0x5d83dc
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 0x5d82ad
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 0x5d8441
jl 0x5d8431
mov eax, dword [esi + 0x18]
cmp eax, ecx
jae 0x5d8441
cmp dword [ebp - 0x2c], 0
jne 0x5d8441
mov eax, 7
jmp 0x5d82ad
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 0x5d8480
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LocalAlloc_error__ld_in_CFormatParsing::FillZipFormatStruct___r_n
mov ecx, esi
call fcn.005d7650
mov ecx, dword [ebx]
test ecx, ecx
je 0x5d8475
mov edx, dword [ecx]
push 1
mov eax, dword [edx]
call eax
mov dword [ebx], 0
jmp 0x5d82a8
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 0x5d854b
jg 0x5d84af
mov eax, dword [esi + 0x18]
cmp eax, edx
jb 0x5d854b
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 0x5d8504
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x5d8504
push eax
push str.SetFilePointer___error__ld_in_CFormatParsing::FillZipFormatStruct___r_n
mov ecx, esi
call fcn.005d7650
jmp 0x5d8685
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 0x5d8533
mov edx, dword [ebx]
mov eax, dword [ebp - 0x18]
cmp eax, dword [edx + 0x10]
je 0x5d864f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReadFile___error__ld_in_CFormatParsing::FillZipFormatStruct___r_n
mov ecx, esi
call fcn.005d7650
jmp 0x5d8685
mov edi, dword [ebp - 0x2c]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x48], edi
test edi, edi
je 0x5d864f
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.005d8170
test al, al
je 0x5d8685
cmp edi, dword [ebp - 0x2c]
jne 0x5d85eb
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
xor ecx, ecx
mov edx, dword [edi + 0xc]
cmp edx, ecx
jg 0x5d85eb
jl 0x5d859b
mov ecx, dword [edi + 8]
cmp ecx, eax
jae 0x5d85eb
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 0x5d85d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x5d85d4
push eax
push str.SetFilePointer___error__ld_in_CFormatParsing::FillZipFormatStruct___r_n
mov ecx, esi
call fcn.005d7650
jmp 0x5d8685
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 0x5d860d
jl 0x5d8605
mov ecx, dword [esi + 0x18]
cmp ecx, eax
jae 0x5d860d
mov edx, dword [esi + 0x18]
mov dword [ebp - 0x1c], edx
jmp 0x5d8610
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 0x5d8533
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x18], eax
jne 0x5d8533
add dword [ebp - 0x20], eax
mov edi, dword [edi + 0x58]
jmp 0x5d8555
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebx]
call fcn.005da2e0
test eax, eax
jne 0x5d86a8
lea ecx, [ebp]
call fcn.004c1c00
mov byte [ebp - 4], 4
push 1
push str.ParseCentralDir_failed_in_CFormatParsing::FillZipFormatStruct___r_n
lea ecx, [ebp]
call fcn.004c1d70
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.004c1d60
mov ecx, dword [ebx]
test ecx, ecx
je 0x5d8693
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 0x5d82a8
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 0x5d82ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReadFile___error__ld_in_CFormatParsing::FillZipFormatStruct___r_n
mov ecx, esi
call fcn.005d7650
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x5d82a8