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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x48
mov dword [esp + 8], ecx
mov ecx, dword [0x100a5ffc]
mov dword [esp + 0x1c], edx
push esi
push edi
mov eax, dword [ecx + 0x3e40]
mov byte [eax + 0xac], 1
mov edx, dword [ecx + 0x3e40]
cmp byte [edx + 0xaf], 0
jne 0x10046b00
mov eax, dword [esp + 0x24]
mov edi, 0x1008dd50
cmp dword [esp + 0x10], eax
mov esi, edi
cmovne esi, dword [esp + 0x10]
cmovne edi, eax
test edi, edi
jne 0x10046492
mov ecx, esi
lea edi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10046480
sub ecx, edi
lea edi, [esi + ecx]
mov ecx, dword [0x100a5ffc]
movss xmm1, dword [edx + 0x1a4]
xorps xmm0, xmm0
movss xmm6, dword [edx + 0x128]
mov eax, edi
addss xmm6, dword [edx + 0xf4]
movss xmm4, dword [edx + 0xf0]
comiss xmm1, xmm0
movss dword [esp + 0x10], xmm4
movss dword [esp + 0x18], xmm6
setae byte [esp + 0xb]
sub eax, esi
cmp eax, 0x7d0
jle 0x100468d3
cmp byte [esp + 0xb], 0
jne 0x100468da
cmp byte [ecx + 0x5a74], 0
xorps xmm1, xmm1
movss xmm5, dword [ecx + 0x3bd0]
movaps xmm2, xmm6
movss dword [esp + 0x14], xmm5
movss dword [esp + 0xc], xmm1
movss dword [esp + 0x38], xmm1
movss dword [esp + 0x30], xmm4
movss dword [esp + 0x34], xmm2
jne 0x10046634
movss xmm0, dword [edx + 0x214]
subss xmm0, xmm6
divss xmm0, xmm5
cvttss2si edx, xmm0
mov dword [esp + 0x20], edx
test edx, edx
jle 0x10046634
xor eax, eax
mov dword [esp + 0x1c], eax
cmp esi, edi
jae 0x1004661f
nop word [eax + eax]
cmp eax, edx
jge 0x10046601
mov eax, edi
sub eax, esi
push eax
push 0xa
push esi
call fcn.1005f660
add esp, 0xc
test eax, eax
cmove eax, edi
test byte [ebp + 8], 1
mov dword [esp + 0x24], eax
jne 0x100465e9
cmp esi, eax
jne 0x10046580
xorps xmm0, xmm0
jmp 0x100465d3
movss xmm3, dword [0x100965a8]
push ecx
push eax
push esi
push ecx
lea eax, [esp + 0x38]
mov dword [esp], 0xbf800000
push eax
mov eax, dword [0x100a5ffc]
movss xmm2, dword [eax + 0x3bd0]
mov ecx, dword [eax + 0x3bcc]
call fcn.10041a10
movss xmm0, dword [esp + 0x28]
addss xmm0, dword [0x1009645c]
cvttss2si eax, xmm0
movd xmm0, eax
mov eax, dword [esp + 0x24]
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x28], xmm0
movss xmm1, dword [esp + 0xc]
maxss xmm1, xmm0
movss dword [esp + 0xc], xmm1
movss dword [esp + 0x38], xmm1
mov edx, dword [esp + 0x20]
lea esi, [eax + 1]
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
cmp esi, edi
jb 0x10046550
movss xmm1, dword [esp + 0xc]
movss xmm4, dword [esp + 0x10]
movss xmm5, dword [esp + 0x14]
movss xmm6, dword [esp + 0x18]
mov ecx, dword [0x100a5ffc]
movd xmm2, eax
cvtdq2ps xmm2, xmm2
mulss xmm2, xmm5
addss xmm2, xmm6
movss dword [esp + 0x34], xmm2
cmp esi, edi
jae 0x1004687c
movaps xmm3, xmm4
movss dword [esp + 0x20], xmm2
addss xmm3, dword [0x100965a8]
movaps xmm0, xmm2
movaps xmm1, xmm2
addss xmm0, xmm5
movss dword [esp + 0x28], xmm3
movss dword [esp + 0x24], xmm0
nop dword [eax]
nop word [eax + eax]
mov eax, dword [ecx + 0x3e40]
comiss xmm0, dword [eax + 0x214]
jbe 0x100466a2
movss xmm0, dword [eax + 0x21c]
comiss xmm0, xmm1
jbe 0x100466a2
comiss xmm3, dword [eax + 0x210]
jbe 0x100466a2
movss xmm0, dword [eax + 0x218]
comiss xmm0, xmm4
ja 0x100466af
cmp byte [ecx + 0x5a74], 0
je 0x100467a6
mov eax, edi
sub eax, esi
push eax
push 0xa
push esi
call fcn.1005f660
add esp, 0xc
test eax, eax
cmove eax, edi
mov dword [esp + 0x1c], eax
cmp esi, eax
jne 0x100466d1
xorps xmm1, xmm1
jmp 0x10046724
movss xmm3, dword [0x100965a8]
push ecx
push eax
push esi
push ecx
lea eax, [esp + 0x50]
mov dword [esp], 0xbf800000
push eax
mov eax, dword [0x100a5ffc]
movss xmm2, dword [eax + 0x3bd0]
mov ecx, dword [eax + 0x3bcc]
call fcn.10041a10
movss xmm0, dword [esp + 0x40]
addss xmm0, dword [0x1009645c]
cvttss2si eax, xmm0
movd xmm1, eax
mov eax, dword [esp + 0x1c]
cvtdq2ps xmm1, xmm1
movss dword [esp + 0x40], xmm1
movss xmm0, dword [esp + 0xc]
mov edx, eax
push dword [esp + 0x34]
maxss xmm0, xmm1
mov ecx, esi
push dword [esp + 0x34]
push 0
movss dword [esp + 0x18], xmm0
movss dword [esp + 0x44], xmm0
call fcn.1001f5b0
movss xmm5, dword [esp + 0x20]
add esp, 0xc
movss xmm1, dword [esp + 0x20]
movss xmm0, dword [esp + 0x24]
addss xmm1, xmm5
movss xmm2, dword [esp + 0x34]
addss xmm0, xmm5
mov esi, dword [esp + 0x1c]
addss xmm2, xmm5
inc esi
movss dword [esp + 0x20], xmm1
movss dword [esp + 0x24], xmm0
movss dword [esp + 0x34], xmm2
cmp esi, edi
jae 0x100467a6
movss xmm3, dword [esp + 0x28]
movss xmm4, dword [esp + 0x10]
mov ecx, dword [0x100a5ffc]
jmp 0x10046670
xor eax, eax
mov dword [esp + 0x24], eax
cmp esi, edi
jae 0x1004685d
and dword [ebp + 8], 1
mov eax, edi
sub eax, esi
push eax
push 0xa
push esi
call fcn.1005f660
add esp, 0xc
test eax, eax
cmove eax, edi
cmp dword [ebp + 8], 0
mov dword [esp + 0x28], eax
jne 0x10046849
cmp esi, eax
jne 0x100467e0
xorps xmm1, xmm1
jmp 0x10046833
movss xmm3, dword [0x100965a8]
push ecx
push eax
push esi
push ecx
lea eax, [esp + 0x50]
mov dword [esp], 0xbf800000
push eax
mov eax, dword [0x100a5ffc]
movss xmm2, dword [eax + 0x3bd0]
mov ecx, dword [eax + 0x3bcc]
call fcn.10041a10
movss xmm0, dword [esp + 0x40]
addss xmm0, dword [0x1009645c]
cvttss2si eax, xmm0
movd xmm1, eax
mov eax, dword [esp + 0x28]
cvtdq2ps xmm1, xmm1
movss dword [esp + 0x40], xmm1
movss xmm0, dword [esp + 0xc]
maxss xmm0, xmm1
movss dword [esp + 0xc], xmm0
movss dword [esp + 0x38], xmm0
lea esi, [eax + 1]
mov eax, dword [esp + 0x24]
inc eax
mov dword [esp + 0x24], eax
cmp esi, edi
jb 0x100467b8
movss xmm1, dword [esp + 0xc]
movss xmm6, dword [esp + 0x18]
movd xmm0, eax
cvtdq2ps xmm2, xmm0
mulss xmm2, dword [esp + 0x14]
addss xmm2, dword [esp + 0x34]
movss xmm3, dword [esp + 0x10]
subss xmm2, xmm6
movaps xmm0, xmm3
movss dword [esp + 0x40], xmm3
addss xmm0, xmm1
movss dword [esp + 0x44], xmm6
xorps xmm1, xmm1
lea ecx, [esp + 0x38]
movss dword [esp + 0x3c], xmm2
addss xmm2, xmm6
movss dword [esp + 0x48], xmm0
movss dword [esp + 0x4c], xmm2
call fcn.1002be40
push 0
push 0
xor edx, edx
lea ecx, [esp + 0x48]
call fcn.1002bfa0
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [esp + 0xb], 0
je 0x10046928
comiss xmm0, xmm1
ja 0x10046928
mov edx, dword [ecx + 0x3e40]
ucomiss xmm1, xmm0
lahf
test ah, 0x44
jp 0x10046904
movss xmm1, dword [edx + 0x1f8]
subss xmm1, xmm4
maxss xmm1, dword [0x10096464]
jmp 0x1004692b
comiss xmm1, xmm0
jbe 0x1004691a
movss xmm0, dword [edx + 0x14]
subss xmm0, dword [edx + 0x78]
addss xmm1, xmm0
xorps xmm0, xmm0
subss xmm1, xmm4
maxss xmm1, dword [0x10096464]
jmp 0x1004692b
xorps xmm1, xmm1
movss xmm2, dword [ecx + 0x3bd0]
movss dword [esp + 0x14], xmm1
cmp esi, edi
je 0x10046989
movss xmm3, dword [0x100965a8]
lea eax, [esp + 0x40]
push ecx
push edi
push esi
push ecx
mov ecx, dword [ecx + 0x3bcc]
movss dword [esp], xmm1
push eax
call fcn.10041a10
movss xmm0, dword [esp + 0x40]
addss xmm0, dword [0x1009645c]
movss xmm2, dword [esp + 0x44]
movss xmm4, dword [esp + 0x10]
movss xmm6, dword [esp + 0x18]
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movaps xmm1, xmm4
movss dword [esp + 0x38], xmm0
addss xmm1, xmm0
movss dword [esp + 0x3c], xmm2
movaps xmm0, xmm6
movss dword [esp + 0x40], xmm4
addss xmm0, xmm2
movss dword [esp + 0x44], xmm6
lea ecx, [esp + 0x38]
movss dword [esp + 0x48], xmm1
xorps xmm1, xmm1
movss dword [esp + 0x4c], xmm0
call fcn.1002be40
push 0
push 0
xor edx, edx
lea ecx, [esp + 0x48]
call fcn.1002bfa0
add esp, 8
test al, al
je 0x10046b00
mov edx, dword [0x100a5ffc]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x38], eax
mov eax, dword [edx + 0x3e40]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x10], edx
test edi, edi
jne 0x10046a22
mov ecx, esi
lea edi, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10046a10
mov eax, dword [edx + 0x3e40]
sub ecx, edi
lea edi, [ecx + esi]
cmp esi, edi
je 0x10046b00
mov eax, dword [eax + 0x264]
xor ecx, ecx
movss xmm1, dword [0x10096464]
mov dword [esp + 0x24], eax
call fcn.1001f210
mov ecx, dword [edx + 0x3bcc]
movss xmm2, dword [edx + 0x3bd0]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edi
test eax, 0xff000000
je 0x10046ae8
test edi, edi
jne 0x10046a8b
mov ecx, esi
lea eax, [ecx + 1]
mov dword [esp + 0x28], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10046a75
sub ecx, dword [esp + 0x28]
lea eax, [ecx + esi]
mov dword [esp + 0x20], eax
cmp esi, eax
je 0x10046ae8
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
test edx, edx
jne 0x10046a9d
mov eax, dword [ecx + 0x2c]
mov edx, dword [eax + 8]
ucomiss xmm2, dword [0x1009635c]
lahf
test ah, 0x44
jp 0x10046ab2
mov eax, dword [ecx + 0x2c]
movss xmm2, dword [eax + 0xc]
movups xmm0, xmmword [ecx + 0x60]
push 0
push ecx
movups xmmword [esp + 0x48], xmm0
lea eax, [esp + 0x48]
movss xmm0, dword [esp + 0x1c]
movss dword [esp], xmm0
push dword [esp + 0x28]
push esi
push eax
push dword [esp + 0x2c]
lea eax, [esp + 0x50]
push eax
push ecx
mov ecx, edx
call fcn.10041bc0
mov edx, dword [esp + 0x10]
cmp byte [edx + 0x5a74], 0
je 0x10046b00
push edi
mov edx, esi
lea ecx, [esp + 0x3c]
call fcn.10031820
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret