Function at 0x51a760
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xa78
mov eax, dword [0x5f3008]
xor eax, esp
mov dword [esp + 0xa74], eax
mov edx, dword [ebp + 0xc]
mov ecx, 0x228
mov eax, dword [ebp + 8]
push esi
push edi
mov esi, edx
mov dword [esp + 0xfc], eax
mov eax, dword [0x6167b8]
lea edi, [esp + 0x1d8]
rep movsd dword es:[edi], dword [esi]
push 0x4004
mov dword [esp + 0x48], edx
mov dword [esp + 0x44], eax
call fcn.00560858
add esp, 4
mov dword [esp + 0x68], eax
push 0x4004
call fcn.00560858
mov esi, dword [esp + 0x44]
add esp, 4
mov dword [esp + 0x6c], eax
mov ecx, dword [esi + 0x390]
push ecx
mov edx, dword [ecx]
call dword [edx + 0xc0]
mov edx, dword [esp + 0x44]
movss xmm1, dword [0x5ea6d4]
mov dword [esp + 0xcc], 0x3f800000
movzx ecx, byte [edx + 0x806]
movzx eax, byte [edx + 0x807]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0x808]
shl ecx, 8
lea edx, [esp + 0xc0]
or ecx, eax
mov eax, ecx
shr eax, 0x10
push edx
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x5ea8e0]
mov eax, ecx
shr eax, 8
movzx eax, al
cvtpd2ps xmm0, xmm0
divss xmm0, xmm1
movss dword [esp + 0xc4], xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x5ea8e0]
movzx eax, cl
cvtpd2ps xmm0, xmm0
divss xmm0, xmm1
movss dword [esp + 0xc8], xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x5ea8e0]
mov eax, dword [esi + 0x390]
push eax
cvtpd2ps xmm0, xmm0
divss xmm0, xmm1
movss dword [esp + 0xd0], xmm0
mov ecx, dword [eax]
call dword [ecx + 0xbc]
mov eax, dword [esi + 0x390]
lea edx, [esp + 0x180]
movaps xmm0, xmmword [0x5ea820]
movups xmmword [esp + 0x180], xmm0
mov dword [esp + 0x190], 0
mov dword [esp + 0x194], 0
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x78]
mov eax, dword [esi + 0x217f8]
add eax, dword [esi + 0x217e8]
mov dword [esp + 0x1a0], eax
mov eax, dword [esi + 0x217fc]
lea edx, [esi + 0x10]
add eax, dword [esi + 0x217ec]
movsd xmm2, qword [0x5ea528]
mov dword [esp + 0x1a4], eax
mov eax, dword [esi + 0x217f0]
sub eax, dword [esi + 0x21800]
mov dword [esp + 0x1a8], eax
mov eax, dword [esi + 0x217f4]
sub eax, dword [esi + 0x21804]
cmp dword [edx + 4], 0
mov dword [esp + 0x1ac], eax
jne 0x51aaea
cmp dword [edx + 0xc], 0
jne 0x51aaea
cmp dword [edx], 0
jne 0x51aaea
cmp dword [edx + 8], 0
jne 0x51aaea
cmp dword [esi + 0x24], 0
lea ecx, [esi + 0x20]
jne 0x51a9a0
cmp dword [ecx + 0xc], 0
jne 0x51a9a0
cmp dword [ecx], 0
jne 0x51a9a0
cmp dword [ecx + 8], 0
jne 0x51a9a0
movaps xmm0, xmmword [esp + 0x1a0]
movaps xmmword [esp + 0x20], xmm0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x8c], eax
mov dword [esp + 0xec], ecx
jmp 0x51ac5a
cmp byte [ebp + 0x14], 0
movups xmm0, xmmword [ecx]
movups xmmword [esp + 0x20], xmm0
jne 0x51aa09
mov eax, dword [esi]
mov eax, dword [eax + 0x28]
cmp word [eax + 0x5a], 1
je 0x51aa09
mov eax, dword [esi + 0x217e4]
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x28]
movsx eax, word [eax + 4]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
mulsd xmm1, xmm2
addsd xmm1, qword [0x5ea578]
movaps xmm0, xmm1
mulsd xmm1, qword [0x5ea600]
mulsd xmm0, qword [0x5ea728]
cvttsd2si eax, xmm0
add edx, eax
cvttsd2si eax, xmm1
mov dword [esp + 0x70], edx
add edi, eax
mov dword [esp + 0x48], edi
jmp 0x51aa56
mov eax, dword [esi + 0x217e4]
mov edx, dword [esp + 0x20]
movsx eax, word [eax + 4]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
mulsd xmm1, xmm2
addsd xmm1, qword [0x5ea578]
movaps xmm0, xmm1
mulsd xmm1, qword [0x5ea5f0]
mulsd xmm0, qword [0x5ea720]
cvttsd2si eax, xmm0
add edx, eax
cvttsd2si eax, xmm1
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x28]
add edx, eax
mov dword [esp + 0x48], edx
lea eax, [esp + 0x1a0]
push eax
push ecx
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
jne 0x51aacf
movd xmm1, dword [esi + 0x39c]
lea edx, [esp + 0x180]
cvtdq2ps xmm1, xmm1
mov dword [esp + 0x194], eax
mov eax, dword [esi + 0x390]
push edx
push eax
movaps xmm0, xmmword [0x5ea820]
divss xmm1, dword [esi + 0x3a0]
movups xmmword [esp + 0x188], xmm0
movss dword [esp + 0x198], xmm1
mov ecx, dword [eax]
call dword [ecx + 0x78]
mov eax, dword [esi + 0x390]
push 0
push 1
mov ecx, dword [eax]
push ecx
mov dword [esp], 0x3f800000
push 0
push dword [esi + 0x388]
push eax
call dword [ecx + 0x68]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x8c], eax
mov dword [esp + 0xec], ecx
jmp 0x51ac6a
cmp byte [ebp + 0x14], 0
movups xmm0, xmmword [edx]
movups xmmword [esp + 0x20], xmm0
jne 0x51ab59
mov eax, dword [esi]
mov eax, dword [eax + 0x28]
cmp word [eax + 0x5a], 0
je 0x51ab59
mov eax, dword [esi + 0x217e4]
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x2c]
movsx eax, word [eax + 4]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
mulsd xmm1, xmm2
addsd xmm1, qword [0x5ea578]
movaps xmm0, xmm1
mulsd xmm1, qword [0x5ea600]
mulsd xmm0, qword [0x5ea728]
cvttsd2si eax, xmm0
add ecx, eax
cvttsd2si eax, xmm1
mov dword [esp + 0xec], ecx
add edi, eax
mov dword [esp + 0x8c], edi
jmp 0x51abac
mov eax, dword [esi + 0x217e4]
mov ecx, dword [esp + 0x24]
movsx eax, word [eax + 4]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
mulsd xmm1, xmm2
addsd xmm1, qword [0x5ea578]
movaps xmm0, xmm1
mulsd xmm1, qword [0x5ea5f0]
mulsd xmm0, qword [0x5ea720]
cvttsd2si eax, xmm0
add ecx, eax
cvttsd2si eax, xmm1
mov dword [esp + 0xec], ecx
mov ecx, dword [esp + 0x2c]
add ecx, eax
mov dword [esp + 0x8c], ecx
lea eax, [esp + 0x1a0]
push eax
push edx
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
je 0x51abe7
cmp byte [ebp + 0x14], 0
mov edx, dword [esp + 0x20]
mov dword [esp + 0x70], edx
jne 0x51ac62
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x1c]
mov dword [esp + 0xec], ecx
mov dword [esp + 0x8c], eax
jmp 0x51ac62
cmp dword [esi + 0x388], 0
je 0x51ac5a
movd xmm1, dword [esi + 0x39c]
lea edx, [esp + 0x180]
cvtdq2ps xmm1, xmm1
mov eax, dword [esi + 0x390]
mov dword [esp + 0x190], 0
push edx
push eax
movaps xmm0, xmmword [0x5ea820]
divss xmm1, dword [esi + 0x3a0]
movups xmmword [esp + 0x188], xmm0
movss dword [esp + 0x19c], xmm1
mov ecx, dword [eax]
call dword [ecx + 0x78]
mov eax, dword [esi + 0x390]
push 0
push 1
mov ecx, dword [eax]
push ecx
mov dword [esp], 0x3f800000
push 0
push dword [esi + 0x388]
push eax
call dword [ecx + 0x68]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x70], edx
mov eax, dword [esp + 0x28]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x9c]
mov ecx, esi
push eax
push dword [esp + 0x100]
lea eax, [esp + 0x1a8]
push eax
call fcn.0051d530
cmp dword [esi + 0x14], 0
mov edi, eax
mov dword [esp + 0x30], edi
mov dword [esp + 0xf8], edi
jne 0x51ad18
cmp dword [esi + 0x1c], 0
jne 0x51ad18
cmp dword [esi + 0x10], 0
jne 0x51ad18
cmp dword [esi + 0x18], 0
jne 0x51ad18
cmp dword [esi + 0x24], 0
jne 0x51acc9
cmp dword [esi + 0x2c], 0
jne 0x51acc9
cmp dword [esi + 0x20], 0
jne 0x51acc9
cmp dword [esi + 0x28], 0
je 0x51add6
mov eax, dword [esi + 0x390]
lea edx, [esp + 0x100]
movaps xmm0, xmmword [0x5ea820]
movups xmmword [esp + 0x100], xmm0
mov dword [esp + 0x110], 0
mov dword [esp + 0x114], 0
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x78]
movd xmm4, dword [esi + 0x2c]
movd xmm3, dword [esi + 0x28]
movd xmm1, dword [esi + 0x24]
movd xmm0, dword [esi + 0x20]
jmp 0x51ad65
mov eax, dword [esi + 0x390]
lea edx, [esp + 0x100]
movaps xmm0, xmmword [0x5ea820]
movups xmmword [esp + 0x100], xmm0
mov dword [esp + 0x110], 0
mov dword [esp + 0x114], 0
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x78]
movd xmm4, dword [esi + 0x1c]
movd xmm3, dword [esi + 0x18]
movd xmm1, dword [esi + 0x14]
movd xmm0, dword [esi + 0x10]
movss xmm2, dword [esi + 0x3a0]
lea edx, [esp + 0x180]
cvtdq2ps xmm0, xmm0
mov eax, dword [esi + 0x390]
push 0
push edx
push eax
cvtdq2ps xmm1, xmm1
cvtdq2ps xmm3, xmm3
cvtdq2ps xmm4, xmm4
divss xmm0, xmm2
divss xmm1, xmm2
divss xmm3, xmm2
divss xmm4, xmm2
movss dword [esp + 0xcc], xmm0
movss dword [esp + 0xd0], xmm1
movss dword [esp + 0xd4], xmm3
movss dword [esp + 0xd8], xmm4
movaps xmm0, xmmword [esp + 0xcc]
movaps xmmword [esp + 0x18c], xmm0
mov ecx, dword [eax]
call dword [ecx + 0xb4]
test edi, edi
je 0x51bf57
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x90], 0x200d
mov dword [esp + 0x64], eax
movups xmm0, xmmword [edi + 8]
mov edx, dword [esp + 0xfc]
movaps xmmword [esp + 0xc0], xmm0
mov eax, dword [esp + 0xcc]
sub eax, dword [edx + 4]
mov ecx, dword [edx]
inc eax
sub dword [esp + 0xc0], ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0xcc], eax
mov eax, 1
sub eax, ecx
psrldq xmm0, 4
mov ecx, dword [esp + 0xc8]
add ecx, eax
movd edi, xmm0
mov dword [esp + 0x58], ecx
mov dword [esp + 0xc8], ecx
sub edi, dword [edx + 4]
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x54], edi
mov dword [esp + 0xc4], edi
cmp edi, ecx
jge 0x51bf57
mov edx, dword [esp + 0xec]
cmp edi, edx
mov esi, dword [esp + 0x70]
mov eax, esi
cmovge edx, edi
cmp dword [esp + 0x38], ecx
mov edi, ecx
mov dword [esp + 0x174], edx
cmovle edi, dword [esp + 0x38]
cmp dword [esp + 0xc0], esi
mov ecx, dword [esp + 0x48]
mov esi, ecx
cmovge eax, dword [esp + 0xc0]
cmp dword [esp + 0x58], esi
mov esi, dword [esp + 0x40]
cmovle ecx, dword [esp + 0x58]
mov dword [esp + 0x17c], edi
mov dword [esp + 0x170], eax
mov dword [esp + 0x178], ecx
cmp edi, edx
jl 0x51bf15
cmp ecx, eax
jl 0x51bf15
test edx, edx
jne 0x51aee6
test edi, edi
jne 0x51aee6
test eax, eax
jne 0x51aee6
test ecx, ecx
je case.default.0x51bc39
mov eax, dword [esp + 0x38]
cmp eax, dword [esp + 0x1a4]
jl case.default.0x51bc39
mov edi, dword [esp + 0x44]
lea edx, [esp + 0x130]
movss xmm1, dword [0x5ea6d4]
mov dword [esp + 0x13c], 0x3f800000
push edx
movzx ecx, byte [edi + 0x7fd]
movzx eax, byte [edi + 0x7fe]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0x7ff]
shl ecx, 8
or ecx, eax
mov eax, ecx
shr eax, 0x10
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x5ea8e0]
mov eax, ecx
shr eax, 8
movzx eax, al
cvtpd2ps xmm0, xmm0
divss xmm0, xmm1
movss dword [esp + 0x134], xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x5ea8e0]
movzx eax, cl
cvtpd2ps xmm0, xmm0
divss xmm0, xmm1
movss dword [esp + 0x138], xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x5ea8e0]
mov eax, dword [esi + 0x394]
push eax
cvtpd2ps xmm0, xmm0
divss xmm0, xmm1
movss dword [esp + 0x140], xmm0
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov eax, dword [esp + 0x38]
lea edx, [esp + 0xa0]
movd xmm1, dword [esp + 0x54]
dec eax
movd xmm0, dword [esp + 0xc0]
movss xmm3, dword [esi + 0x3a0]
cvtdq2ps xmm0, xmm0
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], 0
push edx
movd xmm4, eax
mov eax, dword [esp + 0x5c]
dec eax
cvtdq2ps xmm4, xmm4
movd xmm2, eax
cvtdq2ps xmm2, xmm2
mov eax, dword [esi + 0x390]
push eax
cvtdq2ps xmm1, xmm1
divss xmm0, xmm3
divss xmm4, xmm3
divss xmm2, xmm3
divss xmm1, xmm3
movss dword [esp + 0x108], xmm0
movss dword [esp + 0x10c], xmm1
movss dword [esp + 0x110], xmm2
movss dword [esp + 0x114], xmm4
movaps xmm0, xmmword [esp + 0x108]
movaps xmmword [esp + 0x188], xmm0
movaps xmm0, xmmword [0x5ea820]
movups xmmword [esp + 0xa8], xmm0
mov ecx, dword [eax]
call dword [ecx + 0x78]
mov eax, dword [esi + 0x390]
lea edx, [esp + 0x180]
push dword [esi + 0x394]
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
cmp byte [ebp + 0x14], 0
jne 0x51b0c1
cmp dword [esi + 0x33c], 0
je 0x51b0c1
mov eax, dword [esi + 0x390]
lea edx, [esp + 0x180]
push 0
push 1
mov ecx, dword [eax]
push ecx
mov dword [esp], 0x3f800000
push edx
push dword [esi + 0x340]
push eax
call dword [ecx + 0x68]
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx + 0x28]
movups xmm0, xmmword [eax + 0x110]
mov eax, dword [esi + 0x217e4]
movups xmmword [eax + 0x28], xmm0
mov eax, dword [ecx + 0x28]
cmp word [eax + 0x5a], 1
jne 0x51b0eb
sub dword [esp + 0x170], 0x64
sub esp, 0x14
xorps xmm0, xmm0
movups xmmword [esp + 4], xmm0
movss xmm0, dword [esi + 0x3a0]
movss dword [esp], xmm0
push dword [esi + 0x398]
push ecx
mov ecx, dword [esi + 0x394]
mov eax, esp
mov dword [eax], ecx
test ecx, ecx
je 0x51b11e
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
push ecx
mov ecx, dword [esi + 0x390]
mov eax, esp
mov dword [eax], ecx
test ecx, ecx
je 0x51b133
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
push ecx
mov ecx, dword [esi + 0x38c]
mov eax, esp
mov dword [eax], ecx
test ecx, ecx
je 0x51b148
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
push dword [esi + 0x380]
lea eax, [esp + 0x200]
push dword [esi + 0x37c]
sub esp, 8
push dword [ebp + 0x10]
push ecx
mov ecx, dword [esp + 0x6c]
push eax
push dword [esi + 0x21838]
lea eax, [esp + 0x1b4]
push eax
push dword [esp + 0x144]
push dword [esi + 0x217e4]
call fcn.0052fca0
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x64]
cmp eax, dword [esi + 8]
jne 0x51b19a
mov dword [esi + 0x217d8], edx
mov ecx, dword [eax + 0x28]
movsd xmm7, qword [0x5ea530]
cmp byte [ecx + 0x546], 0
movups xmm0, xmmword [ecx + 0xa0]
movups xmmword [esp + 0x140], xmm0
movups xmm0, xmmword [ecx + 0xb0]
movups xmmword [esp + 0x150], xmm0
je 0x51b1d4
movaps xmm1, xmm7
movaps xmm3, xmm7
jmp 0x51b1e6
movsd xmm3, qword [esp + 0x150]
movsd xmm1, qword [esp + 0x140]
cmp byte [ecx + 0x547], 0
je 0x51b1f7
movaps xmm5, xmm7
movaps xmm6, xmm7
jmp 0x51b209
movsd xmm6, qword [esp + 0x158]
movsd xmm5, qword [esp + 0x148]
cmp byte [ecx + 0x62], 0
je 0x51b252
mov eax, edx
and eax, reloc.d2d1.dll_Ordinal_1
jns 0x51b21f
dec eax
or eax, 0xfffffffe
add eax, 1
jne 0x51b252
movzx eax, word [ecx + 0x5e]
cmp ax, 1
jne 0x51b232
cmp word [ecx + 0x5c], 0
jmp 0x51b23c
test ax, ax
jne 0x51b249
cmp word [ecx + 0x5c], 1
jne 0x51b249
movaps xmm0, xmm6
movaps xmm6, xmm5
movaps xmm5, xmm0
jmp 0x51b252
movaps xmm0, xmm3
movaps xmm3, xmm1
movaps xmm1, xmm0
cmp word [ecx + 0x98], 0
mov eax, dword [esi + 0x217e4]
movsd xmm0, qword [eax + 0x28]
movsd xmm4, qword [eax + 0x38]
jne 0x51b314
movsd xmm2, qword [eax + 0x60]
mulsd xmm1, xmm0
mulsd xmm1, xmm4
divsd xmm1, xmm2
comisd xmm1, xmmword [0x5ea4b0]
jb 0x51b291
addsd xmm1, xmm7
jmp 0x51b295
subsd xmm1, xmm7
mulsd xmm0, xmm3
cvttsd2si edx, xmm1
mulsd xmm0, xmm4
xorps xmm4, xmm4
mov dword [esp + 0x20], edx
divsd xmm0, xmm2
comisd xmm0, xmm4
jb 0x51b2b8
addsd xmm0, xmm7
jmp 0x51b2bc
subsd xmm0, xmm7
movsd xmm3, qword [eax + 0x40]
cvttsd2si edx, xmm0
movsd xmm0, qword [eax + 0x30]
movaps xmm1, xmm0
mov dword [esp + 0x28], edx
mulsd xmm1, xmm5
mulsd xmm1, xmm3
divsd xmm1, xmm2
comisd xmm1, xmm4
jb 0x51b2e9
addsd xmm1, xmm7
jmp 0x51b2ed
subsd xmm1, xmm7
mulsd xmm0, xmm6
cvttsd2si eax, xmm1
mulsd xmm0, xmm3
mov dword [esp + 0x24], eax
divsd xmm0, xmm2
comisd xmm0, xmm4
jb 0x51b39f
addsd xmm0, xmm7
jmp 0x51b3a3
movaps xmm2, xmm0
mulsd xmm2, xmm1
mulsd xmm2, xmm4
comisd xmm2, xmmword [0x5ea4b0]
jb 0x51b32f
addsd xmm2, xmm7
jmp 0x51b333
subsd xmm2, xmm7
mulsd xmm0, xmm3
cvttsd2si edx, xmm2
mulsd xmm0, xmm4
xorps xmm4, xmm4
mov dword [esp + 0x20], edx
comisd xmm0, xmm4
jb 0x51b352
addsd xmm0, xmm7
jmp 0x51b356
subsd xmm0, xmm7
movsd xmm2, qword [eax + 0x40]
cvttsd2si edx, xmm0
movsd xmm0, qword [eax + 0x30]
movaps xmm1, xmm0
mov dword [esp + 0x28], edx
mulsd xmm1, xmm5
mulsd xmm1, xmm2
comisd xmm1, xmm4
jb 0x51b37f
addsd xmm1, xmm7
jmp 0x51b383
subsd xmm1, xmm7
mulsd xmm0, xmm6
cvttsd2si eax, xmm1
mulsd xmm0, xmm2
mov dword [esp + 0x24], eax
comisd xmm0, xmm4
jb 0x51b39f
addsd xmm0, xmm7
jmp 0x51b3a3
subsd xmm0, xmm7
cmp byte [ecx + 0x108], 0
cvttsd2si eax, xmm0
mov dword [esp + 0x2c], eax
je 0x51b460
movups xmm0, xmmword [ecx + 0xc0]
movzx eax, word [edi + 0x3e]
movups xmmword [esp + 0xa0], xmm0
cmp ax, 8
jne 0x51b40e
lea eax, [esp + 0x1d8]
push eax
push dword [esp + 0x68]
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0xcc]
push eax
lea eax, [esp + 0xb0]
push eax
movzx eax, word [ecx + 0x10a]
mov ecx, esi
push eax
call fcn.0051dd20
mov ecx, dword [esp + 0xcc]
mov dword [esp + 0x38], ecx
jmp 0x51b442
lea ecx, [esp + 0x1d8]
push ecx
push dword [esp + 0x68]
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0xcc]
push ecx
lea ecx, [esp + 0xb0]
push ecx
push eax
mov ecx, esi
call fcn.0051dd20
mov eax, dword [esp + 0xcc]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0xc8]
movsd xmm7, qword [0x5ea530]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0xc4]
mov dword [esp + 0x54], eax
cmp byte [ebp + 0x14], 0
je 0x51b729
cmp byte [edi + 0x780], 0
je case.default.0x51bc39
mov eax, dword [esp + 0x30]
xor edi, edi
xor dl, dl
mov dword [esp + 0x10], 0
mov dword [esp + 0x38], edx
mov dword [esp + 8], edi
mov ecx, dword [eax + 0x28]
lea eax, [ecx + 0x120]
mov dword [esp + 0xf0], eax
cmp word [eax], di
je 0x51b553
mov esi, dword [esp + 0x10]
mov eax, 0x120
mov edi, eax
movzx eax, word [eax + ecx]
mov ecx, eax
mov dword [esp + 0xc], ecx
cmp ax, word [esp + 0x90]
jne 0x51b4ce
mov edx, 1
jmp 0x51b525
mov eax, esi
and eax, 0xfc00
cmp eax, 0xd800
jne 0x51b529
mov eax, ecx
and eax, 0xfc00
cmp eax, 0xdc00
jne 0x51b529
movzx eax, si
mov ecx, eax
movzx edx, dl
and ecx, 0x3c0
and eax, 0x3f
shl eax, 0xa
add ecx, 0x40
shl ecx, 0xa
or ecx, eax
mov eax, dword [esp + 0xc]
and eax, 0x3ff
or eax, ecx
mov ecx, dword [esp + 0xc]
add eax, 0xfffe0c05
cmp eax, 4
mov eax, 1
cmovbe edx, eax
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x30]
add edi, 2
inc dword [esp + 8]
mov eax, edi
movzx esi, cx
mov ecx, dword [edx + 0x28]
mov edx, dword [esp + 0x38]
cmp word [edi + ecx], 0
jne 0x51b4b3
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 8]
mov eax, dword [esi + 0x217e4]
movsd xmm0, qword [esp + 0x960]
addsd xmm0, xmm7
mov edx, dword [esp + 0x44]
push 1
mov dword [esp + 0x40], 0
mov dword [esp + 0x38], 8
movzx ecx, byte [edx + 0x803]
mulsd xmm0, qword [eax + 0x28]
shl ecx, 8
mulsd xmm0, qword [eax + 0x38]
divsd xmm0, qword [eax + 0x60]
cvtpd2ps xmm0, xmm0
movss dword [esp + 0x10], xmm0
movsd xmm0, qword [esp + 0x96c]
addsd xmm0, qword [0x5ea528]
mulsd xmm0, qword [eax + 0x28]
mulsd xmm0, qword [eax + 0x38]
divsd xmm0, qword [eax + 0x60]
movzx eax, byte [edx + 0x804]
or ecx, eax
movzx eax, byte [edx + 0x805]
mov edx, dword [esi + 0x21858]
shl ecx, 8
or ecx, eax
movzx eax, di
push ecx
mov dword [esp + 0x18], ecx
mov edi, eax
mov ecx, dword [esp + 0xf8]
cvtpd2ps xmm0, xmm0
movss dword [esp + 0x10], xmm0
movss xmm0, dword [esi + 0x3a0]
movss dword [esp], xmm0
push eax
push dword [esp + 0x78]
push dword [esp + 0x78]
call fcn.0040ec40
mov eax, dword [esp + 0x44]
add esp, 0x14
cmp byte [esp + 0x38], 0
movss xmm0, dword [esi + 0x3a0]
mov ecx, dword [esp + 0x6c]
mov edx, dword [eax + 0x28]
mov eax, dword [esp + 0x68]
mov byte [esp + 0x12c], 0
jne 0x51b641
mov byte [esp + 0x12c], 1
push dword [esp + 0x12c]
push ecx
movss dword [esp], xmm0
push edi
push ecx
lea ecx, [edx + 0x120]
mov edx, dword [esi + 0x21858]
push eax
call fcn.0040ec40
mov eax, dword [esi + 0x21858]
add esp, 0x14
mov ecx, dword [esp + 0xc0]
push dword [esp + 0x10]
mov byte [eax + 0xf1], 1
mov eax, dword [esp + 0x28]
sub esp, 0x14
add eax, dword [esp + 0x6c]
movss xmm0, dword [esi + 0x3a0]
movss dword [esp + 8], xmm0
movd xmm0, eax
mov eax, dword [esp + 0x38]
cvtdq2ps xmm0, xmm0
add eax, ecx
subss xmm0, dword [esp + 0x20]
movss dword [esp + 4], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
addss xmm0, dword [esp + 0x24]
movss dword [esp], xmm0
push 8
push ecx
mov ecx, dword [esi + 0x394]
mov eax, esp
mov dword [eax], ecx
test ecx, ecx
je 0x51b6d8
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov ecx, dword [esi + 0x37c]
push ecx
mov eax, esp
mov dword [eax], ecx
test ecx, ecx
je 0x51b6ed
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov ecx, dword [esi + 0x380]
push ecx
mov eax, esp
mov dword [eax], ecx
test ecx, ecx
je 0x51b702
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
push ecx
mov ecx, dword [esi + 0x390]
mov eax, esp
mov dword [eax], ecx
test ecx, ecx
je 0x51b717
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov ecx, dword [esi + 0x21858]
xor edx, edx
call fcn.0043a210
jmp case.default.0x51bc39
lea eax, [esp + 0xf4]
push eax
mov eax, dword [esp + 0x34]
push dword [esp + 0x68]
mov ecx, dword [eax + 0x28]
call fcn.00537120
mov edx, dword [esp + 0x30]
movzx ecx, ax
mov dword [esp + 0xf0], ecx
mov eax, dword [edx + 0x18]
mov dword [esp + 0xc], eax
test eax, eax
je 0x51b9e9
cmp byte [edi + 0x780], 0
je 0x51b9e9
test cx, cx
je 0x51b9e9
xor ecx, ecx
xor edi, edi
xor dl, dl
mov dword [esp + 8], edi
cmp word [eax], cx
je 0x51b812
mov esi, edi
xor eax, eax
mov edi, dword [esp + 0xc]
nop
movzx eax, word [eax + edi]
mov edi, eax
cmp ax, word [esp + 0x90]
jne 0x51b7a4
mov dl, 1
jmp 0x51b7f5
mov eax, ecx
and eax, 0xfc00
cmp eax, 0xd800
jne 0x51b7f5
mov eax, edi
and eax, 0xfc00
cmp eax, 0xdc00
jne 0x51b7f5
movzx eax, cx
mov ecx, eax
movzx edx, dl
and eax, 0x3f
and ecx, 0x3c0
shl eax, 0xa
add ecx, 0x40
shl ecx, 0xa
or ecx, eax
mov eax, edi
and eax, 0x3ff
or eax, ecx
add eax, 0xfffe0c05
cmp eax, 4
mov eax, 1
cmovbe edx, eax
inc esi
mov ecx, edi
mov edi, dword [esp + 0xc]
lea eax, [esi + esi]
cmp word [eax + edi], 0
jne 0x51b790
mov dword [esp + 8], esi
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 8]
movsd xmm0, qword [esp + 0x960]
xor ecx, ecx
cmp word [esp + 0xf0], 1
addsd xmm0, xmm7
mov eax, 2
cmove eax, ecx
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0x217e4]
mulsd xmm0, qword [eax + 0x28]
mulsd xmm0, qword [eax + 0x38]
divsd xmm0, qword [eax + 0x60]
cvtpd2ps xmm0, xmm0
movss dword [esp + 0x10], xmm0
movsd xmm0, qword [esp + 0x968]
addsd xmm0, qword [0x5ea528]
mulsd xmm0, qword [eax + 0x30]
mulsd xmm0, qword [eax + 0x40]
divsd xmm0, qword [eax + 0x60]
mov eax, dword [esp + 0x44]
movzx ecx, byte [eax + 0x803]
movzx eax, byte [eax + 0x804]
shl ecx, 8
or ecx, eax
mov eax, dword [esp + 0x44]
shl ecx, 8
movzx eax, byte [eax + 0x805]
or ecx, eax
movzx eax, di
mov edi, dword [esp + 0x6c]
test dl, dl
mov edx, dword [esi + 0x21858]
mov dword [esp + 0xa0], eax
sete al
movzx eax, al
push eax
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x6c]
push ecx
cvtpd2ps xmm0, xmm0
movss dword [esp + 0x3c], xmm0
movss xmm0, dword [esi + 0x3a0]
movss dword [esp], xmm0
push dword [esp + 0xa8]
push edi
push ecx
mov ecx, dword [esp + 0x20]
call fcn.0040ec40
movss xmm0, dword [esi + 0x3a0]
add esp, 0x14
mov eax, dword [esp + 0x24]
push dword [esp + 8]
sub esp, 0x14
cmp word [esp + 0x108], 1
movss dword [esp + 8], xmm0
jne 0x51b945
add eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0xd8]
movd xmm0, eax
mov eax, dword [esp + 0x38]
cvtdq2ps xmm0, xmm0
add eax, ecx
subss xmm0, dword [esp + 0x4c]
movss dword [esp + 4], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
addss xmm0, dword [esp + 0x28]
jmp 0x51b973
mov ecx, dword [esp + 0x6c]
add eax, ecx
movd xmm0, eax
mov eax, dword [esp + 0x70]
sub eax, dword [esp + 0x40]
cvtdq2ps xmm0, xmm0
subss xmm0, dword [esp + 0x4c]
movss dword [esp + 4], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
subss xmm0, dword [esp + 0x28]
movss dword [esp], xmm0
push 8
push ecx
mov ecx, dword [esi + 0x394]
mov eax, esp
mov dword [eax], ecx
test ecx, ecx
je 0x51b98f
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov ecx, dword [esi + 0x37c]
push ecx
mov eax, esp
mov dword [eax], ecx
test ecx, ecx
je 0x51b9a4
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov ecx, dword [esi + 0x380]
push ecx
mov eax, esp
mov dword [eax], ecx
test ecx, ecx
je 0x51b9b9
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
push ecx
mov ecx, dword [esi + 0x390]
mov eax, esp
mov dword [eax], ecx
test ecx, ecx
je 0x51b9ce
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov edx, dword [esp + 0x68]
mov ecx, dword [esi + 0x21858]
call fcn.0043a210
mov edx, dword [esp + 0x30]
mov dword [esp + 0x34], 8
movsx eax, word [esi + 0x21bec]
mov ecx, dword [esp + 0x64]
sub ecx, eax
cmp ecx, 1
jle case.default.0x51bc39
mov eax, dword [esi + 0x48]
cmp byte [eax + 0x5499], 0
je case.default.0x51bc39
cmp word [esp + 0xf4], 0
jle case.default.0x51bc39
mov edi, dword [edx + 0x28]
lea eax, [edi + 0x120]
mov dword [esp + 0xf0], eax
test eax, eax
je case.default.0x51bc39
xor ecx, ecx
mov dword [esp + 8], 0
xor dl, dl
mov dword [esp + 0xc], ecx
cmp word [eax], cx
je 0x51bafa
mov esi, dword [esp + 8]
mov eax, 0x120
mov ecx, eax
mov dword [esp + 0x10], ecx
nop
movzx eax, word [eax + edi]
mov edi, eax
cmp ax, word [esp + 0x90]
jne 0x51ba74
mov dl, 1
jmp 0x51bac9
mov eax, esi
and eax, 0xfc00
cmp eax, 0xd800
jne 0x51bac9
mov eax, edi
and eax, 0xfc00
cmp eax, 0xdc00
jne 0x51bac9
movzx eax, si
mov ecx, eax
movzx edx, dl
and ecx, 0x3c0
and eax, 0x3f
shl eax, 0xa
add ecx, 0x40
shl ecx, 0xa
or ecx, eax
mov eax, edi
and eax, 0x3ff
or eax, ecx
mov ecx, dword [esp + 0x10]
add eax, 0xfffe0c05
cmp eax, 4
mov eax, 1
cmovbe edx, eax
inc dword [esp + 0xc]
mov esi, edi
mov dword [esp + 8], esi
add ecx, 2
mov esi, dword [esp + 0x30]
mov eax, ecx
mov dword [esp + 0x10], ecx
mov edi, dword [esi + 0x28]
mov esi, dword [esp + 8]
cmp word [ecx + edi], 0
jne 0x51ba60
mov esi, dword [esp + 0x40]
mov ecx, dword [esp + 0xc]
mov ax, word [esp + 0xf4]
cwde
dec eax
mov dword [esp + 0x10], eax
cmp eax, 3
ja case.default.0x51bb0d
jmp dword [eax*4 + 0x51c4ac]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x34], 8
jmp case.default.0x51bb0d
mov dword [esp + 0x34], 8
jmp 0x51bb4a
mov dword [esp + 0x3c], 0
mov dword [esp + 0x34], 0
jmp case.default.0x51bb0d
mov dword [esp + 0x34], 0
mov dword [esp + 0x3c], 2
mov eax, dword [esi + 0x217e4]
movsd xmm0, qword [esp + 0x960]
addsd xmm0, qword [0x5ea530]
mov byte [esp + 0x9c], 0
mulsd xmm0, qword [eax + 0x28]
mulsd xmm0, qword [eax + 0x38]
divsd xmm0, qword [eax + 0x60]
cvtpd2ps xmm0, xmm0
movss dword [esp + 8], xmm0
movsd xmm0, qword [esp + 0x968]
addsd xmm0, qword [0x5ea528]
mulsd xmm0, qword [eax + 0x30]
mulsd xmm0, qword [eax + 0x40]
divsd xmm0, qword [eax + 0x60]
mov eax, dword [esp + 0x44]
movzx edi, byte [eax + 0x803]
movzx eax, byte [eax + 0x804]
shl edi, 8
or edi, eax
mov eax, dword [esp + 0x44]
shl edi, 8
movzx eax, byte [eax + 0x805]
or edi, eax
movzx eax, cx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x68]
cvtpd2ps xmm0, xmm0
movss dword [esp + 0xc], xmm0
movss xmm0, dword [esi + 0x3a0]
test dl, dl
jne 0x51bc01
mov byte [esp + 0x9c], 1
push dword [esp + 0x9c]
mov edx, dword [esi + 0x21858]
push ecx
movss dword [esp], xmm0
push dword [esp + 0xa8]
push ecx
mov ecx, dword [esp + 0x100]
push eax
call fcn.0040ec40
mov eax, dword [esp + 0x24]
add esp, 0x14
cmp eax, 3
ja case.default.0x51bc39
jmp dword [eax*4 + 0x51c4bc]
mov eax, dword [esp + 0x24]
add eax, dword [esp + 0x54]
movss xmm0, dword [esi + 0x3a0]
mov ecx, dword [esp + 0xc0]
push edi
sub esp, 0x14
movss dword [esp + 8], xmm0
movd xmm0, eax
mov eax, dword [esp + 0x38]
cvtdq2ps xmm0, xmm0
add eax, ecx
subss xmm0, dword [esp + 0x24]
movss dword [esp + 4], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
addss xmm0, dword [esp + 0x20]
movss dword [esp], xmm0
push dword [esp + 0x4c]
push ecx
mov ecx, dword [esi + 0x394]
mov eax, esp
mov dword [eax], ecx
test ecx, ecx
je 0x51bca5
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov ecx, dword [esi + 0x37c]
push ecx
mov eax, esp
mov dword [eax], ecx
test ecx, ecx
je 0x51bcba
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov ecx, dword [esi + 0x380]
push ecx
mov eax, esp
mov dword [eax], ecx
test ecx, ecx
je 0x51bccf
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
push ecx
mov ecx, dword [esi + 0x390]
mov eax, esp
mov dword [eax], ecx
test ecx, ecx
je 0x51bce4
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov edx, dword [esp + 0x68]
mov ecx, dword [esi + 0x21858]
call fcn.0043a210
jmp case.default.0x51bc39
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x24]
movss xmm0, dword [esi + 0x3a0]
add eax, ecx
push edi
sub esp, 0x14
movss dword [esp + 8], xmm0
movd xmm0, eax
mov eax, dword [esp + 0x70]
sub eax, dword [esp + 0x40]
cvtdq2ps xmm0, xmm0
subss xmm0, dword [esp + 0x24]
movss dword [esp + 4], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
subss xmm0, dword [esp + 0x20]
movss dword [esp], xmm0
push dword [esp + 0x4c]
push ecx
mov ecx, dword [esi + 0x394]
mov eax, esp
mov dword [eax], ecx
test ecx, ecx
je 0x51bd5a
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov ecx, dword [esi + 0x37c]
push ecx
mov eax, esp
mov dword [eax], ecx
test ecx, ecx
je 0x51bd6f
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov ecx, dword [esi + 0x380]
push ecx
mov eax, esp
mov dword [eax], ecx
test ecx, ecx
je 0x51bd84
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
push ecx
mov ecx, dword [esi + 0x390]
mov eax, esp
mov dword [eax], ecx
test ecx, ecx
je 0x51bd99
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov edx, dword [esp + 0x68]
mov ecx, dword [esi + 0x21858]
call fcn.0043a210
jmp case.default.0x51bc39
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x2c]
movss xmm0, dword [esi + 0x3a0]
mov ecx, dword [esp + 0xc0]
push edi
sub esp, 0x14
movss dword [esp + 8], xmm0
movd xmm0, eax
mov eax, dword [esp + 0x38]
cvtdq2ps xmm0, xmm0
add eax, ecx
addss xmm0, dword [esp + 0x24]
movss dword [esp + 4], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
addss xmm0, dword [esp + 0x20]
movss dword [esp], xmm0
push dword [esp + 0x4c]
push ecx
mov ecx, dword [esi + 0x394]
mov eax, esp
mov dword [eax], ecx
test ecx, ecx
je 0x51be12
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov ecx, dword [esi + 0x37c]
push ecx
mov eax, esp
mov dword [eax], ecx
test ecx, ecx
je 0x51be27
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov ecx, dword [esi + 0x380]
push ecx
mov eax, esp
mov dword [eax], ecx
test ecx, ecx
je 0x51be3c
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
push ecx
mov ecx, dword [esi + 0x390]
mov eax, esp
mov dword [eax], ecx
test ecx, ecx
je 0x51be51
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov edx, dword [esp + 0x68]
mov ecx, dword [esi + 0x21858]
call fcn.0043a210
jmp case.default.0x51bc39
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x2c]
movss xmm0, dword [esi + 0x3a0]
push edi
sub esp, 0x14
movss dword [esp + 8], xmm0
movd xmm0, eax
mov eax, dword [esp + 0x70]
sub eax, dword [esp + 0x40]
cvtdq2ps xmm0, xmm0
addss xmm0, dword [esp + 0x24]
movss dword [esp + 4], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
subss xmm0, dword [esp + 0x20]
movss dword [esp], xmm0
push dword [esp + 0x4c]
push ecx
mov ecx, dword [esi + 0x394]
mov eax, esp
mov dword [eax], ecx
test ecx, ecx
je 0x51bec5
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov ecx, dword [esi + 0x37c]
push ecx
mov eax, esp
mov dword [eax], ecx
test ecx, ecx
je 0x51beda
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov ecx, dword [esi + 0x380]
push ecx
mov eax, esp
mov dword [eax], ecx
test ecx, ecx
je 0x51beef
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
push ecx
mov ecx, dword [esi + 0x390]
mov eax, esp
mov dword [eax], ecx
test ecx, ecx
je 0x51bf04
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov edx, dword [esp + 0x68]
mov ecx, dword [esi + 0x21858]
call fcn.0043a210
jmp case.default.0x51bc39
mov dword [esp + 0x174], 0
mov dword [esp + 0x17c], 0
mov dword [esp + 0x170], 0
mov dword [esp + 0x178], 0
mov edi, dword [esp + 0x30]
inc dword [esp + 0x64]
mov edi, dword [edi]
mov dword [esp + 0x30], edi
test edi, edi
jne 0x51adf4
cmp dword [esi + 0x14], 0
jne 0x51bf87
cmp dword [esi + 0x1c], 0
jne 0x51bf87
cmp dword [esi + 0x10], 0
jne 0x51bf87
cmp dword [esi + 0x18], 0
jne 0x51bf87
cmp dword [esi + 0x24], 0
jne 0x51bf87
cmp dword [esi + 0x2c], 0
jne 0x51bf87
cmp dword [esi + 0x20], 0
jne 0x51bf87
cmp dword [esi + 0x28], 0
je 0x51bf96
mov eax, dword [esi + 0x390]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xb8]
mov ecx, dword [esi + 0x388]
test ecx, ecx
je 0x51bfa6
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [esi + 0x217e8]
lea edx, [esp + 0xa0]
mov dword [esp + 0x100], eax
mov eax, dword [esi + 0x217ec]
mov dword [esp + 0x104], eax
mov eax, dword [esi + 0x217f0]
mov dword [esp + 0x108], eax
mov eax, dword [esi + 0x217f4]
mov dword [esp + 0x10c], eax
mov eax, dword [esi + 0x390]
movaps xmm0, xmmword [esp + 0x100]
mov dword [esp + 0x1b8], 0
mov dword [esp + 0x1bc], 0
movaps xmmword [esp + 0x1c0], xmm0
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0xc8]
lea edx, [esp + 0x168]
push edx
lea edx, [esp + 0x170]
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov eax, dword [esp + 0x44]
push edx
mov eax, dword [eax + 0x390]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xd0]
mov ecx, dword [esp + 0x40]
movss xmm0, dword [esp + 0x16c]
mov dword [esp + 0x104], edi
mov edi, ecx
mov dword [esp + 0x100], esi
mov eax, dword [ecx + 0x217f0]
sub eax, dword [ecx + 0x217e8]
mov edx, dword [ecx + 0x217f4]
lea esi, [edi + 0x388]
sub edx, dword [ecx + 0x217ec]
push esi
mov dword [esp + 0xa4], eax
mov eax, dword [edi + 0x390]
lea edi, [esp + 0x184]
push edi
push 0
movss dword [esp + 0x114], xmm0
movss xmm0, dword [esp + 0x174]
push 0
movss dword [esp + 0x11c], xmm0
movaps xmm0, xmmword [esp + 0x110]
push edx
push dword [esp + 0xb4]
movaps xmmword [esp + 0x198], xmm0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov eax, dword [esi]
lea edx, [esp + 0x1c0]
mov edi, dword [esp + 0x40]
push edx
lea edx, [esp + 0x1bc]
mov ecx, dword [eax]
push dword [edi + 0x390]
push edx
push eax
call dword [ecx + 0x24]
mov eax, dword [esp + 0x44]
cmp byte [eax + 0x2f2], 0
je 0x51c42d
mov eax, dword [esp + 0xf8]
test eax, eax
je 0x51c42d
nop
movups xmm0, xmmword [eax + 8]
mov edx, dword [esp + 0xfc]
movaps xmmword [esp + 0xc0], xmm0
mov eax, dword [esp + 0xcc]
sub eax, dword [edx + 4]
mov ecx, dword [esp + 0xc8]
inc eax
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0xc0]
sub eax, dword [edx]
psrldq xmm0, 4
mov dword [esp + 0x10], eax
mov eax, 1
sub eax, dword [edx]
movd esi, xmm0
add ecx, eax
mov dword [esp + 0x90], ecx
sub esi, dword [edx + 4]
mov dword [esp + 0xa0], esi
cmp esi, dword [esp + 0x8c]
jg 0x51c42d
mov edx, dword [esp + 0x1a4]
cmp esi, edx
mov ecx, dword [esp + 0x1ac]
mov edi, dword [esp + 0x1a0]
cmovge edx, esi
cmp dword [esp + 0x9c], ecx
mov esi, ecx
mov ecx, dword [esp + 0x1a8]
mov eax, edi
cmovle esi, dword [esp + 0x9c]
cmp dword [esp + 0x10], edi
mov edi, ecx
mov dword [esp + 0x174], edx
cmovge eax, dword [esp + 0x10]
cmp dword [esp + 0x90], edi
mov edi, dword [esp + 0x40]
cmovle ecx, dword [esp + 0x90]
mov dword [esp + 0x17c], esi
mov dword [esp + 0x170], eax
mov dword [esp + 0x178], ecx
cmp esi, edx
jl 0x51c3e9
cmp ecx, eax
jl 0x51c3e9
test edx, edx
jne 0x51c20b
test esi, esi
jne 0x51c20b
test eax, eax
jne 0x51c20b
test ecx, ecx
je 0x51c415
mov esi, dword [esp + 0x9c]
cmp esi, dword [esp + 0x1a4]
jl 0x51c415
mov eax, dword [esp + 0xf8]
mov edx, dword [esp + 0x44]
cmp eax, dword [edi + 8]
jne 0x51c24b
movzx ecx, byte [edx + 0x815]
movzx eax, byte [edx + 0x816]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0x817]
jmp 0x51c265
movzx ecx, byte [edx + 0x812]
movzx eax, byte [edx + 0x813]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0x814]
shl ecx, 8
lea edx, [esp + 0x100]
or ecx, eax
movss xmm1, dword [0x5ea6d4]
mov eax, ecx
mov dword [esp + 0x10c], 0x3f800000
shr eax, 0x10
push edx
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x5ea8e0]
mov eax, ecx
shr eax, 8
movzx eax, al
cvtpd2ps xmm0, xmm0
divss xmm0, xmm1
movss dword [esp + 0x104], xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x5ea8e0]
movzx eax, cl
cvtpd2ps xmm0, xmm0
divss xmm0, xmm1
movss dword [esp + 0x108], xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x5ea8e0]
mov eax, dword [edi + 0x394]
push eax
cvtpd2ps xmm0, xmm0
divss xmm0, xmm1
movss dword [esp + 0x110], xmm0
mov ecx, dword [eax]
call dword [ecx + 0x20]
movd xmm0, dword [esp + 0x10]
lea edx, [esp + 0xc0]
movss xmm1, dword [edi + 0x3a0]
cvtdq2ps xmm0, xmm0
mov eax, dword [esp + 0x90]
dec eax
mov dword [esp + 0xd0], 0
mov dword [esp + 0xd4], 0
push edx
divss xmm0, xmm1
movss dword [esp + 0x134], xmm0
movd xmm0, dword [esp + 0xa4]
cvtdq2ps xmm0, xmm0
divss xmm0, xmm1
movss dword [esp + 0x138], xmm0
movd xmm0, eax
lea eax, [esi - 1]
cvtdq2ps xmm0, xmm0
divss xmm0, xmm1
movss dword [esp + 0x13c], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mov eax, dword [edi + 0x390]
push eax
divss xmm0, xmm1
movss dword [esp + 0x144], xmm0
movaps xmm0, xmmword [esp + 0x138]
movaps xmmword [esp + 0x188], xmm0
movaps xmm0, xmmword [0x5ea820]
movups xmmword [esp + 0xc8], xmm0
mov ecx, dword [eax]
call dword [ecx + 0x78]
mov eax, dword [edi + 0x390]
lea edx, [esp + 0x180]
push 0
mov ecx, dword [eax]
push ecx
mov dword [esp], 0x3f800000
push dword [edi + 0x394]
push edx
push eax
call dword [ecx + 0x40]
jmp 0x51c415
mov dword [esp + 0x174], 0
mov dword [esp + 0x17c], 0
mov dword [esp + 0x170], 0
mov dword [esp + 0x178], 0
mov eax, dword [esp + 0xf8]
mov eax, dword [eax]
mov dword [esp + 0xf8], eax
test eax, eax
jne 0x51c110
mov eax, dword [edi + 0x390]
push 0
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc4]
push dword [esp + 0x68]
mov esi, eax
mov dword [edi + 0x14], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x28], 0
call fcn.00560853
add esp, 4
push dword [esp + 0x6c]
call fcn.00560853
mov ecx, dword [esp + 0xa80]
add esp, 4
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.0056060a
mov esp, ebp
pop ebp
ret 0x10