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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4d0
mov eax, dword [0x1030b908]
xor eax, esp
mov dword [esp + 0x4cc], eax
mov eax, dword [ebp + 8]
lea ecx, [esp + 8]
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 0xc]
push esi
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x18]
push str.Coords
mov dword [esp + 0x2c], eax
call fcn.100139c3
lea eax, [esp + 0x10]
mov ecx, edi
push eax
call fcn.1001eea5
lea ecx, [esp + 0x10]
mov esi, eax
call fcn.10013aa3
test esi, esi
je 0x100474e2
push 0
mov ecx, esi
call fcn.10022c86
xor eax, eax
mov ecx, esi
inc eax
fstp dword [esp + 0x44]
push eax
call fcn.10022c86
fstp dword [esp + 0x40]
push 2
mov ecx, esi
call fcn.10022c86
fstp dword [esp + 0x48]
push 3
mov ecx, esi
call fcn.10022c86
fstp dword [esp + 0x5c]
push 4
mov ecx, esi
call fcn.10022c86
fstp dword [esp + 0x58]
push 5
mov ecx, esi
call fcn.10022c86
push dword [esp + 0x14]
and dword [esp + 0x88], 0
lea ecx, [esp + 0x74]
and dword [esp + 0x84], 0
and dword [esp + 0x7c], 0
and dword [esp + 0x78], 0
fstp dword [esp + 0x40]
mov dword [esp + 0x80], 0x3f800000
mov dword [esp + 0x74], 0x3f800000
call fcn.10015a9d
xorps xmm0, xmm0
lea ecx, [esp + 0x10]
movss dword [esp + 0x20], xmm0
movss xmm0, dword [0x1014e294]
push str.Domain
movss dword [esp + 0x20], xmm0
call fcn.100139c3
lea eax, [esp + 0x10]
mov ecx, edi
push eax
call fcn.1001eea5
lea ecx, [esp + 0x10]
mov esi, eax
call fcn.10013aa3
test esi, esi
je 0x10046ffc
push 0
mov ecx, esi
call fcn.10022c86
fstp dword [esp + 0x14]
push 1
mov ecx, esi
call fcn.10022c86
movss xmm0, dword [esp + 0x14]
fstp dword [esp + 0xc]
movss dword [esp + 0x20], xmm0
movss xmm0, dword [esp + 0xc]
movss dword [esp + 0x1c], xmm0
and dword [esp + 0x4c], 0
lea ecx, [esp + 0x18]
and dword [esp + 0x10], 0
push str.Extend
call fcn.100139c3
lea eax, [esp + 0x18]
mov ecx, edi
push eax
call fcn.1001eea5
lea ecx, [esp + 0x18]
mov esi, eax
call fcn.10013aa3
test esi, esi
je 0x10047049
push 0
mov ecx, esi
call fcn.10022bdb
push 1
mov ecx, esi
mov dword [esp + 0x50], eax
call fcn.10022bdb
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x28]
call fcn.10017dba
push dword [esp + 0x24]
mov esi, eax
call fcn.100447b5
mov edi, eax
cmp edi, esi
pop ecx
cmovb edi, esi
lea ecx, [esp + 0x88]
push edi
call fcn.1004232b
cmp dword [esp + 0xc8], 0
lea ecx, [esp + 0x88]
mov eax, edi
cmovne ecx, dword [esp + 0xc8]
shl eax, 2
push eax
push 0
push ecx
mov dword [esp + 0x38], ecx
call fcn.10128a60
movss xmm1, dword [esp + 0x28]
xor ecx, ecx
movss xmm2, dword [esp + 0x2c]
add esp, 0xc
shl dword [ebp + 0x1c], 8
subss xmm1, xmm2
mov dword [esp + 0x14], ecx
movss dword [esp + 0x1c], xmm1
movd xmm0, ecx
xor eax, eax
mov ecx, dword [esp + 0x24]
cvtdq2ps xmm0, xmm0
mov dword [esp + 0x18], eax
mov edi, dword [ecx + 4]
mov esi, dword [ecx]
mulss xmm0, xmm1
mulss xmm0, dword [0x101557e4]
addss xmm0, xmm2
movss dword [esp + 0x54], xmm0
jmp 0x1004711f
cmp dword [esi], 0
je 0x1004711c
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x30]
lea eax, [ecx + eax*4]
mov ecx, dword [esi]
push eax
push 1
lea eax, [esp + 0x60]
push eax
call fcn.1004abfe
test eax, eax
mov eax, dword [esp + 0x18]
je 0x1004711c
add eax, dword [esp + 0x38]
mov dword [esp + 0x18], eax
add esi, 4
cmp esi, edi
jne 0x100470ec
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0xc]
and dword [esp + 0x30], 0
and dword [esp + 0x34], 0
and dword [esp + 0xc], 0
mov eax, dword [ecx]
push edx
lea edx, [esp + 0x38]
push edx
lea edx, [esp + 0x38]
push edx
push dword [esp + 0x38]
call dword [eax + 4]
movss xmm0, dword [esp + 0x30]
mulss xmm0, dword [0x1014e378]
push ecx
movss dword [esp], xmm0
call fcn.10015fb2
movss xmm0, dword [esp + 0x38]
mov esi, eax
mulss xmm0, dword [0x1014e378]
or esi, dword [ebp + 0x1c]
shl esi, 8
movss dword [esp], xmm0
call fcn.10015fb2
movss xmm0, dword [esp + 0x10]
mov edi, eax
mulss xmm0, dword [0x1014e378]
or edi, esi
shl edi, 8
movss dword [esp], xmm0
call fcn.10015fb2
movss xmm1, dword [esp + 0x20]
or eax, edi
movss xmm2, dword [esp + 0x24]
pop ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + ecx*4 + 0xd0], eax
inc ecx
mov dword [esp + 0x14], ecx
cmp ecx, 0x100
jl 0x100470be
movss xmm0, dword [esp + 0x40]
xor esi, esi
movss xmm1, dword [esp + 0x44]
subss xmm0, dword [esp + 0x58]
subss xmm1, dword [esp + 0x5c]
movss xmm3, dword [esp + 0x48]
comiss xmm3, dword [esp + 0x3c]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x14], esi
mov eax, dword [ecx + 8]
mov edi, dword [ecx + 0xc]
mov dword [esp + 0x2c], eax
mov eax, dword [ecx + 0x18]
movaps xmm2, xmm3
mulss xmm0, xmm0
mov dword [esp + 0x6c], edi
subss xmm2, dword [esp + 0x3c]
mulss xmm1, xmm1
mov dword [esp + 0x68], eax
addss xmm1, xmm0
movss dword [esp + 0x38], xmm2
movaps xmm0, xmm2
mulss xmm0, xmm2
movaps xmm2, xmm1
subss xmm2, xmm0
movss dword [esp + 0x30], xmm2
jbe 0x10047272
cvtps2pd xmm0, xmm1
call fcn.1012fc90
movss xmm1, dword [esp + 0x38]
cvtsd2ss xmm0, xmm0
mov ecx, dword [esp + 0x50]
push 1
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
pop eax
comiss xmm1, xmm0
cmova esi, eax
mov dword [esp + 0x14], esi
xor esi, esi
mov dword [esp + 0x28], esi
test edi, edi
jle 0x100474cb
xor edi, edi
mov dword [esp + 0x24], edi
mov eax, dword [ecx]
call dword [eax + 4]
add eax, edi
xor edi, edi
mov dword [esp + 0x60], eax
cmp dword [esp + 0x2c], edi
jle 0x100474ac
movss xmm0, dword [esp + 0x58]
subss xmm0, dword [esp + 0x40]
movss xmm1, dword [esp + 0x3c]
movd xmm2, esi
mov esi, dword [esp + 0x14]
cvtdq2ps xmm2, xmm2
movss dword [esp + 0x54], xmm0
movss xmm0, dword [esp + 0x5c]
subss xmm0, dword [esp + 0x44]
movss dword [esp + 0x64], xmm2
movss dword [esp + 0x38], xmm0
movss xmm0, dword [esp + 0x48]
subss xmm1, xmm0
movss dword [esp + 0x1c], xmm1
mulss xmm1, xmm0
movss dword [esp + 0x20], xmm1
movaps xmm1, xmm0
mulss xmm1, xmm0
movss dword [esp + 0x18], xmm1
movd xmm0, edi
lea eax, [esp + 0xc]
cvtdq2ps xmm0, xmm0
push eax
lea eax, [esp + 0x38]
lea ecx, [esp + 0x74]
push eax
movss dword [esp + 0x14], xmm2
movss dword [esp + 0x3c], xmm0
call fcn.10015bb5
movss xmm1, dword [esp + 0xc]
xorps xmm6, xmm6
movss xmm2, dword [esp + 0x34]
subss xmm2, dword [esp + 0x44]
subss xmm1, dword [esp + 0x40]
movss xmm3, dword [esp + 0x38]
movss xmm0, dword [esp + 0x54]
movss xmm5, dword [esp + 0x30]
mulss xmm3, xmm2
mulss xmm0, xmm1
ucomiss xmm5, xmm6
addss xmm3, xmm0
mulss xmm2, xmm2
mulss xmm1, xmm1
lahf
addss xmm3, dword [esp + 0x20]
addss xmm2, xmm1
mulss xmm3, dword [0x10155800]
subss xmm2, dword [esp + 0x18]
movss dword [esp + 0xc], xmm3
test ah, 0x44
jp 0x1004739d
divss xmm2, xmm3
xorps xmm2, xmmword [0x1014ebf0]
jmp 0x1004745d
mulss xmm2, xmm5
movaps xmm0, xmm3
mulss xmm0, xmm3
mulss xmm2, dword [0x101557f8]
subss xmm0, xmm2
comiss xmm6, xmm0
ja 0x10047497
cvtps2pd xmm0, xmm0
call fcn.1012fc90
movss xmm5, dword [esp + 0x30]
xorps xmm4, xmm4
cvtsd2ss xmm4, xmm0
xorps xmm6, xmm6
movaps xmm0, xmm5
comiss xmm5, xmm6
addss xmm0, xmm5
jbe 0x100473fd
movss xmm1, dword [esp + 0xc]
movaps xmm2, xmm4
xorps xmm1, xmmword [0x1014ebf0]
subss xmm2, dword [esp + 0xc]
subss xmm1, xmm4
jmp 0x10047417
movss xmm2, dword [esp + 0xc]
movaps xmm1, xmm4
xorps xmm2, xmmword [0x1014ebf0]
subss xmm1, dword [esp + 0xc]
subss xmm2, xmm4
divss xmm1, xmm0
divss xmm2, xmm0
test esi, esi
je 0x10047431
comiss xmm1, xmm6
jae 0x10047445
cmp dword [esp + 0x4c], 0
je 0x10047448
jmp 0x10047445
movss xmm0, dword [0x1014e294]
comiss xmm0, xmm2
jae 0x10047448
cmp dword [esp + 0x10], 0
jne 0x10047448
movaps xmm2, xmm1
movss xmm0, dword [esp + 0x1c]
mulss xmm0, xmm2
addss xmm0, dword [esp + 0x48]
comiss xmm6, xmm0
ja 0x10047497
mulss xmm2, dword [0x1014e378]
cvttss2si eax, xmm2
test eax, eax
jns 0x10047476
cmp dword [esp + 0x4c], 0
je 0x10047497
xor eax, eax
cmp eax, 0x100
jl 0x10047489
cmp dword [esp + 0x10], 0
je 0x10047497
mov eax, 0xff
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + eax*4 + 0xd0]
mov dword [ecx + edi*4], eax
movss xmm2, dword [esp + 0x64]
inc edi
cmp edi, dword [esp + 0x2c]
jl 0x100472ff
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
inc esi
add edi, dword [esp + 0x68]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], edi
cmp esi, dword [esp + 0x6c]
jl 0x10047286
cmp dword [esp + 0xc8], 0
je 0x100474e2
push dword [esp + 0xc8]
call fcn.1012ef4e
pop ecx
mov ecx, dword [esp + 0x4d4]
pop edi
pop esi
xor ecx, esp
call fcn.10127041
mov esp, ebp
pop ebp
ret