Function at 0x406da0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0xb4
push ebx
push ebp
mov ebp, dword [esp + 0xc0]
push esi
push edi
push 0
push eax
push ebp
call dword [sym.imp.MSVCRT.DLL_fseek]
mov ebx, dword [esp + 0xe0]
mov esi, dword [sym.imp.MSVCRT.DLL_fread]
add esp, 0xc
push ebp
push 1
lea ecx, [esp + 0x38]
push 8
push ecx
call esi
mov edx, dword [esp + 0x40]
add esp, 0x10
lea eax, [edx - 1]
cmp eax, 7
ja case.default.0x406dee
jmp dword [eax*4 + 0x407ce4]
mov eax, dword [ebx + 0x18]
cmp eax, 0x3333
jne 0x406e26
push ebp
push 1
lea eax, [esp + 0x9c]
push 4
push eax
call esi
mov ecx, dword [ebx + 4]
mov edx, dword [ebx]
push ecx
push 0x44
push edx
call fcn.004066b0
add esp, 0x1c
mov dword [ebx], eax
jmp 0x40769b
cmp eax, 0x4444
jne case.0x406dee.2
push ebp
push 1
lea eax, [esp + 0xa0]
push 0x2c
push eax
call dword [sym.imp.MSVCRT.DLL_fread]
mov ecx, dword [ebx + 4]
mov edx, dword [ebx]
push ecx
push 0x44
push edx
call fcn.004066b0
mov ecx, dword [ebx + 4]
lea esi, [esp + 0xb8]
mov edx, ecx
mov dword [ebx], eax
shl edx, 4
add edx, ecx
mov ecx, 6
add esp, 0x1c
lea edi, [eax + edx*4 + 0x1c]
mov eax, dword [esp + 0xcc]
rep movsd dword es:[edi], dword [esi]
fld dword [esp + 0xa8]
fadd dword [esp + 0x9c]
fmul dword [0x451994]
test eax, eax
fstp dword [esp + 0x64]
fld dword [esp + 0xac]
fadd dword [esp + 0xa0]
mov edx, dword [esp + 0x64]
fmul dword [0x451994]
fstp dword [esp + 0x68]
fld dword [esp + 0xb0]
fadd dword [esp + 0xa4]
mov ecx, dword [esp + 0x68]
fmul dword [0x451994]
fstp dword [esp + 0x6c]
mov esi, dword [esp + 0x6c]
jne 0x406ede
lea eax, [ebx + 0x20]
mov dword [ebx + 0x20], edx
mov dword [eax + 4], ecx
mov dword [eax + 8], esi
mov eax, dword [ebx + 4]
mov edi, eax
shl edi, 4
add edi, eax
mov eax, dword [ebx]
lea eax, [eax + edi*4 + 0x34]
mov dword [eax], edx
mov dword [eax + 4], ecx
mov dword [eax + 8], esi
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
mov ecx, eax
fld dword [esp + 0xc0]
shl ecx, 4
add ecx, eax
fstp dword [edx + ecx*4 + 0x40]
jmp 0x407695
mov edx, dword [ebx + 4]
mov eax, dword [esp + 0x34]
inc edx
push eax
mov dword [ebx + 4], edx
call sub.MSVCRT.DLL_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [esp + 0x38]
push ebp
mov edi, eax
push 1
push ecx
push edi
mov dword [esp + 0x38], edi
call esi
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
mov edx, dword [esp + 0x24]
repne scasb al, byte es:[edi]
not ecx
mov dword [esp + 0x18], ecx
lea edi, [ecx + edx]
or ecx, 0xffffffff
mov dword [esp + 0x1c], edi
repne scasb al, byte es:[edi]
mov eax, dword [ebx + 0xc]
not ecx
dec ecx
mov edi, ecx
inc edi
test eax, eax
mov dword [esp + 0x70], edi
je 0x407013
mov dword [esp + 0x14], 0
jbe 0x407013
mov ecx, dword [ebx + 8]
add ecx, 8
mov dword [esp + 0x38], ecx
mov eax, dword [ecx - 4]
mov edi, dword [esp + 0x24]
mov dl, byte [edi]
mov cl, dl
cmp dl, byte [eax]
jne 0x406fac
test cl, cl
je 0x406fa8
mov dl, byte [edi + 1]
mov cl, dl
cmp dl, byte [eax + 1]
jne 0x406fac
add edi, 2
add eax, 2
test cl, cl
jne 0x406f88
xor eax, eax
jmp 0x406fb1
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x406ff0
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x1c]
mov eax, dword [eax]
mov dl, byte [edi]
mov cl, dl
cmp dl, byte [eax]
jne 0x406fe3
test cl, cl
je 0x406fdf
mov dl, byte [edi + 1]
mov cl, dl
cmp dl, byte [eax + 1]
jne 0x406fe3
add edi, 2
add eax, 2
test cl, cl
jne 0x406fbf
xor eax, eax
jmp 0x406fe8
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4070e0
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x38]
mov eax, dword [ebx + 0xc]
inc edx
add ecx, 0x12
cmp edx, eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x38], ecx
jb 0x406f81
mov edi, dword [esp + 0x70]
mov edx, dword [ebx + 8]
push eax
push 0x12
push edx
call fcn.004066b0
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x24]
push eax
call sub.MSVCRT.DLL_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebx + 8]
push edi
lea ecx, [ecx + ecx*8]
mov dword [edx + ecx*2 + 4], eax
call sub.MSVCRT.DLL_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebx + 8]
mov edi, dword [esp + 0x38]
lea ecx, [ecx + ecx*8]
mov dword [edx + ecx*2 + 8], eax
mov eax, dword [ebx + 0xc]
or ecx, 0xffffffff
lea edx, [eax + eax*8]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x2c], edx
mov edx, dword [ebx + 8]
mov esi, edi
mov edi, dword [esp + 0x2c]
mov eax, ecx
shr ecx, 2
mov edi, dword [edx + edi*2 + 4]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0xc]
mov edi, dword [esp + 0x30]
or ecx, 0xffffffff
lea edx, [eax + eax*8]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x2c], edx
mov edx, dword [ebx + 8]
mov esi, edi
mov edi, dword [esp + 0x2c]
mov eax, ecx
shr ecx, 2
mov edi, dword [edx + edi*2 + 8]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x38]
push ecx
call sub.MSVCRT.DLL_void___cdecl_operator_delete_void__
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 0xc]
mov edx, eax
add esp, 0x18
shl edx, 4
add edx, eax
mov eax, dword [ebx]
mov dword [eax + edx*4 - 0x30], ecx
mov eax, dword [ebx + 0xc]
inc eax
mov dword [ebx + 0xc], eax
jmp 0x407695
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
mov ecx, eax
shl ecx, 4
add ecx, eax
mov eax, dword [esp + 0x14]
mov dword [edx + ecx*4 - 0x30], eax
mov ecx, dword [esp + 0x24]
push ecx
call sub.MSVCRT.DLL_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x40769b
cmp dword [ebx + 0x18], 0x4444
jne case.0x406dee.5
push ebp
push 1
lea edx, [esp + 0x5c]
push 4
push edx
call esi
push ebp
push 1
lea eax, [esp + 0x28]
push 4
push eax
call esi
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
mov ecx, eax
shl ecx, 4
add ecx, eax
mov eax, dword [esp + 0x30]
mov dword [edx + ecx*4 - 0x44], eax
mov eax, dword [esp + 0x30]
lea ecx, [eax + eax*4]
shl ecx, 2
push ecx
call sub.MSVCRT.DLL_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [ebx + 4]
mov edx, ecx
shl edx, 4
add edx, ecx
mov ecx, dword [ebx]
mov dword [ecx + edx*4 - 0x40], eax
mov eax, dword [esp + 0x34]
lea edx, [eax + eax*2]
shl edx, 2
push edx
call sub.MSVCRT.DLL_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [ebx + 4]
add esp, 0x28
mov edx, ecx
shl edx, 4
add edx, ecx
mov ecx, dword [ebx]
mov dword [ecx + edx*4 - 0x3c], eax
mov eax, dword [esp + 0x54]
cmp eax, 1
je 0x4075a6
cmp eax, 0x12071980
je 0x4075a6
cmp eax, 2
je 0x4074af
cmp eax, 0x240e3300
je 0x4074af
cmp eax, 3
jne 0x4072a7
mov ecx, dword [esp + 0x10]
lea eax, [ecx*8]
sub eax, ecx
lea edx, [eax + eax*4]
shl edx, 1
push edx
call sub.MSVCRT.DLL_void____cdecl_operator_new_unsigned_int_
mov edi, eax
mov eax, dword [esp + 0x14]
push ebp
push eax
push 0x46
push edi
mov dword [esp + 0x2c], edi
call dword [sym.imp.MSVCRT.DLL_fread]
mov eax, dword [esp + 0x24]
add esp, 0x14
xor esi, esi
test eax, eax
jbe 0x40768c
xor ecx, ecx
lea eax, [edi + 0x3e]
mov dword [esp + 0x14], ecx
mov edx, dword [ebx + 4]
lea edi, [eax - 0x38]
mov ebp, edx
shl ebp, 4
add ebp, edx
mov edx, dword [ebx]
mov edx, dword [edx + ebp*4 - 0x40]
mov ebp, dword [edi]
add edx, ecx
add ecx, 0x14
mov dword [edx], ebp
mov ebp, dword [edi + 4]
mov dword [edx + 4], ebp
mov edi, dword [edi + 8]
mov dword [edx + 8], edi
mov edx, dword [ebx + 4]
mov edi, edx
shl edi, 4
add edi, edx
mov edx, dword [ebx]
mov edx, dword [edx + edi*4 - 0x40]
mov edi, dword [eax]
mov dword [edx + ecx - 8], edi
mov edx, dword [ebx + 4]
mov edi, edx
shl edi, 4
add edi, edx
mov edx, dword [ebx]
mov edx, dword [edx + edi*4 - 0x40]
mov edi, dword [eax + 4]
mov dword [edx + ecx - 4], edi
mov edx, dword [ebx + 4]
mov ebp, edx
lea edi, [eax - 0x2c]
shl ebp, 4
add ebp, edx
mov edx, dword [ebx]
add eax, 0x46
mov edx, dword [edx + ebp*4 - 0x3c]
mov ebp, dword [esp + 0x14]
add edx, ebp
mov ebp, dword [edi]
inc esi
mov dword [edx], ebp
mov ebp, dword [edi + 4]
mov dword [edx + 4], ebp
mov edi, dword [edi + 8]
mov dword [edx + 8], edi
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
add edi, 0xc
cmp esi, edx
mov dword [esp + 0x14], edi
jb 0x4071fe
mov ebp, dword [esp + 0xc8]
mov edi, dword [esp + 0x18]
jmp 0x40768c
cmp eax, 4
jne 0x4073ad
mov eax, dword [esp + 0x10]
lea ecx, [eax + eax*8]
lea edx, [eax + ecx*2]
shl edx, 2
push edx
call sub.MSVCRT.DLL_void____cdecl_operator_new_unsigned_int_
mov edi, eax
mov eax, dword [esp + 0x14]
push ebp
push eax
push 0x4c
push edi
mov dword [esp + 0x2c], edi
call esi
mov eax, dword [esp + 0x24]
add esp, 0x14
test eax, eax
mov dword [esp + 0x1c], 0
jbe 0x40739f
xor ecx, ecx
lea eax, [edi + 0x44]
mov dword [esp + 0x14], ecx
mov edx, dword [ebx + 4]
lea esi, [eax - 0x3c]
mov edi, edx
shl edi, 4
add edi, edx
mov edx, dword [ebx]
mov edx, dword [edx + edi*4 - 0x40]
mov edi, dword [esi]
add edx, ecx
add ecx, 0x14
mov dword [edx], edi
mov edi, dword [esi + 4]
mov dword [edx + 4], edi
mov esi, dword [esi + 8]
mov dword [edx + 8], esi
mov edx, dword [ebx + 4]
mov esi, edx
shl esi, 4
add esi, edx
mov edx, dword [ebx]
mov edx, dword [edx + esi*4 - 0x40]
mov esi, dword [eax]
mov dword [edx + ecx - 8], esi
mov edx, dword [ebx + 4]
mov esi, edx
shl esi, 4
add esi, edx
mov edx, dword [ebx]
mov edx, dword [edx + esi*4 - 0x40]
mov esi, dword [eax + 4]
mov dword [edx + ecx - 4], esi
mov edx, dword [ebx + 4]
mov edi, edx
lea esi, [eax - 0x30]
shl edi, 4
add edi, edx
mov edx, dword [ebx]
add eax, 0x4c
mov edx, dword [edx + edi*4 - 0x3c]
mov edi, dword [esp + 0x14]
add edx, edi
mov edi, dword [esi]
mov dword [edx], edi
mov edi, dword [esi + 4]
mov dword [edx + 4], edi
mov esi, dword [esi + 8]
mov edi, dword [esp + 0x14]
mov dword [edx + 8], esi
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x10]
inc edx
add edi, 0xc
cmp edx, esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], edi
jb 0x4072f4
mov esi, dword [sym.imp.MSVCRT.DLL_fread]
mov edi, dword [esp + 0x18]
push edi
call sub.MSVCRT.DLL_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x40769b
cmp eax, 0x112
jne 0x40769b
mov eax, dword [esp + 0x10]
shl eax, 5
push eax
call sub.MSVCRT.DLL_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [esp + 0x14]
push ebp
mov edi, eax
push ecx
push 0x20
push edi
mov dword [esp + 0x2c], edi
call esi
mov eax, dword [esp + 0x24]
add esp, 0x14
test eax, eax
mov dword [esp + 0x1c], 0
jbe 0x4074a1
xor ecx, ecx
lea eax, [edi + 0x1c]
mov dword [esp + 0x14], ecx
mov edx, dword [ebx + 4]
lea esi, [eax - 0x1c]
mov edi, edx
shl edi, 4
add edi, edx
mov edx, dword [ebx]
mov edx, dword [edx + edi*4 - 0x40]
mov edi, dword [esi]
add edx, ecx
add ecx, 0x14
mov dword [edx], edi
mov edi, dword [esi + 4]
mov dword [edx + 4], edi
mov esi, dword [esi + 8]
mov dword [edx + 8], esi
mov edx, dword [ebx + 4]
mov esi, edx
shl esi, 4
add esi, edx
mov edx, dword [ebx]
mov edx, dword [edx + esi*4 - 0x40]
mov esi, dword [eax - 4]
mov dword [edx + ecx - 8], esi
mov edx, dword [ebx + 4]
mov esi, edx
shl esi, 4
add esi, edx
mov edx, dword [ebx]
mov edx, dword [edx + esi*4 - 0x40]
mov esi, dword [eax]
mov dword [edx + ecx - 4], esi
mov edx, dword [ebx + 4]
mov edi, edx
lea esi, [eax - 0x10]
shl edi, 4
add edi, edx
mov edx, dword [ebx]
add eax, 0x20
mov edx, dword [edx + edi*4 - 0x3c]
mov edi, dword [esp + 0x14]
add edx, edi
mov edi, dword [esi]
mov dword [edx], edi
mov edi, dword [esi + 4]
mov dword [edx + 4], edi
mov esi, dword [esi + 8]
mov edi, dword [esp + 0x14]
mov dword [edx + 8], esi
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x10]
inc edx
add edi, 0xc
cmp edx, esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], edi
jb 0x4073f6
mov esi, dword [sym.imp.MSVCRT.DLL_fread]
mov edi, dword [esp + 0x18]
push edi
call sub.MSVCRT.DLL_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x40769b
mov eax, dword [esp + 0x10]
shl eax, 6
push eax
call sub.MSVCRT.DLL_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [esp + 0x14]
push ebp
mov edi, eax
push ecx
push 0x40
push edi
mov dword [esp + 0x2c], edi
call esi
mov eax, dword [esp + 0x24]
add esp, 0x14
test eax, eax
mov dword [esp + 0x1c], 0
jbe 0x407598
xor ecx, ecx
lea eax, [edi + 0x38]
mov dword [esp + 0x14], ecx
mov edx, dword [ebx + 4]
lea esi, [eax - 0x34]
mov edi, edx
shl edi, 4
add edi, edx
mov edx, dword [ebx]
mov edx, dword [edx + edi*4 - 0x40]
mov edi, dword [esi]
add edx, ecx
add ecx, 0x14
mov dword [edx], edi
mov edi, dword [esi + 4]
mov dword [edx + 4], edi
mov esi, dword [esi + 8]
mov dword [edx + 8], esi
mov edx, dword [ebx + 4]
mov esi, edx
shl esi, 4
add esi, edx
mov edx, dword [ebx]
mov edx, dword [edx + esi*4 - 0x40]
mov esi, dword [eax]
mov dword [edx + ecx - 8], esi
mov edx, dword [ebx + 4]
mov esi, edx
shl esi, 4
add esi, edx
mov edx, dword [ebx]
mov edx, dword [edx + esi*4 - 0x40]
mov esi, dword [eax + 4]
mov dword [edx + ecx - 4], esi
mov edx, dword [ebx + 4]
mov edi, edx
lea esi, [eax - 0x28]
shl edi, 4
add edi, edx
mov edx, dword [ebx]
add eax, 0x40
mov edx, dword [edx + edi*4 - 0x3c]
mov edi, dword [esp + 0x14]
add edx, edi
mov edi, dword [esi]
mov dword [edx], edi
mov edi, dword [esi + 4]
mov dword [edx + 4], edi
mov esi, dword [esi + 8]
mov edi, dword [esp + 0x14]
mov dword [edx + 8], esi
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x10]
inc edx
add edi, 0xc
cmp edx, esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], edi
jb 0x4074ed
mov esi, dword [sym.imp.MSVCRT.DLL_fread]
mov edi, dword [esp + 0x18]
push edi
call sub.MSVCRT.DLL_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x40769b
mov eax, dword [esp + 0x10]
lea eax, [eax + eax*2]
lea eax, [eax + eax*4]
shl eax, 2
push eax
call sub.MSVCRT.DLL_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [esp + 0x14]
push ebp
mov edi, eax
push ecx
push 0x3c
push edi
mov dword [esp + 0x2c], edi
call dword [sym.imp.MSVCRT.DLL_fread]
mov eax, dword [esp + 0x24]
add esp, 0x14
xor esi, esi
test eax, eax
jbe 0x40768c
xor ecx, ecx
lea eax, [edi + 0x34]
mov dword [esp + 0x14], ecx
mov edx, dword [ebx + 4]
lea edi, [eax - 0x34]
mov ebp, edx
shl ebp, 4
add ebp, edx
mov edx, dword [ebx]
mov edx, dword [edx + ebp*4 - 0x40]
mov ebp, dword [edi]
add edx, ecx
add ecx, 0x14
mov dword [edx], ebp
mov ebp, dword [edi + 4]
mov dword [edx + 4], ebp
mov edi, dword [edi + 8]
mov dword [edx + 8], edi
mov edx, dword [ebx + 4]
mov edi, edx
shl edi, 4
add edi, edx
mov edx, dword [ebx]
mov edx, dword [edx + edi*4 - 0x40]
mov edi, dword [eax - 4]
mov dword [edx + ecx - 8], edi
mov edx, dword [ebx + 4]
mov edi, edx
shl edi, 4
add edi, edx
mov edx, dword [ebx]
mov edx, dword [edx + edi*4 - 0x40]
mov edi, dword [eax]
mov dword [edx + ecx - 4], edi
mov edx, dword [ebx + 4]
mov ebp, edx
lea edi, [eax - 0x28]
shl ebp, 4
add ebp, edx
mov edx, dword [ebx]
add eax, 0x3c
mov edx, dword [edx + ebp*4 - 0x3c]
mov ebp, dword [esp + 0x14]
add edx, ebp
mov ebp, dword [edi]
inc esi
mov dword [edx], ebp
mov ebp, dword [edi + 4]
mov dword [edx + 4], ebp
mov edi, dword [edi + 8]
mov dword [edx + 8], edi
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
add edi, 0xc
cmp esi, edx
mov dword [esp + 0x14], edi
jb 0x4075e8
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0xc8]
push edi
call sub.MSVCRT.DLL_void___cdecl_operator_delete_void__
add esp, 4
mov esi, dword [sym.imp.MSVCRT.DLL_fread]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0xd0]
mov ecx, 0xfffffff8
sub ecx, edx
add eax, ecx
mov dword [esp + 0xd0], eax
jne 0x406dcf
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb4
ret
cmp dword [ebx + 0x18], 0x4444
jne case.0x406dee.5
push ebp
push 1
lea eax, [esp + 0x34]
push 4
push eax
call esi
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
mov ecx, eax
shl ecx, 4
add ecx, eax
mov eax, dword [esp + 0x3c]
mov dword [edx + ecx*4 - 0x38], eax
mov ecx, dword [esp + 0x3c]
lea edx, [ecx + ecx]
push edx
call sub.MSVCRT.DLL_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [ebx + 4]
push ebp
mov edx, ecx
shl edx, 4
add edx, ecx
mov ecx, dword [ebx]
mov dword [ecx + edx*4 - 0x34], eax
mov eax, dword [ebx + 4]
mov edx, dword [esp + 0x44]
mov ecx, eax
shl ecx, 4
push edx
mov edx, dword [ebx]
add ecx, eax
push 2
mov eax, dword [edx + ecx*4 - 0x34]
push eax
call esi
add esp, 0x24
jmp 0x40769b
mov eax, dword [ebx + 0x18]
cmp eax, 0x3333
jne 0x40775f
mov ecx, dword [esp + 0x34]
push ecx
call sub.MSVCRT.DLL_void____cdecl_operator_new_unsigned_int_
mov edx, dword [esp + 0x38]
push ebp
mov edi, eax
push 1
push edx
push edi
call esi
push edi
call sub.MSVCRT.DLL_void___cdecl_operator_delete_void__
add esp, 0x18
jmp 0x40769b
cmp eax, 0x4444
je 0x40769b
mov eax, dword [ebx + 0x18]
cmp eax, 0x3333
jne 0x407864
push ebp
push 1
lea eax, [esp + 0x44]
push 0x18
push eax
call dword [sym.imp.MSVCRT.DLL_fread]
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
mov ecx, eax
lea esi, [esp + 0x4c]
shl ecx, 4
add ecx, eax
add esp, 0x10
lea edi, [edx + ecx*4 - 0x28]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
fld dword [esp + 0x48]
fadd dword [esp + 0x3c]
fmul dword [0x451994]
fstp dword [esp + 0x58]
fld dword [esp + 0x4c]
fadd dword [esp + 0x40]
mov edx, dword [esp + 0x58]
fmul dword [0x451994]
fstp dword [esp + 0x5c]
fld dword [esp + 0x50]
fadd dword [esp + 0x44]
mov ecx, dword [esp + 0x5c]
fmul dword [0x451994]
fstp dword [esp + 0x60]
fld dword [ebx + 0x20]
fcomp dword [0x4519a4]
mov esi, dword [esp + 0x60]
fnstsw ax
test ah, 0x40
je 0x407801
mov dword [ebx + 0x20], edx
mov dword [ebx + 0x24], ecx
mov dword [ebx + 0x28], esi
mov eax, dword [ebx + 4]
mov edi, eax
shl edi, 4
add edi, eax
mov eax, dword [ebx]
lea eax, [eax + edi*4 - 0x10]
mov dword [eax], edx
mov dword [eax + 4], ecx
mov dword [eax + 8], esi
mov eax, dword [ebx + 4]
fld dword [esp + 0x44]
fsub dword [esp + 0x50]
fld dword [esp + 0x40]
fsub dword [esp + 0x4c]
fld dword [esp + 0x3c]
fsub dword [esp + 0x48]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
mov edx, dword [ebx]
mov ecx, eax
shl ecx, 4
faddp st(1)
fld st(3)
fmul st(4)
add ecx, eax
faddp st(1)
fsqrt
fmul qword [0x451908]
fstp st(3)
fstp st(0)
fstp st(0)
fstp dword [edx + ecx*4 - 4]
jmp 0x407695
cmp eax, 0x4444
jne case.0x406dee.7
push ebp
push 1
lea eax, [esp + 0x80]
push 0x1c
push eax
call dword [sym.imp.MSVCRT.DLL_fread]
mov ecx, dword [ebx + 4]
mov eax, dword [esp + 0xa0]
mov edx, ecx
and eax, 0xffff
shl edx, 4
add edx, ecx
mov ecx, dword [ebx]
lea eax, [eax + eax*2]
add esp, 0x10
mov dword [ecx + edx*4 - 0x38], eax
mov ecx, dword [ebx + 4]
mov edx, ecx
shl edx, 4
add edx, ecx
mov ecx, dword [ebx]
mov edi, dword [ecx + edx*4 - 0x34]
mov edx, dword [esp + 0x8c]
lea ecx, [eax + eax]
mov eax, ecx
lea esi, [edi + edx*2]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x88]
dec eax
mov dword [esp + 0x88], eax
je 0x407695
mov esi, dword [sym.imp.MSVCRT.DLL_fread]
push ebp
push 1
lea ecx, [esp + 0x94]
push 8
push ecx
call esi
mov eax, dword [esp + 0x98]
add esp, 0x10
dec eax
mov dword [esp + 0x88], eax
jne 0x4078ea
jmp 0x407695
cmp dword [ebx + 0x18], 0x3333
jne case.default.0x406dee
push ebp
push 1
lea edx, [esp + 0x7c]
push 4
push edx
call esi
push ebp
push 1
lea eax, [esp + 0x38]
push 4
push eax
call esi
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
mov ecx, eax
shl ecx, 4
add ecx, eax
mov eax, dword [esp + 0x40]
mov dword [edx + ecx*4 - 0x44], eax
mov eax, dword [esp + 0x40]
lea ecx, [eax + eax*4]
shl ecx, 2
push ecx
call sub.MSVCRT.DLL_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [ebx + 4]
mov edx, ecx
shl edx, 4
add edx, ecx
mov ecx, dword [ebx]
mov dword [ecx + edx*4 - 0x40], eax
mov eax, dword [esp + 0x44]
lea edx, [eax + eax*2]
shl edx, 2
push edx
call sub.MSVCRT.DLL_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [ebx + 4]
add esp, 0x28
mov edx, ecx
shl edx, 4
add edx, ecx
mov ecx, dword [ebx]
mov dword [ecx + edx*4 - 0x3c], eax
mov eax, dword [esp + 0x74]
cmp eax, 1
je 0x407b77
cmp eax, 0x12071980
je 0x407b77
cmp eax, 0x240e3300
jne 0x407a8b
mov edx, dword [esp + 0x20]
shl edx, 6
push edx
call sub.MSVCRT.DLL_void____cdecl_operator_new_unsigned_int_
mov edi, eax
mov eax, dword [esp + 0x24]
push ebp
push eax
push 0x40
push edi
mov dword [esp + 0x2c], edi
call esi
mov eax, dword [esp + 0x34]
add esp, 0x14
test eax, eax
mov dword [esp + 0x1c], 0
jbe 0x40768c
xor esi, esi
xor ecx, ecx
lea eax, [edi + 0x38]
mov edx, dword [ebx + 4]
lea edi, [eax - 0x34]
mov ebp, edx
shl ebp, 4
add ebp, edx
mov edx, dword [ebx]
mov edx, dword [edx + ebp*4 - 0x40]
mov ebp, dword [edi]
add edx, ecx
add ecx, 0x14
mov dword [edx], ebp
mov ebp, dword [edi + 4]
mov dword [edx + 4], ebp
mov edi, dword [edi + 8]
mov dword [edx + 8], edi
mov edx, dword [ebx + 4]
mov edi, edx
shl edi, 4
add edi, edx
mov edx, dword [ebx]
mov edx, dword [edx + edi*4 - 0x40]
mov edi, dword [eax]
mov dword [edx + ecx - 8], edi
mov edx, dword [ebx + 4]
mov edi, edx
shl edi, 4
add edi, edx
mov edx, dword [ebx]
mov edx, dword [edx + edi*4 - 0x40]
mov edi, dword [eax + 4]
mov dword [edx + ecx - 4], edi
mov edx, dword [ebx + 4]
mov ebp, edx
lea edi, [eax - 0x28]
shl ebp, 4
add ebp, edx
mov edx, dword [ebx]
add eax, 0x40
mov edx, dword [edx + ebp*4 - 0x3c]
mov ebp, dword [edi]
add edx, esi
add esi, 0xc
mov dword [edx], ebp
mov ebp, dword [edi + 4]
mov dword [edx + 4], ebp
mov edi, dword [edi + 8]
mov dword [edx + 8], edi
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
inc edx
cmp edx, edi
mov dword [esp + 0x1c], edx
jb 0x4079ed
mov edi, dword [esp + 0x18]
jmp 0x407685
cmp eax, 0x112
jne 0x40769b
mov eax, dword [esp + 0x20]
shl eax, 5
push eax
call sub.MSVCRT.DLL_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [esp + 0x24]
push ebp
mov edi, eax
push ecx
push 0x20
push edi
mov dword [esp + 0x2c], edi
call esi
mov eax, dword [esp + 0x34]
add esp, 0x14
test eax, eax
mov dword [esp + 0x1c], 0
jbe 0x40768c
xor esi, esi
xor ecx, ecx
lea eax, [edi + 0x1c]
mov edx, dword [ebx + 4]
lea edi, [eax - 0x1c]
mov ebp, edx
shl ebp, 4
add ebp, edx
mov edx, dword [ebx]
mov edx, dword [edx + ebp*4 - 0x40]
mov ebp, dword [edi]
add edx, ecx
add ecx, 0x14
mov dword [edx], ebp
mov ebp, dword [edi + 4]
mov dword [edx + 4], ebp
mov edi, dword [edi + 8]
mov dword [edx + 8], edi
mov edx, dword [ebx + 4]
mov edi, edx
shl edi, 4
add edi, edx
mov edx, dword [ebx]
mov edx, dword [edx + edi*4 - 0x40]
mov edi, dword [eax - 4]
mov dword [edx + ecx - 8], edi
mov edx, dword [ebx + 4]
mov edi, edx
shl edi, 4
add edi, edx
mov edx, dword [ebx]
mov edx, dword [edx + edi*4 - 0x40]
mov edi, dword [eax]
mov dword [edx + ecx - 4], edi
mov edx, dword [ebx + 4]
mov ebp, edx
lea edi, [eax - 0x10]
shl ebp, 4
add ebp, edx
mov edx, dword [ebx]
add eax, 0x20
mov edx, dword [edx + ebp*4 - 0x3c]
mov ebp, dword [edi]
add edx, esi
add esi, 0xc
mov dword [edx], ebp
mov ebp, dword [edi + 4]
mov dword [edx + 4], ebp
mov edi, dword [edi + 8]
mov dword [edx + 8], edi
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
inc edx
cmp edx, edi
mov dword [esp + 0x1c], edx
jb 0x407ad2
mov ebp, dword [esp + 0xc8]
mov edi, dword [esp + 0x18]
jmp 0x40768c
mov eax, dword [esp + 0x20]
lea eax, [eax + eax*8]
shl eax, 2
push eax
call sub.MSVCRT.DLL_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [esp + 0x24]
push ebp
mov edi, eax
push ecx
push 0x24
push edi
mov dword [esp + 0x2c], edi
call esi
mov eax, dword [esp + 0x34]
add esp, 0x14
test eax, eax
mov dword [esp + 0x1c], 0
jbe 0x40768c
xor esi, esi
xor ecx, ecx
lea eax, [edi + 0x1c]
mov edx, dword [ebx + 4]
lea edi, [eax - 0x1c]
mov ebp, edx
shl ebp, 4
add ebp, edx
mov edx, dword [ebx]
mov edx, dword [edx + ebp*4 - 0x40]
mov ebp, dword [edi]
add edx, ecx
add ecx, 0x14
mov dword [edx], ebp
mov ebp, dword [edi + 4]
mov dword [edx + 4], ebp
mov edi, dword [edi + 8]
mov dword [edx + 8], edi
mov edx, dword [ebx + 4]
mov edi, edx
shl edi, 4
add edi, edx
mov edx, dword [ebx]
mov edx, dword [edx + edi*4 - 0x40]
mov edi, dword [eax - 4]
mov dword [edx + ecx - 8], edi
mov edx, dword [ebx + 4]
mov edi, edx
shl edi, 4
add edi, edx
mov edx, dword [ebx]
mov edx, dword [edx + edi*4 - 0x40]
mov edi, dword [eax]
mov dword [edx + ecx - 4], edi
mov edx, dword [ebx + 4]
mov ebp, edx
lea edi, [eax - 0x10]
shl ebp, 4
add ebp, edx
mov edx, dword [ebx]
add eax, 0x24
mov edx, dword [edx + ebp*4 - 0x3c]
mov ebp, dword [edi]
add edx, esi
add esi, 0xc
mov dword [edx], ebp
mov ebp, dword [edi + 4]
mov dword [edx + 4], ebp
mov edi, dword [edi + 8]
mov dword [edx + 8], edi
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
inc edx
cmp edx, edi
mov dword [esp + 0x1c], edx
jb 0x407bb6
mov edi, dword [esp + 0x18]
jmp 0x407685
cmp dword [ebx + 0x18], 0x3333
jne case.default.0x406dee
push ebp
push 1
lea eax, [esp + 0x30]
push 4
push eax
call esi
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
mov ecx, eax
shl ecx, 4
add ecx, eax
mov eax, dword [esp + 0x38]
mov dword [edx + ecx*4 - 0x38], eax
mov ecx, dword [esp + 0x38]
lea edx, [ecx + ecx]
push edx
call sub.MSVCRT.DLL_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [ebx + 4]
push ebp
mov edx, ecx
shl edx, 4
add edx, ecx
mov ecx, dword [ebx]
mov dword [ecx + edx*4 - 0x34], eax
mov eax, dword [ebx + 4]
mov edx, dword [esp + 0x40]
mov ecx, eax
shl ecx, 4
push edx
mov edx, dword [ebx]
add ecx, eax
push 2
mov eax, dword [edx + ecx*4 - 0x34]
push eax
call esi
add esp, 0x24
jmp 0x40769b
push ebp
call dword [sym.imp.MSVCRT.DLL_ftell]
mov ecx, dword [esp + 0x38]
push 0
add eax, ecx
push eax
push ebp
mov dword [esp + 0xdc], eax
call dword [sym.imp.MSVCRT.DLL_fseek]
add esp, 0x10
jmp 0x40769b