Function at 0x562ae8
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x28
push ebx
push ebp
push edi
mov edi, dword [esp + 0x38]
mov ebx, eax
mov eax, dword [ebx + 0x3c]
push eax
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x44]
push eax
lea ecx, [esp + 0x20]
push 1
push ecx
call fcn.00568bec
mov ebp, eax
add esp, 0x10
cmp ebp, dword [ebx + 0x44]
je 0x562b90
mov edx, dword [esp + 0x10]
push edx
call fcn.00567ae9
add esp, 4
test eax, eax
je 0x562b58
call fcn.00566432
mov eax, dword [eax]
push eax
call fcn.0056762f
push eax
push 0x1003a3a8
push 0x100
add ebx, 0x108
push ebx
call fcn.00565e0a
add esp, 0x14
or eax, 0xffffffff
pop edi
pop ebp
pop ebx
add esp, 0x28
ret
test ebp, ebp
je 0x562b84
mov eax, dword [ebx + 0x44]
push ebp
push eax
push 0x1003a440
push 0x100
add ebx, 0x108
push ebx
call fcn.00565e0a
add esp, 0x14
or eax, 0xffffffff
pop edi
pop ebp
pop ebx
add esp, 0x28
ret
mov eax, 1
pop edi
pop ebp
pop ebx
add esp, 0x28
ret
cmp dword [ebx + 0x40], 0
je 0x562c3a
mov eax, dword [esp + 0x20]
mov ecx, eax
and ecx, 0xff0000
mov edx, eax
shr edx, 0x10
or ecx, edx
shr ecx, 8
mov edx, eax
shl eax, 0x10
and edx, 0xff00
or edx, eax
mov eax, dword [esp + 0x24]
shl edx, 8
or ecx, edx
mov dword [edi + 8], ecx
mov ecx, eax
and ecx, 0xff0000
mov edx, eax
shr edx, 0x10
or ecx, edx
mov edx, eax
shl eax, 0x10
shr ecx, 8
and edx, 0xff00
or edx, eax
mov eax, dword [esp + 0x18]
shl edx, 8
or ecx, edx
movzx edx, byte [esp + 0x1b]
mov dword [edi + 0xc], ecx
mov ecx, eax
and ecx, 0xff00
shl eax, 0x10
or ecx, eax
xor eax, eax
mov ah, byte [esp + 0x1a]
shl ecx, 8
or ecx, edx
movzx edx, byte [esp + 0x1f]
or ecx, eax
mov eax, dword [esp + 0x1c]
mov dword [edi], ecx
mov ecx, eax
and ecx, 0xff00
shl eax, 0x10
or ecx, eax
xor eax, eax
mov ah, byte [esp + 0x1e]
shl ecx, 8
or ecx, edx
or ecx, eax
jmp 0x562c52
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
mov dword [edi + 8], ecx
mov ecx, dword [esp + 0x1c]
mov dword [edi + 0xc], edx
mov dword [edi], eax
mov dword [edi + 4], ecx
mov eax, dword [ebx + 0x48]
sub eax, 1
je 0x562c6a
sub eax, 1
jne 0x562c76
mov edx, dword [edi + 8]
cmp edx, dword [edi + 0xc]
jbe 0x562c76
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0xc]
mov dword [edi + 8], ecx
mov dword [edi + 0xc], eax
mov eax, dword [edi + 8]
cmp eax, dword [esp + 0x3c]
jbe 0x562fdf
cmp eax, 0xffff
jbe 0x562cad
push 0x1003a484
push 0x100
add ebx, 0x108
push ebx
call fcn.00565e0a
add esp, 0xc
or eax, 0xffffffff
pop edi
pop ebp
pop ebx
add esp, 0x28
ret
cmp dword [0x10045ee8], eax
jae 0x562d13
lea ebp, [eax + 0x3ff]
mov eax, dword [0x10045e8c]
shr ebp, 0xa
shl ebp, 0xa
test eax, eax
mov dword [0x10045ee8], ebp
je 0x562cd9
push eax
call fcn.00566257
add esp, 4
push ebp
call fcn.00566334
add esp, 4
test eax, eax
mov dword [0x10045e8c], eax
jne 0x562d18
push 0x1003a49c
push 0x100
add ebx, 0x108
push ebx
mov dword [0x10045ee8], eax
call fcn.00565e0a
add esp, 0xc
or eax, 0xffffffff
pop edi
pop ebp
pop ebx
add esp, 0x28
ret
mov eax, dword [0x10045e8c]
mov edx, dword [esp + 0x10]
mov ecx, dword [edi + 8]
push edx
push ecx
push 1
push eax
call fcn.00568bec
mov ebp, eax
add esp, 0x10
cmp ebp, dword [edi + 8]
je 0x562d81
mov edx, dword [esp + 0x10]
push edx
call fcn.00567ae9
add esp, 4
test eax, eax
je 0x562d59
call fcn.00566432
mov eax, dword [eax]
push eax
call fcn.0056762f
push eax
push 0x1003a3a8
jmp 0x562d63
mov eax, dword [edi + 8]
push ebp
push eax
push 0x1003a4b0
push 0x100
add ebx, 0x108
push ebx
call fcn.00565e0a
add esp, 0x14
or eax, 0xffffffff
pop edi
pop ebp
pop ebx
add esp, 0x28
ret
mov eax, dword [esp + 0x3c]
mov ecx, dword [0x10045e8c]
push eax
push ecx
push esi
mov dword [edi + 8], eax
call fcn.0056ee48
add esp, 0xc
cmp dword [ebx + 0x40], 0
je 0x562fd6
cmp dword [ebx + 0x20], 0xbd
jne 0x562fd6
cmp dword [edi + 8], 8
jb 0x562fd6
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov edx, eax
mov ebx, eax
mov edi, ecx
shld edi, edx, 0x10
shl edx, 0x10
and ebx, 0xff00
or edx, ebx
xor ebp, ebp
or edi, ebp
shld edi, edx, 0x10
shl edx, 0x10
mov ebx, eax
and ebx, 0xff0000
or edx, ebx
or edi, ebp
shld edi, edx, 0x10
shl edx, 0x10
mov ebx, eax
and ebx, 0xff000000
or edx, ebx
or edi, ebp
shld edi, edx, 8
shl edx, 8
mov ebx, edx
mov edx, ecx
shrd eax, edx, 0x10
shr edx, 0x10
xor eax, eax
and edx, 0xff
or eax, ebp
mov dword [esp + 0x14], ecx
movzx ebp, byte [esp + 0x14]
and ecx, 0xff00
or edx, ecx
shrd eax, edx, 0x10
shr edx, 0x10
xor ecx, ecx
or eax, ecx
or edx, ebp
shrd eax, edx, 8
or ebx, eax
movzx eax, byte [esi + 7]
shr edx, 8
or edi, edx
cdq
or ebx, eax
mov eax, dword [esp + 0x38]
or edi, edx
mov dword [esi], ebx
mov dword [esi + 4], edi
cmp dword [eax + 8], 0xe
jb 0x562fd6
mov dx, word [esi + 0xc]
rol dx, 8
mov word [esi + 0xc], dx
cmp dword [eax + 8], 0x18
jb 0x562fd6
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
mov edx, ecx
mov edi, eax
shld edi, edx, 0x10
shl edx, 0x10
mov ebx, ecx
and ebx, 0xff00
or edx, ebx
xor ebp, ebp
or edi, ebp
shld edi, edx, 0x10
shl edx, 0x10
mov ebx, ecx
and ebx, 0xff0000
or edx, ebx
or edi, ebp
shld edi, edx, 0x10
shl edx, 0x10
and ecx, 0xff000000
or edx, ecx
xor ebx, ebx
or edi, ebx
shld edi, edx, 8
shl edx, 8
mov ebx, edx
mov edx, eax
mov ebp, eax
xor ecx, ecx
mov dword [esp + 0x14], eax
sar edx, 0x1f
and ebp, 0xff00
or eax, ecx
or edx, ebp
mov cl, 0x10
call fcn.00573ac8
mov ebp, dword [esp + 0x14]
xor ecx, ecx
and ebp, 0xff
or eax, ecx
or edx, ebp
mov cl, 8
call fcn.00573ac8
mov ecx, dword [esp + 0x38]
or ebx, eax
mov eax, dword [esp + 0x14]
or edi, edx
sar eax, 8
and eax, 0xff00
xor edx, edx
or ebx, eax
or edi, edx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], edi
cmp dword [ecx + 8], 0x1c
jb 0x562fd6
mov eax, dword [esi + 0x18]
mov edx, eax
mov dword [esp + 0x10], eax
shl edx, 0x10
and eax, 0xff00
or edx, eax
movzx eax, byte [esp + 0x13]
shl edx, 8
or edx, eax
xor eax, eax
mov ah, byte [esp + 0x12]
or edx, eax
mov dword [esi + 0x18], edx
cmp dword [ecx + 8], 0x20
jb 0x562fd6
mov eax, dword [esi + 0x1c]
mov edx, eax
mov dword [esp + 0x10], eax
shl edx, 0x10
and eax, 0xff00
or edx, eax
movzx eax, byte [esp + 0x13]
shl edx, 8
or edx, eax
xor eax, eax
mov ah, byte [esp + 0x12]
or edx, eax
mov dword [esi + 0x1c], edx
cmp dword [ecx + 8], 0x24
jb 0x562fd6
mov eax, dword [esi + 0x20]
mov edx, eax
mov dword [esp + 0x10], eax
shl edx, 0x10
and eax, 0xff00
or edx, eax
xor eax, eax
mov ah, byte [esp + 0x12]
shl edx, 8
or edx, eax
movzx eax, byte [esi + 0x23]
or edx, eax
mov dword [esi + 0x20], edx
cmp dword [ecx + 8], 0x28
jb 0x562fd6
mov eax, dword [esi + 0x24]
mov dword [esp + 0x10], eax
xor edx, edx
mov dh, byte [esp + 0x12]
mov ecx, eax
shl ecx, 0x10
and eax, 0xff00
or ecx, eax
movzx eax, byte [esi + 0x27]
shl ecx, 8
or ecx, edx
or ecx, eax
mov dword [esi + 0x24], ecx
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x28
ret
mov edx, dword [esp + 0x10]
push edx
push eax
push 1
push esi
call fcn.00568bec
mov ebp, eax
add esp, 0x10
cmp ebp, dword [edi + 8]
je 0x562d99
mov eax, dword [esp + 0x10]
push eax
call fcn.00567ae9
add esp, 4
test eax, eax
jne 0x562d44
mov ecx, dword [edi + 8]
push ebp
push ecx
jmp 0x562d5e