Function at 0x5cd010
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x214]
sub esp, 0x214
push 0xffffffffffffffff
push 0x65c673
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x74d890]
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.005ccfb0
test al, al
je 0x5cd0e8
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
cmp ecx, edi
jg 0x5cd094
jl 0x5cd08f
cmp eax, 0x2da0
jae 0x5cd094
mov dword [ebp - 0x54], ecx
jmp 0x5cd09c
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 0x5cd114
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x5cd114
push eax
push str.SetFilePointer___error__ld_in_CFormatParsing::FillZipFormatStruct___r_n
mov ecx, esi
call fcn.005cc490
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.006157d3
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 0x5cd134
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LocalAlloc_error__ld_in_CFormatParsing::FillZipFormatStruct___r_n
jmp 0x5cd0e1
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 0x5cd4ff
mov ecx, dword [ebp - 0x24]
cmp dword [ebp - 0x18], ecx
jb 0x5cd4ff
cmp dword [ebx], 0
je 0x5cd19c
mov byte [ebp - 4], 1
mov ecx, dword [ebx]
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x64], ecx
test ecx, ecx
je 0x5cd17d
mov edx, dword [ecx]
push 1
mov eax, dword [edx]
call eax
mov dword [ebp - 4], 0
jmp 0x5cd19c
push 0x58
call fcn.005e9a78
add esp, 4
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x5cd1ba
mov ecx, eax
call fcn.005ceef0
jmp 0x5cd1bc
xor eax, eax
mov dword [ebp - 0x50], eax
mov byte [ebp - 4], 0
mov dword [ebx], eax
test eax, eax
jne 0x5cd1e8
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.005cc490
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x5cd0e8
mov ecx, dword [ebp - 0x24]
push ecx
push edi
mov ecx, eax
call fcn.005ce7d0
cmp eax, 0xc8
je 0x5cd233
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.005cc490
mov ecx, dword [ebx]
test ecx, ecx
je 0x5cd21c
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 0x5cd0ed
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 0x5cd281
jl 0x5cd271
mov eax, dword [esi + 0x18]
cmp eax, ecx
jae 0x5cd281
cmp dword [ebp - 0x2c], 0
jne 0x5cd281
mov eax, 7
jmp 0x5cd0ed
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 0x5cd2c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LocalAlloc_error__ld_in_CFormatParsing::FillZipFormatStruct___r_n
mov ecx, esi
call fcn.005cc490
mov ecx, dword [ebx]
test ecx, ecx
je 0x5cd2b5
mov edx, dword [ecx]
push 1
mov eax, dword [edx]
call eax
mov dword [ebx], 0
jmp 0x5cd0e8
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 0x5cd38b
jg 0x5cd2ef
mov eax, dword [esi + 0x18]
cmp eax, edx
jb 0x5cd38b
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 0x5cd344
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x5cd344
push eax
push str.SetFilePointer___error__ld_in_CFormatParsing::FillZipFormatStruct___r_n
mov ecx, esi
call fcn.005cc490
jmp 0x5cd4c5
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 0x5cd373
mov edx, dword [ebx]
mov eax, dword [ebp - 0x18]
cmp eax, dword [edx + 0x10]
je 0x5cd48f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReadFile___error__ld_in_CFormatParsing::FillZipFormatStruct___r_n
mov ecx, esi
call fcn.005cc490
jmp 0x5cd4c5
mov edi, dword [ebp - 0x2c]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x48], edi
test edi, edi
je 0x5cd48f
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.005ccfb0
test al, al
je 0x5cd4c5
cmp edi, dword [ebp - 0x2c]
jne 0x5cd42b
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
xor ecx, ecx
mov edx, dword [edi + 0xc]
cmp edx, ecx
jg 0x5cd42b
jl 0x5cd3db
mov ecx, dword [edi + 8]
cmp ecx, eax
jae 0x5cd42b
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 0x5cd414
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x5cd414
push eax
push str.SetFilePointer___error__ld_in_CFormatParsing::FillZipFormatStruct___r_n
mov ecx, esi
call fcn.005cc490
jmp 0x5cd4c5
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 0x5cd44d
jl 0x5cd445
mov ecx, dword [esi + 0x18]
cmp ecx, eax
jae 0x5cd44d
mov edx, dword [esi + 0x18]
mov dword [ebp - 0x1c], edx
jmp 0x5cd450
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 0x5cd373
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x18], eax
jne 0x5cd373
add dword [ebp - 0x20], eax
mov edi, dword [edi + 0x58]
jmp 0x5cd395
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebx]
call fcn.005cf120
test eax, eax
jne 0x5cd4e8
lea ecx, [ebp]
call fcn.004b9e60
mov byte [ebp - 4], 4
push 1
push str.ParseCentralDir_failed_in_CFormatParsing::FillZipFormatStruct___r_n
lea ecx, [ebp]
call fcn.004b9fd0
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.004b9fc0
mov ecx, dword [ebx]
test ecx, ecx
je 0x5cd4d3
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 0x5cd0e8
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 0x5cd0ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReadFile___error__ld_in_CFormatParsing::FillZipFormatStruct___r_n
mov ecx, esi
call fcn.005cc490
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x5cd0e8