Function at 0x535a80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [0x603024]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [ecx + 0x40], 0
je 0x535ad5
mov esi, ecx
mov eax, dword [ecx + 0x5c]
test al, 8
jne 0x535ada
xor ecx, ecx
mov dword [esi + 0x18], ecx
mov dword [esi + 0x14], ecx
mov dword [esi + 0x1c], ecx
cmp byte [esi + 0x62], 0
je 0x535b8e
lea ecx, [esi + 0x20]
lea edx, [esi + 0x34]
mov edi, dword [ecx]
mov ecx, dword [edx]
add ecx, edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], ecx
mov dword [esi + 0x5c], 8
jmp 0x535add
xor edi, edi
dec edi
jmp 0x535b30
mov ecx, dword [esi + 0xc]
mov byte [ebp - 0x11], 0xff
test ecx, ecx
jne 0x535af4
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0x11]
mov dword [esi + 8], edx
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], ecx
xor ebx, ebx
mov edx, dword [esi + 0x10]
test al, 8
je 0x535b16
mov eax, edx
sub eax, dword [esi + 8]
mov edi, eax
shr edi, 0x1f
add edi, eax
sar edi, 1
cmp edi, 4
mov ebx, 4
cmovb ebx, edi
cmp ecx, edx
je 0x535b44
movzx edi, byte [ecx]
lea eax, [ebp - 0x11]
cmp dword [esi + 8], eax
jne 0x535b30
xor eax, eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00504b53
mov eax, edi
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
sub ecx, ebx
push ebx
push ecx
push dword [esi + 8]
call fcn.00506d50
add esp, 0xc
cmp byte [esi + 0x62], 0
je 0x535b99
mov eax, dword [esi + 8]
add eax, ebx
mov ecx, dword [esi + 0x10]
sub ecx, eax
push dword [esi + 0x40]
push ecx
push 1
push eax
call fcn.0051e197
add esp, 0x10
test eax, eax
je 0x535ca7
mov ecx, dword [esi + 8]
lea edx, [ecx + ebx]
add eax, edx
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], eax
movzx edi, byte [ecx + ebx]
jmp 0x535b1d
lea ecx, [esi + 0x38]
lea edx, [esi + 0x3c]
jmp 0x535abd
mov edx, dword [esi + 0x24]
mov ecx, dword [esi + 0x28]
mov edi, ecx
mov eax, ecx
sub edi, edx
je 0x535bba
push edi
push edx
push dword [esi + 0x20]
call fcn.00506d50
add esp, 0xc
mov ecx, dword [esi + 0x24]
mov eax, dword [esi + 0x28]
sub eax, ecx
mov ecx, dword [esi + 0x20]
add eax, ecx
mov dword [esi + 0x24], eax
lea edx, [esi + 0x2c]
cmp ecx, edx
je 0x535c93
mov edx, dword [esi + 0x34]
add ecx, edx
mov dword [esi + 0x28], ecx
sub ecx, eax
mov edx, dword [esi + 0x3c]
mov edi, dword [esi + 0x40]
mov dword [ebp - 0x1c], edi
sub edx, ebx
cmp ecx, edx
cmovb edx, ecx
mov ecx, dword [esi + 0x48]
mov edi, dword [esi + 0x4c]
mov dword [esi + 0x54], edi
mov dword [esi + 0x50], ecx
push dword [ebp - 0x1c]
push edx
push 1
push eax
call fcn.0051e197
add esp, 0x10
test eax, eax
je 0x535ca7
mov edi, eax
mov eax, dword [esi + 0x44]
test eax, eax
je 0x535caf
mov ecx, eax
add edi, dword [esi + 0x24]
lea eax, [esi + 0x24]
mov dword [ebp - 0x1c], eax
mov dword [esi + 0x28], edi
lea eax, [ebp - 0x18]
mov dword [eax], 0xffffffff
mov eax, dword [esi + 8]
mov edx, dword [esi + 0x3c]
add edx, eax
mov dword [ebp - 0x2c], edx
add eax, ebx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ecx
mov eax, dword [ecx]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x28], ecx
lea eax, [esi + 0x48]
mov dword [ebp - 0x34], eax
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x30], eax
call dword [section..00cfg]
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x2c]
push dword [ebp - 0x24]
push dword [ebp - 0x1c]
push edi
push dword [ebp - 0x30]
push dword [ebp - 0x34]
call dword [ebp - 0x28]
cmp eax, 3
jne 0x535c9d
mov ebx, dword [esi + 0x20]
mov eax, dword [esi + 0x28]
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], eax
movzx edi, byte [ebx]
jmp 0x535b1d
mov edx, 8
jmp 0x535bd2
mov eax, dword [ebp - 0x18]
add ebx, dword [esi + 8]
cmp eax, ebx
jne 0x535c85
xor edi, edi
dec edi
jmp 0x535b1d
call fcn.00535ed0
int3