Function at 0x551770
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x629688]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x19c], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 0x18c], eax
mov edx, dword [esi + 0xc]
sub edx, dword [esi + 8]
mov eax, 0x2aaaaaab
imul edx
sar edx, 2
mov eax, edx
xor ebx, ebx
shr eax, 0x1f
mov dword [ebp - 0x198], esi
mov dword [ebp - 0x180], ebx
add eax, edx
je 0x551a1e
xor ecx, ecx
mov dword [ebp - 0x184], ecx
push edi
lea ecx, [ecx]
mov eax, dword [esi + 8]
add eax, ecx
cmp dword [eax + 0x14], 0x10
jb 0x5517dd
mov eax, dword [eax]
lea ecx, [ebp - 0xc4]
push ecx
push eax
call fcn.00401830
add esp, 8
test eax, eax
jne 0x5519ea
mov ecx, dword [esi + 0x14]
mov eax, dword [ebp - 0xa4]
mov dword [ecx + ebx*8], eax
mov eax, dword [ebp - 0xa0]
mov dword [ecx + ebx*8 + 4], eax
mov edi, dword [ebp - 0xb0]
cmp edi, 0x70
jl 0x5519ea
add edi, 0xfffffff0
mov eax, 0x2aaaaaab
imul edi
sar edx, 4
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
mov ecx, edi
lea eax, [ebx + ebx*2]
shl eax, 5
sub ecx, eax
test ebx, ebx
je 0x5519e4
test ecx, ecx
jne 0x5519e4
mov eax, dword [esi + 8]
add eax, dword [ebp - 0x184]
cmp dword [eax + 0x14], 0x10
jb 0x551859
mov eax, dword [eax]
push 0x5e0860
push eax
call fcn.004017f0
add esp, 8
mov dword [ebp - 0x188], eax
test eax, eax
je 0x5519e4
push 1
push edi
call fcn.005882d3
push 1
push edi
mov dword [ebp - 0x17c], eax
call fcn.005882d3
mov esi, eax
mov eax, dword [ebp - 0x17c]
add esp, 0x10
mov dword [ebp - 0x194], esi
test eax, eax
je 0x5519c3
test esi, esi
je 0x5519ba
push dword [ebp - 0x188]
push edi
push 1
push eax
call fcn.00589b23
push dword [ebp - 0x188]
lea eax, [ebp - 0x24]
push 0x10
push 1
push eax
call fcn.00589b23
mov ecx, dword [ebp - 0x18c]
add esp, 0x20
call fcn.004070b0
mov ecx, dword [ebp - 0x18c]
push edi
push esi
push dword [ebp - 0x17c]
call fcn.004071b0
mov ecx, dword [ebp - 0x18c]
push 0x10
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004071b0
xorps xmm0, xmm0
lea eax, [ebp - 0x118]
push eax
movq qword [ebp - 0x14], xmm0
movq qword [ebp - 0xc], xmm0
call fcn.00410f30
push edi
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.00410f60
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.00411060
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00411820
add esp, 0x20
test al, al
je 0x5519b4
test ebx, ebx
je 0x5519b4
mov dword [ebp - 0x190], esi
lea esp, [esp]
lea ecx, [ebp - 0x178]
call fcn.00547f10
mov ecx, 0x18
lea edi, [ebp - 0x94]
lea eax, [ebp - 0x94]
rep movsd dword es:[edi], dword [esi]
push eax
lea ecx, [ebp - 0x178]
call fcn.005480c0
mov ecx, dword [ebp - 0x19c]
lea eax, [ebp - 0x178]
push eax
call fcn.00548ee0
mov esi, dword [ebp - 0x190]
add esi, 0x60
mov dword [ebp - 0x190], esi
dec ebx
jne 0x551960
mov esi, dword [ebp - 0x194]
mov eax, dword [ebp - 0x17c]
push eax
call fcn.005864b7
add esp, 4
test esi, esi
je 0x5519d0
push esi
call fcn.005864b7
add esp, 4
push dword [ebp - 0x188]
call fcn.005890ae
mov esi, dword [ebp - 0x198]
add esp, 4
mov ebx, dword [ebp - 0x180]
mov ecx, dword [esi + 0xc]
sub ecx, dword [esi + 8]
add dword [ebp - 0x184], 0x18
mov eax, 0x2aaaaaab
imul ecx
mov ecx, dword [ebp - 0x184]
sar edx, 2
mov eax, edx
shr eax, 0x1f
inc ebx
add eax, edx
mov dword [ebp - 0x180], ebx
cmp ebx, eax
jb 0x5517d0
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00586d1b
mov esp, ebp
pop ebp
ret 8