Function at 0x5d07a3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10148050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
push 0x101047a0
push eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call fcn.00575b76
mov ebx, eax
add esp, 8
mov dword [ebp - 0x24], ebx
cmp ebx, edi
jne 0x5d0807
mov eax, dword [ebp - 0x20]
push eax
call fcn.0064c20c
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057371d
mov esp, ebp
pop ebp
ret
push ebx
call fcn.0064a328
add esp, 4
cmp eax, 0x50
jne 0x5d0a8f
push ebx
call fcn.0064a328
add esp, 4
cmp eax, 0x35
jne 0x5d0a8f
jmp 0x5d0833
cmp dword [ebp - 0x14], 3
jge 0x5d08dc
push ebx
call fcn.0064a328
mov edi, eax
add esp, 4
cmp edi, 0xffffffff
je 0x5d08d2
cmp edi, 0x23
jne 0x5d085f
mov dword [ebp - 0x1c], 1
jmp 0x5d0833
cmp edi, 0xa
jne 0x5d086d
mov dword [ebp - 0x1c], 0
jmp 0x5d0873
cmp dword [ebp - 0x1c], 0
jne 0x5d0833
push edi
call fcn.00575554
add esp, 4
test eax, eax
je 0x5d0889
mov dword [ebp - 0x18], 1
jmp 0x5d088f
cmp dword [ebp - 0x18], 0
je 0x5d0833
push edi
call fcn.00575554
add esp, 4
test eax, eax
je 0x5d08b2
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp + ecx*4 - 0x10]
lea ecx, [ebp + ecx*4 - 0x10]
lea edx, [eax + eax*4]
lea eax, [edi + edx*2 - 0x30]
mov dword [ecx], eax
jmp 0x5d0833
push edi
call fcn.00575659
add esp, 4
test eax, eax
je 0x5d0a8f
inc dword [ebp - 0x14]
mov dword [ebp - 0x18], 0
jmp 0x5d0833
cmp dword [ebp - 0x14], 3
jl 0x5d0a8f
movzx eax, word [esi + 0x66b6]
cmp dword [ebp - 0x10], eax
jne 0x5d0a84
movzx ecx, word [esi + 0x66b4]
cmp dword [ebp - 0xc], ecx
jne 0x5d0a84
cmp dword [ebp - 8], 0xffff
jne 0x5d0a84
push 2
push eax
call fcn.00584609
mov edi, eax
push 0x1010bf48
push edi
push esi
mov dword [ebp - 0x1c], edi
call fcn.005c5ba3
xor edx, edx
add esp, 0x14
mov dword [ebp - 0x14], 0
cmp dx, word [esi + 0x66b4]
jae 0x5d0a5a
jmp 0x5d0943
movzx eax, word [esi + 0x66b6]
push ebx
push eax
push 2
push edi
call fcn.00649cef
xor ecx, ecx
add esp, 0x10
xor ebx, ebx
cmp cx, word [esi + 0x66b6]
jae 0x5d0a41
mov eax, dword [ebp - 0x14]
and eax, 7
add eax, eax
mov dword [ebp - 0x20], eax
jmp 0x5d0978
mov eax, dword [ebp - 0x20]
movzx ecx, word [esi + 0x66bc]
mov edx, dword [ebp - 0x14]
sar edx, cl
mov edi, ebx
and edi, 1
add edi, eax
movzx eax, word [esi + 0x66c0]
imul edx, eax
mov eax, ebx
sar eax, cl
add edi, edi
mov ecx, edi
add edx, eax
mov eax, dword [esi + 0x65b0]
shr eax, cl
and eax, 3
lea ecx, [eax + edx*4]
mov edx, dword [esi + 0x66e0]
lea eax, [edx + ecx*2]
mov ecx, dword [ebp - 0x1c]
movzx edx, word [ecx + ebx*2]
push edx
mov dword [ebp - 0x18], eax
call dword [0x10102260]
mov ecx, dword [ebp - 0x18]
movzx edx, word [ecx]
movzx eax, ax
sub edx, eax
test edx, edx
jle 0x5d0a26
movzx ecx, word [esi + 0x66bc]
mov eax, dword [ebp - 0x14]
movzx edx, word [esi + 0x66c0]
sar eax, cl
imul eax, edx
mov edx, ebx
sar edx, cl
mov ecx, edi
add eax, edx
mov edx, dword [esi + 0x65b0]
shr edx, cl
mov ecx, dword [esi + 0x66e0]
and edx, 3
lea eax, [edx + eax*4]
mov edx, dword [ebp - 0x1c]
lea edi, [ecx + eax*2]
movzx eax, word [edx + ebx*2]
push eax
mov dword [ebp - 0x18], edi
call dword [0x10102260]
movzx ecx, ax
movzx eax, word [edi]
sub eax, ecx
jmp 0x5d0a28
xor eax, eax
mov edx, dword [ebp - 0x18]
mov word [edx], ax
movzx eax, word [esi + 0x66b6]
inc ebx
cmp ebx, eax
jl 0x5d0975
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
movzx ecx, word [esi + 0x66b4]
mov ebx, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x14], eax
cmp eax, ecx
jl 0x5d0943
push ebx
call fcn.0057577a
push edi
call fcn.00575960
add esp, 8
pop edi
mov dword [esi + 0x65f8], 0
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057371d
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x20]
push edx
push 0x1010bf28
jmp 0x5d0a98
mov eax, dword [ebp - 0x20]
push eax
push 0x1010bf08
call fcn.0057c111
add eax, 0x40
push eax
call fcn.00575bd4
push ebx
call fcn.0057577a
mov ecx, dword [ebp - 4]
add esp, 0x10
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0057371d
mov esp, ebp
pop ebp
ret