Function at 0x5d76f0
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x214]
sub esp, 0x214
push 0xffffffffffffffff
push 0x6675b3
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.005d7690
test al, al
je 0x5d77c8
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
cmp ecx, edi
jg 0x5d7774
jl 0x5d776f
cmp eax, 0x2da0
jae 0x5d7774
mov dword [ebp - 0x54], ecx
jmp 0x5d777c
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 0x5d77f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x5d77f4
push eax
push str.SetFilePointer___error__ld_in_CFormatParsing::FillZipFormatStruct___r_n
mov ecx, esi
call fcn.005d8910
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.0062016f
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 0x5d7814
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LocalAlloc_error__ld_in_CFormatParsing::FillZipFormatStruct___r_n
jmp 0x5d77c1
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 0x5d7bdf
mov ecx, dword [ebp - 0x24]
cmp dword [ebp - 0x18], ecx
jb 0x5d7bdf
cmp dword [ebx], 0
je 0x5d787c
mov byte [ebp - 4], 1
mov ecx, dword [ebx]
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x64], ecx
test ecx, ecx
je 0x5d785d
mov edx, dword [ecx]
push 1
mov eax, dword [edx]
call eax
mov dword [ebp - 4], 0
jmp 0x5d787c
push 0x58
call fcn.005f43f8
add esp, 4
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x5d789a
mov ecx, eax
call fcn.005d96b0
jmp 0x5d789c
xor eax, eax
mov dword [ebp - 0x50], eax
mov byte [ebp - 4], 0
mov dword [ebx], eax
test eax, eax
jne 0x5d78c8
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.005d8910
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x5d77c8
mov ecx, dword [ebp - 0x24]
push ecx
push edi
mov ecx, eax
call fcn.005d8f90
cmp eax, 0xc8
je 0x5d7913
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.005d8910
mov ecx, dword [ebx]
test ecx, ecx
je 0x5d78fc
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 0x5d77cd
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 0x5d7961
jl 0x5d7951
mov eax, dword [esi + 0x18]
cmp eax, ecx
jae 0x5d7961
cmp dword [ebp - 0x2c], 0
jne 0x5d7961
mov eax, 7
jmp 0x5d77cd
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 0x5d79a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LocalAlloc_error__ld_in_CFormatParsing::FillZipFormatStruct___r_n
mov ecx, esi
call fcn.005d8910
mov ecx, dword [ebx]
test ecx, ecx
je 0x5d7995
mov edx, dword [ecx]
push 1
mov eax, dword [edx]
call eax
mov dword [ebx], 0
jmp 0x5d77c8
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 0x5d7a6b
jg 0x5d79cf
mov eax, dword [esi + 0x18]
cmp eax, edx
jb 0x5d7a6b
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 0x5d7a24
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x5d7a24
push eax
push str.SetFilePointer___error__ld_in_CFormatParsing::FillZipFormatStruct___r_n
mov ecx, esi
call fcn.005d8910
jmp 0x5d7ba5
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 0x5d7a53
mov edx, dword [ebx]
mov eax, dword [ebp - 0x18]
cmp eax, dword [edx + 0x10]
je 0x5d7b6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReadFile___error__ld_in_CFormatParsing::FillZipFormatStruct___r_n
mov ecx, esi
call fcn.005d8910
jmp 0x5d7ba5
mov edi, dword [ebp - 0x2c]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x48], edi
test edi, edi
je 0x5d7b6f
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.005d7690
test al, al
je 0x5d7ba5
cmp edi, dword [ebp - 0x2c]
jne 0x5d7b0b
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
xor ecx, ecx
mov edx, dword [edi + 0xc]
cmp edx, ecx
jg 0x5d7b0b
jl 0x5d7abb
mov ecx, dword [edi + 8]
cmp ecx, eax
jae 0x5d7b0b
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 0x5d7af4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x5d7af4
push eax
push str.SetFilePointer___error__ld_in_CFormatParsing::FillZipFormatStruct___r_n
mov ecx, esi
call fcn.005d8910
jmp 0x5d7ba5
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 0x5d7b2d
jl 0x5d7b25
mov ecx, dword [esi + 0x18]
cmp ecx, eax
jae 0x5d7b2d
mov edx, dword [esi + 0x18]
mov dword [ebp - 0x1c], edx
jmp 0x5d7b30
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 0x5d7a53
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x18], eax
jne 0x5d7a53
add dword [ebp - 0x20], eax
mov edi, dword [edi + 0x58]
jmp 0x5d7a75
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebx]
call fcn.005d98e0
test eax, eax
jne 0x5d7bc8
lea ecx, [ebp]
call fcn.004c15d0
mov byte [ebp - 4], 4
push 1
push str.ParseCentralDir_failed_in_CFormatParsing::FillZipFormatStruct___r_n
lea ecx, [ebp]
call fcn.004c1740
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.004c1730
mov ecx, dword [ebx]
test ecx, ecx
je 0x5d7bb3
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 0x5d77c8
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 0x5d77cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReadFile___error__ld_in_CFormatParsing::FillZipFormatStruct___r_n
mov ecx, esi
call fcn.005d8910
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x5d77c8