Function at 0x5d4950
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x214]
sub esp, 0x214
push 0xffffffffffffffff
push 0x6645c3
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x755898]
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.005d48f0
test al, al
je 0x5d4a28
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
cmp ecx, edi
jg 0x5d49d4
jl 0x5d49cf
cmp eax, 0x2da0
jae 0x5d49d4
mov dword [ebp - 0x54], ecx
jmp 0x5d49dc
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 0x5d4a54
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x5d4a54
push eax
push str.SetFilePointer___error__ld_in_CFormatParsing::FillZipFormatStruct___r_n
mov ecx, esi
call fcn.005d5b70
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.0061d2ff
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 0x5d4a74
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LocalAlloc_error__ld_in_CFormatParsing::FillZipFormatStruct___r_n
jmp 0x5d4a21
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 0x5d4e3f
mov ecx, dword [ebp - 0x24]
cmp dword [ebp - 0x18], ecx
jb 0x5d4e3f
cmp dword [ebx], 0
je 0x5d4adc
mov byte [ebp - 4], 1
mov ecx, dword [ebx]
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x64], ecx
test ecx, ecx
je 0x5d4abd
mov edx, dword [ecx]
push 1
mov eax, dword [edx]
call eax
mov dword [ebp - 4], 0
jmp 0x5d4adc
push 0x58
call fcn.005f1588
add esp, 4
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x5d4afa
mov ecx, eax
call fcn.005d6910
jmp 0x5d4afc
xor eax, eax
mov dword [ebp - 0x50], eax
mov byte [ebp - 4], 0
mov dword [ebx], eax
test eax, eax
jne 0x5d4b28
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.005d5b70
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x5d4a28
mov ecx, dword [ebp - 0x24]
push ecx
push edi
mov ecx, eax
call fcn.005d61f0
cmp eax, 0xc8
je 0x5d4b73
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.005d5b70
mov ecx, dword [ebx]
test ecx, ecx
je 0x5d4b5c
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 0x5d4a2d
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 0x5d4bc1
jl 0x5d4bb1
mov eax, dword [esi + 0x18]
cmp eax, ecx
jae 0x5d4bc1
cmp dword [ebp - 0x2c], 0
jne 0x5d4bc1
mov eax, 7
jmp 0x5d4a2d
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 0x5d4c00
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LocalAlloc_error__ld_in_CFormatParsing::FillZipFormatStruct___r_n
mov ecx, esi
call fcn.005d5b70
mov ecx, dword [ebx]
test ecx, ecx
je 0x5d4bf5
mov edx, dword [ecx]
push 1
mov eax, dword [edx]
call eax
mov dword [ebx], 0
jmp 0x5d4a28
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 0x5d4ccb
jg 0x5d4c2f
mov eax, dword [esi + 0x18]
cmp eax, edx
jb 0x5d4ccb
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 0x5d4c84
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x5d4c84
push eax
push str.SetFilePointer___error__ld_in_CFormatParsing::FillZipFormatStruct___r_n
mov ecx, esi
call fcn.005d5b70
jmp 0x5d4e05
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 0x5d4cb3
mov edx, dword [ebx]
mov eax, dword [ebp - 0x18]
cmp eax, dword [edx + 0x10]
je 0x5d4dcf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReadFile___error__ld_in_CFormatParsing::FillZipFormatStruct___r_n
mov ecx, esi
call fcn.005d5b70
jmp 0x5d4e05
mov edi, dword [ebp - 0x2c]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x48], edi
test edi, edi
je 0x5d4dcf
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.005d48f0
test al, al
je 0x5d4e05
cmp edi, dword [ebp - 0x2c]
jne 0x5d4d6b
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
xor ecx, ecx
mov edx, dword [edi + 0xc]
cmp edx, ecx
jg 0x5d4d6b
jl 0x5d4d1b
mov ecx, dword [edi + 8]
cmp ecx, eax
jae 0x5d4d6b
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 0x5d4d54
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x5d4d54
push eax
push str.SetFilePointer___error__ld_in_CFormatParsing::FillZipFormatStruct___r_n
mov ecx, esi
call fcn.005d5b70
jmp 0x5d4e05
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 0x5d4d8d
jl 0x5d4d85
mov ecx, dword [esi + 0x18]
cmp ecx, eax
jae 0x5d4d8d
mov edx, dword [esi + 0x18]
mov dword [ebp - 0x1c], edx
jmp 0x5d4d90
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 0x5d4cb3
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x18], eax
jne 0x5d4cb3
add dword [ebp - 0x20], eax
mov edi, dword [edi + 0x58]
jmp 0x5d4cd5
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebx]
call fcn.005d6b40
test eax, eax
jne 0x5d4e28
lea ecx, [ebp]
call fcn.004c0490
mov byte [ebp - 4], 4
push 1
push str.ParseCentralDir_failed_in_CFormatParsing::FillZipFormatStruct___r_n
lea ecx, [ebp]
call fcn.004c0600
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.004c05f0
mov ecx, dword [ebx]
test ecx, ecx
je 0x5d4e13
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 0x5d4a28
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 0x5d4a2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReadFile___error__ld_in_CFormatParsing::FillZipFormatStruct___r_n
mov ecx, esi
call fcn.005d5b70
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x5d4a28