Function at 0x533e30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [0x5ff014]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [ecx + 0x40], 0
je 0x533e85
mov esi, ecx
mov eax, dword [ecx + 0x5c]
test al, 8
jne 0x533e8a
xor ecx, ecx
mov dword [esi + 0x18], ecx
mov dword [esi + 0x14], ecx
mov dword [esi + 0x1c], ecx
cmp byte [esi + 0x62], 0
je 0x533f3e
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 0x533e8d
xor edi, edi
dec edi
jmp 0x533ee0
mov ecx, dword [esi + 0xc]
mov byte [ebp - 0x11], 0xff
test ecx, ecx
jne 0x533ea4
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 0x533ec6
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 0x533ef4
movzx edi, byte [ecx]
lea eax, [ebp - 0x11]
cmp dword [esi + 8], eax
jne 0x533ee0
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.00504596
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.00507ae0
add esp, 0xc
cmp byte [esi + 0x62], 0
je 0x533f49
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.0051ca57
add esp, 0x10
test eax, eax
je 0x534057
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 0x533ecd
lea ecx, [esi + 0x38]
lea edx, [esi + 0x3c]
jmp 0x533e6d
mov edx, dword [esi + 0x24]
mov ecx, dword [esi + 0x28]
mov edi, ecx
mov eax, ecx
sub edi, edx
je 0x533f6a
push edi
push edx
push dword [esi + 0x20]
call fcn.00507ae0
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 0x534043
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.0051ca57
add esp, 0x10
test eax, eax
je 0x534057
mov edi, eax
mov eax, dword [esi + 0x44]
test eax, eax
je 0x53405f
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 0x53404d
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 0x533ecd
mov edx, 8
jmp 0x533f82
mov eax, dword [ebp - 0x18]
add ebx, dword [esi + 8]
cmp eax, ebx
jne 0x534035
xor edi, edi
dec edi
jmp 0x533ecd
call fcn.00534280
int3