Function at 0x5f40c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x48]
mov dword [ebp + 8], eax
test byte [eax], 8
jne 0x5f40e1
mov dword [esi + 0x40], 0x6f
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0x1c]
push eax
push esi
call fcn.005f4680
add esp, 8
test eax, eax
je 0x5f40da
lea eax, [esi + 0x20]
push eax
push esi
call fcn.005f4680
add esp, 8
test eax, eax
je 0x5f40da
lea eax, [esi + 0x24]
push eax
push esi
call fcn.005f4680
add esp, 8
test eax, eax
je 0x5f40da
lea eax, [esi + 0x28]
push eax
push esi
call fcn.005f4680
add esp, 8
test eax, eax
je 0x5f40da
mov ecx, dword [esi + 0x48]
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x5f413d
push 1
lea ecx, [ebp - 4]
push ecx
push esi
call eax
add esp, 0xc
jmp 0x5f4150
push dword [ecx + 0x38]
lea eax, [ebp - 4]
push 1
push 1
push eax
call fcn.005cb2c3
add esp, 0x10
cmp eax, 1
je 0x5f4175
push dword [esi + 0x30]
mov dword [esi + 0x40], 0x66
call fcn.005f4890
add esp, 4
mov dword [esi + 0x30], 0
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov cl, byte [ebp - 4]
movzx eax, cl
push edi
mov edi, eax
shr eax, 6
and eax, 1
and edi, 7
mov dword [esi + 0x2c], eax
mov eax, dword [esi + 0x30]
test eax, eax
je 0x5f41a4
push eax
call fcn.005f4890
mov cl, byte [ebp - 4]
add esp, 4
mov dword [esi + 0x30], 0
push ebx
mov ebx, 1
test cl, cl
jns 0x5f4240
lea ecx, [edi + 1]
mov eax, ebx
shl eax, cl
push 0
push eax
call fcn.005f49c0
add esp, 8
mov dword [esi + 0x30], eax
test eax, eax
je 0x5f439e
xor ebx, ebx
cmp dword [eax], ebx
jbe 0x5f423b
xor edi, edi
mov ecx, dword [esi + 0x48]
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x5f41ef
push 3
lea ecx, [ebp - 4]
push ecx
push esi
call eax
add esp, 0xc
jmp 0x5f4202
push dword [ecx + 0x38]
lea eax, [ebp - 4]
push 3
push 1
push eax
call fcn.005cb2c3
add esp, 0x10
mov ecx, dword [esi + 0x30]
cmp eax, 3
jne 0x5f4266
mov ecx, dword [ecx + 0xc]
inc ebx
movzx eax, byte [ebp - 4]
mov byte [edi + ecx], al
mov eax, dword [esi + 0x30]
mov ecx, dword [eax + 0xc]
movzx eax, byte [ebp - 3]
mov byte [ecx + edi + 1], al
mov eax, dword [esi + 0x30]
mov ecx, dword [eax + 0xc]
movzx eax, byte [ebp - 2]
mov byte [ecx + edi + 2], al
add edi, 3
mov eax, dword [esi + 0x30]
cmp ebx, dword [eax]
jb 0x5f41d7
mov ebx, 1
mov ecx, dword [esi + 0x34]
push 0x24
test ecx, ecx
je 0x5f4286
mov eax, dword [esi + 0x18]
inc eax
push eax
push ecx
call fcn.005f4a60
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x5f439e
mov dword [esi + 0x34], ecx
jmp 0x5f429b
push ecx
call fcn.005f4890
add esp, 4
mov dword [esi + 0x40], 0x66
mov dword [esi + 0x30], 0
xor eax, eax
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.005cff37
mov ecx, eax
add esp, 4
mov dword [esi + 0x34], ecx
test ecx, ecx
je 0x5f439e
mov eax, dword [esi + 0x18]
movups xmm0, xmmword [esi + 0x1c]
lea eax, [eax + eax*8]
lea edi, [ecx + eax*4]
movups xmmword [edi], xmm0
movq xmm0, qword [esi + 0x2c]
movq qword [edi + 0x10], xmm0
mov eax, dword [esi + 0x30]
test eax, eax
je 0x5f42d4
push dword [eax + 0xc]
push dword [eax]
call fcn.005f49c0
add esp, 8
mov dword [edi + 0x14], eax
test eax, eax
je 0x5f439e
mov ecx, dword [ebp + 8]
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov eax, dword [esi + 0x28]
imul eax, dword [esi + 0x24]
inc dword [esi + 0x18]
mov dword [ecx + 0x34], eax
mov edi, dword [esi + 0x48]
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x5f4311
push 1
lea ecx, [ebp + 0xb]
push ecx
push esi
call eax
add esp, 0xc
jmp 0x5f4324
push dword [edi + 0x38]
lea eax, [ebp + 0xb]
push 1
push 1
push eax
call fcn.005cb2c3
add esp, 0x10
cmp eax, 1
jb 0x5f43a5
movzx ecx, byte [ebp + 0xb]
cmp ecx, 8
jbe 0x5f4342
pop ebx
pop edi
mov dword [esi + 0x40], 0x66
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 1
mov dword [edi + 8], ecx
shl eax, cl
inc ecx
mov dword [edi + 0xc], eax
inc eax
mov dword [edi + 0x10], eax
inc eax
shl ebx, cl
mov dword [edi + 0x14], eax
mov eax, 0x1002
mov dword [edi + 0x18], ecx
mov ecx, 0x1000
mov dword [edi + 0x1c], ebx
mov byte [edi + 0x44], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x20], 0x1002
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
add edi, 0x2144
rep stosd dword es:[edi], eax
pop ebx
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x40], 0x6d
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret