Function at 0x4049b0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, esp
and esp, 0xfffffff0
push ebp
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404c60
push dword fs:[0]
mov dword fs:[0], esp
sub esp, 0x4c
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x58], ebx
mov eax, ecx
mov edx, dword [ebx + 8]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], edi
mov esi, dword [edx + 0x10]
mov ecx, dword [edx + 0x14]
mov edx, dword [eax + 8]
mov dword [ebp - 0x54], eax
lea edi, [esi*4]
shl esi, 6
sub esi, edi
cmp esi, ecx
mov eax, dword [eax + 0xc]
cmova ecx, esi
sub ecx, esi
xor esi, esi
sub ecx, edx
mov edi, dword [ebp - 0x54]
sbb esi, eax
jae 0x404a5b
mov dword [ebp - 0x54], edi
push dword [ebx + 0xc]
push dword [ebx + 8]
mov ecx, dword [ebp - 0x54]
call fcn.00404c70
mov edx, dword [ebx + 8]
mov eax, dword [ebp - 0x54]
mov esi, dword [edx + 0x10]
mov ecx, dword [edx + 0x14]
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
lea edi, [esi*4]
shl esi, 6
sub esi, edi
cmp esi, ecx
cmova ecx, esi
sub ecx, esi
sub ecx, edx
mov ecx, 0
sbb ecx, eax
jb 0x404a1a
mov edi, dword [ebp - 0x54]
mov ecx, dword [ebx + 0x10]
add esp, 0xfffffff0
mov esi, dword [ecx]
mov ecx, dword [edi + 4]
mov esi, dword [esi + 0x10]
mov dword [ebp - 0x50], esi
mov dword [esp], ecx
push eax
push edx
push 0
push esi
call fcn.0040ac20
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp + 0xc], 0
call fcn.0040f358
push dword [edi + 4]
push dword [edi + 8]
push 1
push dword [edi + 0x10]
call fcn.0040ed7e
add esp, 0x20
movq xmm1, qword [edi + 0x30]
lea eax, [edi + 0x14]
mov dword [ebp - 0x54], eax
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
movq xmm0, qword [edi + 8]
paddq xmm1, xmm0
movq qword [edi + 0x30], xmm1
lea ecx, [eax + edx]
test cl, 3
je 0x404c2c
mov ecx, dword [edi + 0x1c]
lea esi, [ecx*4 - 1]
dec ecx
and edx, esi
mov dword [edi + 0x20], edx
add edx, eax
mov esi, edx
shr esi, 2
and esi, ecx
mov eax, dword [edi + 0x18]
cmp dword [eax + esi*4], 0
je 0x404c05
and edx, 3
mov eax, dword [eax + esi*4]
lea edx, [eax + edx*4]
test edx, edx
je 0x404b04
mov eax, dword [ebp - 0x50]
mov dword [edx], eax
mov esi, dword [edi + 0x10]
inc dword [edi + 0x24]
mov eax, dword [esi]
test eax, eax
je 0x404bd9
mov edi, dword [ebx + 0xc]
mov dword [ebp - 0x40], eax
lea eax, [esi + 0x14]
push eax
movq xmm0, qword [esi + 4]
lea ecx, [ebp - 0x50]
movq xmm1, qword [esi + 0xc]
push dword [ebx + 8]
mov dword [ebp - 0x38], 0
movq qword [ecx], xmm0
movq qword [ebp - 0x48], xmm1
call fcn.004054c0
mov dword [ebp - 4], 0
mov ecx, dword [edi]
mov edx, dword [ecx + 4]
cmp byte [edx + 0xd], 0
jne 0x404bfe
mov ecx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x54], esi
mov eax, dword [ebp - 0x20]
mov ecx, edx
sub eax, dword [edx + 0x18]
mov esi, dword [ebp - 0x24]
sbb esi, dword [edx + 0x1c]
jae 0x404b7f
mov eax, 1
jmp 0x404b81
xor eax, eax
mov edi, edx
test eax, eax
mov esi, dword [edx + 8]
mov edx, esi
cmovne edx, dword [edi]
cmp byte [edx + 0xd], 0
je 0x404b68
mov esi, dword [ebp - 0x54]
mov edi, dword [ebx + 0xc]
add esp, 0xffffffec
lea edx, [ebp - 0x28]
mov dword [esp], edx
lea edx, [esp + 0x10]
mov dword [esp + 4], eax
lea eax, [ebp - 0x50]
mov dword [esp + 8], ecx
mov ecx, edi
mov dword [esp + 0xc], eax
mov al, byte [ebp - 0x1c]
mov byte [edx], al
call fcn.00404770
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x40]
lea esi, [esi + eax + 0x14]
mov eax, dword [esi]
test eax, eax
jne 0x404b17
mov edi, dword [ebp - 0x30]
mov esi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
mov eax, 1
jmp 0x404b99
push 0x10
mov dword [ebp - 0x54], edx
call fcn.0040abd4
mov edx, dword [ebp - 0x54]
add esp, 4
test eax, eax
jne 0x404c1e
call fcn.0040eb54
mov ecx, dword [edi + 0x18]
mov dword [ecx + esi*4], eax
mov eax, dword [edi + 0x18]
jmp 0x404af2
mov ecx, dword [edi + 0x1c]
lea esi, [eax + 4]
shr esi, 2
cmp ecx, esi
ja 0x404acf
push 1
mov ecx, dword [ebp - 0x54]
call fcn.004058b0
mov edx, dword [edi + 0x20]
mov eax, dword [edi + 0x24]
mov ecx, dword [edi + 0x1c]
jmp 0x404acf