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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x148
mov eax, dword [0x71ccd4]
xor eax, esp
mov dword [esp + 0x144], eax
push esi
push edi
mov edi, ecx
mov dword [esp + 0x28], edi
call fcn.00512d00
test eax, eax
je 0x5126fe
mov eax, dword [edi + 0x5c]
xor esi, esi
mov ecx, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], esi
call fcn.0050e260
test eax, eax
je 0x5126fe
lea edx, [edi + 0x2c]
nop
mov ecx, dword [edi + 0x50]
lea eax, [esi + esi*2]
shl eax, 4
add ecx, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x14], ecx
mov ecx, edx
call fcn.00518ca0
mov ecx, dword [esp + 0x14]
movzx eax, al
push eax
call fcn.00518e10
test eax, eax
je 0x5126e5
mov ecx, dword [edi + 0x24]
push esi
call fcn.0050e120
mov dword [esp + 0xa8], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0xac], 0x3f800000
mov dword [esp + 0x98], 0x3f800000
mov dword [esp + 0x84], 0x3f800000
mov dword [esp + 0x70], 0x3f800000
sub eax, 1
je 0x512253
sub eax, 1
je 0x51214a
sub eax, 1
jne 0x5122d1
movss xmm0, dword [edi + 0xc]
lea eax, [esp + 0x64]
push eax
push ecx
mov ecx, dword [edi + 0x24]
movss dword [esp], xmm0
call fcn.00517010
mov ecx, dword [0x790918]
lea eax, [esp + 0xf0]
push eax
call fcn.0051a0b0
fsubr dword [edi + 0xc]
push ecx
mov ecx, dword [edi + 0x24]
fstp dword [esp]
call fcn.00517010
movss xmm2, dword [esp + 0x64]
movss xmm1, dword [esp + 0x68]
subss xmm1, dword [esp + 0xf4]
subss xmm2, dword [esp + 0xf0]
movss xmm0, dword [esp + 0x6c]
subss xmm0, dword [esp + 0xf8]
movss dword [esp + 0x68], xmm1
movss dword [esp + 0x64], xmm2
mulss xmm1, xmm1
mulss xmm2, xmm2
movss dword [esp + 0x6c], xmm0
mulss xmm0, xmm0
addss xmm1, xmm2
addss xmm1, xmm0
comiss xmm1, dword [0x68b7f4]
jbe 0x5122d1
lea eax, [esp + 0x64]
push eax
push eax
call fcn.00401277
movss xmm6, dword [esp + 0x64]
xorps xmm2, xmm2
movss xmm1, dword [esp + 0x6c]
movss xmm3, dword [esp + 0x68]
movss xmm7, dword [0x67500c]
ucomiss xmm2, xmm6
movss dword [esp + 0x24], xmm6
movss dword [esp + 0x1c], xmm1
lahf
test ah, 0x44
jp 0x512020
ucomiss xmm7, xmm3
lahf
test ah, 0x44
jp 0x512020
ucomiss xmm2, xmm1
lahf
test ah, 0x44
jp 0x512020
movaps xmm0, xmmword [0x68b810]
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x74]
push eax
movups xmmword [esp + 0x4c], xmm0
call fcn.0040285e
jmp 0x5122d1
movaps xmm0, xmm6
movaps xmm4, xmm3
xorps xmm0, xmmword [0x674fc0]
movaps xmm5, xmm1
xorps xmm4, xmmword [0x674fc0]
xorps xmm5, xmmword [0x674fc0]
ucomiss xmm2, xmm0
lahf
test ah, 0x44
jp 0x512079
ucomiss xmm7, xmm4
lahf
test ah, 0x44
jp 0x512079
ucomiss xmm2, xmm5
lahf
test ah, 0x44
jp 0x512079
movaps xmm0, xmmword [0x68b800]
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x74]
push eax
movups xmmword [esp + 0x4c], xmm0
call fcn.0040285e
jmp 0x5122d1
movaps xmm0, xmm3
mulss xmm1, xmm2
mulss xmm3, dword [0x674f68]
mulss xmm0, xmm2
movss dword [esp + 0x30], xmm1
movss dword [esp + 0x18], xmm0
movaps xmm0, xmm6
mulss xmm0, xmm2
movss dword [esp + 0xc], xmm0
subss xmm0, xmm3
addss xmm0, xmm1
xorps xmm1, xmm1
addss xmm0, dword [0x674f68]
addss xmm0, xmm0
cvtps2pd xmm0, xmm0
ucomisd xmm1, xmm0
ja 0x5120cb
sqrtsd xmm0, xmm0
jmp 0x5120d0
call fcn.00619930
movss xmm1, dword [esp + 0x1c]
lea eax, [esp + 0x44]
mulss xmm1, dword [0x67500c]
push eax
movss xmm2, dword [esp + 0x1c]
lea eax, [esp + 0x74]
cvtsd2ss xmm0, xmm0
push eax
subss xmm1, xmm2
divss xmm1, xmm0
movss dword [esp + 0x4c], xmm1
movss xmm1, dword [esp + 0x14]
subss xmm1, dword [esp + 0x38]
divss xmm1, xmm0
movss dword [esp + 0x50], xmm1
movss xmm1, dword [esp + 0x2c]
mulss xmm1, dword [0x67500c]
subss xmm2, xmm1
divss xmm2, xmm0
mulss xmm0, dword [0x674f64]
movss dword [esp + 0x54], xmm2
movss dword [esp + 0x58], xmm0
call fcn.0040285e
jmp 0x5122d1
mov dword [esp + 0xe8], 0
mov dword [esp + 0xe4], 0
mov dword [esp + 0xe0], 0
mov dword [esp + 0xdc], 0
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd0], 0
mov dword [esp + 0xcc], 0
mov dword [esp + 0xc8], 0
mov dword [esp + 0xc0], 0
mov dword [esp + 0xbc], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xb4], 0
mov dword [esp + 0xec], 0x3f800000
mov dword [esp + 0xd8], 0x3f800000
mov dword [esp + 0xc4], 0x3f800000
mov dword [esp + 0xb0], 0x3f800000
call fcn.0052ed40
push eax
push 0
lea eax, [esp + 0xb8]
push eax
call fcn.004020a5
movss xmm0, dword [esp + 0xb0]
movss dword [esp + 0x70], xmm0
movss xmm0, dword [esp + 0xb4]
movss dword [esp + 0x74], xmm0
movss xmm0, dword [esp + 0xc0]
movss dword [esp + 0x80], xmm0
movss xmm0, dword [esp + 0xc4]
movss dword [esp + 0x84], xmm0
jmp 0x5122d1
push ecx
lea eax, [esp + 0x10c]
mov dword [esp], 0x42b40000
push eax
call fcn.00402574
call fcn.0052ed40
push eax
push 0
lea eax, [esp + 0x78]
push eax
call fcn.004020a5
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0x10c]
push eax
lea eax, [esp + 0xb8]
push eax
call fcn.00401b99
movups xmm0, xmmword [esp + 0xb0]
movups xmmword [esp + 0x70], xmm0
movups xmm0, xmmword [esp + 0xc0]
movups xmmword [esp + 0x80], xmm0
movups xmm0, xmmword [esp + 0xd0]
movups xmmword [esp + 0x90], xmm0
movups xmm0, xmmword [esp + 0xe0]
movups xmmword [esp + 0xa0], xmm0
mov ecx, dword [edi + 0x24]
push esi
call fcn.00510b10
test eax, eax
jne 0x5122ee
mov ecx, dword [0x72e6a4]
push eax
push 0x1b
call fcn.0052cdc0
jmp 0x51233d
mov ecx, dword [edi + 0x24]
push esi
call fcn.0050e180
mov ecx, dword [esp + 0x28]
push esi
movzx edi, al
mov ecx, dword [ecx + 0x24]
call fcn.0050e150
mov ecx, dword [0x72e6a4]
push 1
push 0x1b
movzx esi, al
call fcn.0052cdc0
mov ecx, dword [0x72e6a4]
push edi
push 0x13
call fcn.0052cdc0
mov ecx, dword [0x72e6a4]
push esi
push 0x14
call fcn.0052cdc0
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x28]
movss xmm0, dword [edi + 0xc]
lea eax, [esp + 0xfc]
push eax
push ecx
mov ecx, dword [edi + 0x24]
movss dword [esp], xmm0
call fcn.00517010
movss xmm0, dword [esp + 0xfc]
lea eax, [esp + 0x70]
push dword [edi + 4]
movss dword [esp + 0xa4], xmm0
movss xmm0, dword [esp + 0x104]
push eax
movss dword [esp + 0xac], xmm0
lea eax, [esp + 0xb8]
movss xmm0, dword [esp + 0x10c]
push eax
movss dword [esp + 0xb4], xmm0
call fcn.00401b99
movups xmm0, xmmword [esp + 0xb0]
mov ecx, dword [0x72e6a4]
lea eax, [esp + 0x70]
push eax
movups xmmword [esp + 0x74], xmm0
push 0x100
movups xmm0, xmmword [esp + 0xc8]
movups xmmword [esp + 0x88], xmm0
movups xmm0, xmmword [esp + 0xd8]
movups xmmword [esp + 0x98], xmm0
movups xmm0, xmmword [esp + 0xe8]
movups xmmword [esp + 0xa8], xmm0
call fcn.0052ced0
movaps xmm0, xmmword [0x68b710]
lea eax, [esp + 0x13]
mov ecx, dword [edi + 0x24]
push eax
push esi
movups xmmword [esp + 0x5c], xmm0
call fcn.0050e1f0
test eax, eax
je 0x512428
movzx eax, byte [esp + 0x13]
mov ecx, dword [0x72e6a4]
push eax
push 1
push 0
call fcn.0052ce90
mov ecx, dword [edi + 0x24]
lea eax, [esp + 0x54]
push eax
push esi
call fcn.0050e1b0
movss xmm0, dword [0x674f68]
lea eax, [esp + 0x34]
mov ecx, dword [edi + 0x24]
push eax
push esi
movss dword [esp + 0x14], xmm0
call fcn.0050e300
test eax, eax
je 0x512517
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
cmp eax, ecx
je 0x512517
movss xmm1, dword [edi + 0xc]
lea edx, [eax + 8]
movss dword [esp + 0x24], xmm1
cmp edx, ecx
jne 0x51248d
movss xmm0, dword [eax + 4]
movss dword [esp + 0xc], xmm0
jmp 0x512517
movss xmm0, dword [eax]
comiss xmm0, xmm1
jbe 0x5124a3
movss xmm0, dword [eax + 4]
movss dword [esp + 0xc], xmm0
jmp 0x512517
comiss xmm1, dword [ecx - 8]
jbe 0x5124b6
movss xmm0, dword [ecx - 4]
movss dword [esp + 0xc], xmm0
jmp 0x512517
lea edx, [esp + 0x24]
push edx
push ecx
push eax
lea eax, [esp + 0x48]
push eax
call fcn.005075b0
mov eax, dword [esp + 0x4c]
add esp, 0x10
mov ecx, dword [esp + 0x40]
cmp eax, ecx
je 0x5124e3
movss xmm0, dword [eax + 4]
movss dword [esp + 0xc], xmm0
jmp 0x512517
movss xmm0, dword [ecx]
sub eax, 8
movaps xmm2, xmm0
mov dword [esp + 0x3c], eax
subss xmm2, dword [edi + 0xc]
subss xmm0, dword [eax]
divss xmm2, xmm0
movss xmm0, dword [eax + 4]
subss xmm0, dword [ecx + 4]
mulss xmm2, xmm0
addss xmm2, dword [ecx + 4]
movss dword [esp + 0xc], xmm2
mov ecx, dword [esp + 0x2c]
push esi
call fcn.0050e270
lea ecx, [edi + 0x2c]
mov esi, eax
call fcn.00518ca0
mov ecx, dword [esp + 0x14]
movzx eax, al
shl eax, 5
add eax, dword [esi + 0xa0]
mov dword [esp + 0x1c], eax
call fcn.00518ca0
mov esi, dword [esp + 0x38]
movzx ecx, al
mov eax, dword [edi + 0x50]
mov edx, dword [esi + eax + 0x24]
mov eax, dword [esi + eax + 0x28]
sub eax, edx
sar eax, 2
cmp ecx, eax
jae 0x51257c
mov ecx, dword [edx + ecx*4]
call fcn.00539610
mov ecx, eax
call fcn.0053ef70
mov ecx, dword [0x72e6a4]
push eax
push 0
call fcn.0052ce50
mov eax, dword [esp + 0x1c]
xorps xmm1, xmm1
movss xmm0, dword [esp + 0xc]
mulss xmm0, dword [eax + 4]
movss dword [esp + 0xc], xmm0
movss dword [esp + 0x60], xmm0
movss xmm0, dword [esp + 0x54]
comiss xmm0, dword [0x674f68]
jb 0x5125b3
mov dword [esp + 0x18], 0xff
jmp 0x5125de
comiss xmm1, xmm0
jb 0x5125c2
mov dword [esp + 0x18], 0
jmp 0x5125de
mulss xmm0, dword [0x675288]
addss xmm0, dword [0x674f64]
call fcn.005c81e0
mov dword [esp + 0x18], eax
xorps xmm1, xmm1
movss xmm0, dword [esp + 0x58]
comiss xmm0, dword [0x674f68]
jb 0x5125f7
mov dword [esp + 0x14], 0xff
jmp 0x51261f
comiss xmm1, xmm0
jb 0x512606
mov dword [esp + 0x14], 0
jmp 0x51261f
mulss xmm0, dword [0x675288]
addss xmm0, dword [0x674f64]
call fcn.005c81e0
mov dword [esp + 0x14], eax
movss xmm0, dword [esp + 0x5c]
xorps xmm1, xmm1
comiss xmm0, dword [0x674f68]
jb 0x512638
mov esi, 0xff
jmp 0x51265b
comiss xmm1, xmm0
jb 0x512641
xor esi, esi
jmp 0x51265b
mulss xmm0, dword [0x675288]
addss xmm0, dword [0x674f64]
call fcn.005c81e0
mov esi, eax
xorps xmm1, xmm1
movss xmm0, dword [esp + 0xc]
comiss xmm0, dword [0x674f68]
jb 0x512671
mov eax, 0xff
jmp 0x51268f
comiss xmm1, xmm0
jb 0x51267a
xor eax, eax
jmp 0x51268f
mulss xmm0, dword [0x675288]
addss xmm0, dword [0x674f64]
call fcn.005c81e0
mov ecx, dword [0x72e6a4]
shl eax, 8
or eax, dword [esp + 0x18]
shl eax, 8
or eax, dword [esp + 0x14]
shl eax, 8
or eax, esi
push eax
push 0x3c
call fcn.0052cdc0
mov ecx, dword [0x72e6a4]
push 0x102
call fcn.0052cf40
mov ecx, dword [esp + 0x1c]
mov eax, 0xaaaaaaab
push 0x14
mul dword [ecx + 0x10]
push dword [ecx + 0x14]
mov ecx, dword [0x72e6a4]
shr edx, 1
push edx
push 4
call fcn.0052bd40
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
inc esi
mov dword [esp + 0x20], esi
call fcn.0050e260
lea edx, [edi + 0x2c]
cmp esi, eax
jb 0x511e20
mov ecx, dword [esp + 0x14c]
pop edi
pop esi
xor ecx, esp
call fcn.005c81cf
mov esp, ebp
pop ebp
ret