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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x84
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x4c]
test eax, eax
push esi
push edi
je 0x51df85
mov dword [esp + 0x2c], 0
movss xmm5, dword [ebx + 0x14]
movss xmm0, dword [ebx + 0x1c]
mulss xmm0, dword [0x738a1c]
movss xmm6, dword [ebx + 0x74]
movss xmm4, dword [ebx + 0x1c]
lea eax, [ebx + 0x70]
mov ecx, eax
mov edx, dword [ecx]
mov dword [esp + 0x50], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0x54], edx
movss xmm1, dword [esp + 0x54]
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
addss xmm1, xmm0
movss dword [esp + 0x1c], xmm0
xorps xmm0, xmm0
subss xmm0, xmm5
movss dword [esp + 0x54], xmm1
movss xmm1, dword [eax + 8]
movaps xmm2, xmm0
addss xmm0, dword [eax]
addss xmm1, xmm2
movss xmm2, dword [eax]
movaps xmm3, xmm6
addss xmm3, xmm4
movss xmm4, dword [eax + 8]
mov eax, dword [ebx + 8]
addss xmm2, xmm5
addss xmm4, xmm5
movss dword [esp + 0x20], xmm5
movss xmm5, dword [0x7389bc]
mov dword [esp + 0x58], edx
mov edx, dword [ebx + 0xc]
mov dword [esp + 0x5c], ecx
xor ecx, ecx
cmp eax, 0xffffffff
subss xmm0, xmm5
subss xmm6, xmm5
subss xmm1, xmm5
addss xmm2, xmm5
addss xmm3, xmm5
addss xmm4, xmm5
movss dword [esp + 0x70], xmm0
movss dword [esp + 0x74], xmm6
movss dword [esp + 0x78], xmm1
movss dword [esp + 0x80], xmm2
movss dword [esp + 0x84], xmm3
movss dword [esp + 0x88], xmm4
mov dword [esp + 0x28], edx
jne 0x51db08
test ecx, ecx
jne 0x51db08
mov ecx, dword [ebx + 8]
mov eax, edx
push eax
push ecx
mov ecx, dword [0x916514]
call fcn.00467180
mov esi, dword [0x916514]
jmp 0x51db35
mov edx, dword [ebx + 0xc]
mov eax, dword [ebx + 8]
push edx
push eax
mov eax, 0x8d68e0
call fcn.0043b2d0
cmp eax, 0xffffffff
je 0x51db64
mov edx, dword [0x8d68e8]
lea ecx, [eax + eax*2]
mov eax, dword [edx + ecx*8 + 8]
shl eax, 5
mov esi, dword [eax + 0x8d725c]
test esi, esi
je 0x51db64
call fcn.0042fab0
mov edi, eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
cmp eax, edi
je 0x51db5d
jmp 0x51db50
mov ecx, dword [eax + 4]
cmp eax, ecx
je 0x51db64
mov eax, ecx
cmp eax, edi
jne 0x51db50
mov eax, 0x800000
jmp 0x51db69
mov eax, 0x1000000
push 0
push 0
push 0x10800
push eax
push 0xffffffffffffffff
push 0x91afe0
lea eax, [esp + 0x88]
call fcn.00515820
mov ecx, dword [0x91bfe0]
test ecx, ecx
je 0x51df73
xorps xmm0, xmm0
xor eax, eax
test ecx, ecx
movss dword [esp + 0x14], xmm0
mov dword [esp + 0x24], eax
jle 0x51df85
jmp 0x51dbb0
mov edi, dword [eax*4 + 0x91afe0]
mov dword [esp + 0x18], edi
or esi, 0xffffffff
jmp 0x51dbc4
mov edi, dword [esp + 0x18]
movzx edx, byte [edi + 0x36]
inc esi
mov ecx, edx
sub ecx, esi
cmp ecx, 4
jl 0x51dd34
mov ecx, dword [edi + 0x50]
lea eax, [esi + esi*2]
shl eax, 4
add eax, ecx
lea ecx, [eax + 8]
add eax, 0x38
jmp 0x51dbf0
movss xmm0, dword [ecx - 8]
movss xmm2, dword [esp + 0x80]
movss xmm1, dword [esp + 0x70]
comiss xmm0, xmm2
movss xmm0, dword [esp + 0x88]
ja 0x51dc4c
comiss xmm1, dword [ecx + 8]
ja 0x51dc4c
movss xmm3, dword [ecx]
comiss xmm3, xmm0
ja 0x51dc4c
movss xmm3, dword [esp + 0x78]
comiss xmm3, dword [ecx + 0x10]
ja 0x51dc4c
movss xmm3, dword [ecx - 4]
comiss xmm3, dword [esp + 0x84]
ja 0x51dc4c
movss xmm3, dword [esp + 0x74]
comiss xmm3, dword [ecx + 0xc]
jbe 0x51ddad
movss xmm3, dword [ecx + 0x28]
comiss xmm3, xmm2
ja 0x51dc92
comiss xmm1, dword [eax + 8]
ja 0x51dc92
movss xmm3, dword [eax]
comiss xmm3, xmm0
ja 0x51dc92
movss xmm3, dword [esp + 0x78]
comiss xmm3, dword [eax + 0x10]
ja 0x51dc98
movss xmm4, dword [eax - 4]
comiss xmm4, dword [esp + 0x84]
ja 0x51dc98
movss xmm4, dword [esp + 0x74]
comiss xmm4, dword [eax + 0xc]
ja 0x51dc98
inc esi
jmp 0x51ddad
movss xmm3, dword [esp + 0x78]
movss xmm4, dword [ecx + 0x58]
comiss xmm4, xmm2
ja 0x51dcd7
comiss xmm1, dword [eax + 0x38]
ja 0x51dcd7
movss xmm4, dword [eax + 0x30]
comiss xmm4, xmm0
ja 0x51dcd7
comiss xmm3, dword [eax + 0x40]
ja 0x51dcd7
movss xmm4, dword [eax + 0x2c]
comiss xmm4, dword [esp + 0x84]
ja 0x51dcd7
movss xmm4, dword [esp + 0x74]
comiss xmm4, dword [eax + 0x3c]
jbe 0x51dda5
movss xmm4, dword [ecx + 0x88]
comiss xmm4, xmm2
ja 0x51dd19
comiss xmm1, dword [eax + 0x68]
ja 0x51dd19
movss xmm1, dword [eax + 0x60]
comiss xmm1, xmm0
ja 0x51dd19
comiss xmm3, dword [eax + 0x70]
ja 0x51dd19
movss xmm0, dword [eax + 0x5c]
comiss xmm0, dword [esp + 0x84]
ja 0x51dd19
movss xmm0, dword [esp + 0x74]
comiss xmm0, dword [eax + 0x6c]
jbe 0x51ddaa
add esi, 4
lea ebx, [edx - 3]
add ecx, 0xc0
add eax, 0xc0
cmp esi, ebx
jl 0x51dbf0
jmp 0x51dd3d
movss xmm2, dword [esp + 0x80]
cmp esi, edx
jge 0x51ddaf
mov ecx, dword [edi + 0x50]
lea eax, [esi + esi*2]
shl eax, 4
add eax, ecx
lea esp, [esp]
movss xmm0, dword [eax]
comiss xmm0, xmm2
ja 0x51dd9b
movss xmm0, dword [esp + 0x70]
comiss xmm0, dword [eax + 0x10]
ja 0x51dd9b
movss xmm0, dword [eax + 8]
comiss xmm0, dword [esp + 0x88]
ja 0x51dd9b
movss xmm0, dword [esp + 0x78]
comiss xmm0, dword [eax + 0x18]
ja 0x51dd9b
movss xmm0, dword [eax + 4]
comiss xmm0, dword [esp + 0x84]
ja 0x51dd9b
movss xmm0, dword [esp + 0x74]
comiss xmm0, dword [eax + 0x14]
jbe 0x51ddad
inc esi
add eax, 0x30
cmp esi, edx
jl 0x51dd50
jmp 0x51ddad
add esi, 2
jmp 0x51ddad
add esi, 3
cmp esi, edx
je 0x51df08
mov ecx, dword [edi + 0x4c]
lea eax, [esi + esi*4]
movzx edx, byte [eax + ecx + 1]
movzx ebx, byte [eax + ecx + 2]
add eax, ecx
mov ecx, dword [edi + 0x44]
movzx edi, byte [eax]
movzx eax, byte [eax + 3]
shl eax, 4
add eax, ecx
mov dword [esp + 0x6c], eax
shl edx, 4
add edx, ecx
shl edi, 4
add edi, ecx
shl ebx, 4
add ebx, ecx
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x30]
push eax
mov eax, dword [esp + 0x24]
push ecx
push eax
push edx
push edi
lea eax, [esp + 0x64]
mov ecx, ebx
call fcn.0051c790
add esp, 0x14
test eax, eax
je 0x51de65
movss xmm1, dword [esp + 0x38]
movss xmm0, dword [esp + 0x34]
movaps xmm2, xmm1
mulss xmm2, xmm1
movss xmm1, dword [esp + 0x30]
mulss xmm0, xmm0
addss xmm0, xmm2
movaps xmm2, xmm1
mulss xmm2, xmm1
addss xmm0, xmm2
comiss xmm0, dword [esp + 0x14]
jbe 0x51de65
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x3c]
movss dword [esp + 0x14], xmm0
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x50]
lea edx, [esi + esi*2]
shl edx, 4
test byte [ecx + edx + 0x20], 0x40
je 0x51dbc0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x30]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x78]
push ebx
push edi
lea eax, [esp + 0x64]
call fcn.0051c790
add esp, 0x14
test eax, eax
je 0x51dbc0
movss xmm1, dword [esp + 0x38]
movss xmm0, dword [esp + 0x34]
movaps xmm2, xmm1
mulss xmm2, xmm1
movss xmm1, dword [esp + 0x30]
mulss xmm0, xmm0
addss xmm0, xmm2
movaps xmm2, xmm1
mulss xmm2, xmm1
addss xmm0, xmm2
comiss xmm0, dword [esp + 0x14]
jbe 0x51dbc0
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x3c]
movss dword [esp + 0x14], xmm0
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edx
jmp 0x51dbc0
mov eax, dword [esp + 0x24]
mov ecx, dword [0x91bfe0]
inc eax
cmp eax, ecx
mov dword [esp + 0x24], eax
jl 0x51dbb0
movss xmm0, dword [esp + 0x14]
comiss xmm0, dword [0x738d88]
jbe 0x51df85
mov ebx, dword [ebp + 8]
movss xmm0, dword [ebx + 0x70]
addss xmm0, dword [esp + 0x40]
movss dword [ebx + 0x70], xmm0
movss xmm0, dword [ebx + 0x74]
addss xmm0, dword [esp + 0x44]
movss dword [ebx + 0x74], xmm0
movss xmm0, dword [esp + 0x48]
addss xmm0, dword [ebx + 0x78]
movss dword [ebx + 0x78], xmm0
xorps xmm0, xmm0
movss dword [ebx + 0x68], xmm0
movss dword [ebx + 0x64], xmm0
movss dword [ebx + 0x60], xmm0
mov eax, dword [esp + 0x2c]
inc eax
cmp eax, 8
mov dword [esp + 0x2c], eax
jl 0x51da05
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4