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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, dword [0x100f9110]
sub esp, 0x134
push ebx
push esi
push edi
sub eax, 0
je 0x100121a0
sub eax, 1
je 0x10012196
xor esi, esi
mov dword [esp + 0x18], esi
jmp 0x100121b8
mov dword [esp + 0x18], 2
jmp 0x100121b8
movss xmm0, dword [0x100f90d8]
mov dword [esp + 0x18], 1
movss dword [0x100fb384], xmm0
mov ecx, dword [0x1017def8]
lea eax, [esp + 0x48]
cmp dword [0x1017def4], ecx
mov edi, dword [ebp + 8]
cmovne ecx, dword [0x1017def4]
mov dword [0x1017def8], ecx
mov ecx, edi
push eax
call fcn.10011480
mov ecx, dword [0x100fc310]
lea edx, [esp + 0x6c]
mov dword [esp + 0x74], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x6c], 0
mov eax, dword [ecx]
push edx
mov eax, dword [eax + 0x4c]
call eax
push 0x84
lea eax, [esp + 0xbc]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp byte [0x100f90d0], 0
je 0x10012689
mov eax, dword [0x100f9120]
mov ebx, 3
sub eax, 0
je 0x100122a0
sub eax, 1
je 0x100122a2
sub eax, 1
jne 0x100122a0
mov ecx, edi
call fcn.10010c10
cmp eax, 2
jne 0x10012274
cmp dword [0x100fb35c], 0xe6
je 0x100122a2
mov ecx, edi
call fcn.1000e8d0
shr eax, 1
test al, 1
mov eax, 0
cmovne ebx, eax
jmp 0x100122a2
cmp eax, 8
jne 0x100122a2
mov eax, dword [0x100fb35c]
cmp eax, 0x3d
je 0x10012295
cmp eax, 0x3ee
je 0x10012295
xor al, al
xor ecx, ecx
test al, al
cmovne ebx, ecx
jmp 0x100122a2
mov al, 1
xor ecx, ecx
test al, al
cmovne ebx, ecx
jmp 0x100122a2
xor ebx, ebx
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 1
push eax
mov ecx, 0x1017dbe0
call fcn.100ce400
mov ecx, dword [eax + 4]
mov edi, dword [eax]
mov dword [esp + 0x1c], ecx
cmp edi, ecx
je 0x10012689
nop word [eax + eax]
mov ecx, dword [edi]
call fcn.1000e7d0
test al, al
jne 0x1001267c
mov ecx, dword [edi]
call fcn.1000e9f0
shr eax, 0xd
test al, 1
jne 0x1001267c
mov ecx, dword [edi]
add ecx, 8
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
call eax
mov ecx, dword [0x100fc310]
lea esi, [esp + 0xb8]
push esi
push eax
mov edx, dword [ecx]
mov edx, dword [edx + 0x20]
call edx
mov esi, dword [esp + 0x18]
test al, al
je 0x1001267c
cmp byte [0x100f90b8], 0
je 0x1001233a
mov ecx, dword [edi]
call fcn.1000e8d0
test eax, 0x4020
jne 0x1001267c
cmp byte [0x100f90e8], 0
je 0x10012363
mov ecx, dword [edi]
call fcn.1000e8d0
shr eax, 4
test al, 1
je 0x10012363
mov ecx, dword [edi]
call fcn.1000e8d0
test eax, 0x9000000
je 0x1001267c
cmp byte [0x100f90b0], 0
je 0x1001237e
mov ecx, dword [edi]
call fcn.1000e8d0
shr eax, 7
test al, 1
jne 0x1001267c
cmp byte [0x100f90a8], 0
je 0x100123a0
mov ecx, dword [edi]
add ecx, 8
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
call eax
cmp byte [eax + 0x1017dbf4], 0
jne 0x1001267c
mov eax, dword [esp + 0x100]
mov ecx, 0x100fb4a4
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x58]
push eax
call fcn.10008c20
mov eax, dword [esp + 0x5c]
mov edx, dword [0x100fb4a4]
cmp byte [eax + 0xd], 0
jne 0x100123db
mov ecx, dword [esp + 0x100]
cmp ecx, dword [eax + 0x10]
jge 0x100123dd
mov eax, edx
mov dword [esp + 0x18], esi
cmp eax, edx
jne 0x1001267c
cmp byte [0x100f90c0], 0
je 0x10012454
mov ecx, dword [ebp + 0xc]
call fcn.100115e0
mov ecx, dword [edi]
movss dword [esp + 0x14], xmm0
call fcn.10010b10
movss xmm0, dword [esp + 0x14]
movd xmm1, eax
mov eax, 3
cvtdq2ps xmm1, xmm1
comiss xmm0, xmm1
cmovae ebx, eax
mov eax, dword [0x100fb35c]
cmp eax, 0x3d
je 0x10012430
cmp eax, 0x3ee
jne 0x10012454
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x78]
push eax
call fcn.10011850
mov ecx, dword [edi]
mov esi, eax
call fcn.10010b10
cmp dword [esi], eax
mov eax, 3
mov esi, dword [esp + 0x18]
cmovge ebx, eax
mov ecx, dword [edi]
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.100112d0
movss xmm0, dword [esp + 0x4c]
sub esp, 8
subss xmm0, dword [esp + 0x48]
movss xmm2, dword [esp + 0x58]
subss xmm2, dword [esp + 0x4c]
movss xmm1, dword [esp + 0x50]
subss xmm1, dword [esp + 0x44]
movss dword [esp + 0x38], xmm0
mov dword [esp + 0x28], 0
movss dword [esp + 0x3c], xmm2
movss dword [esp + 0x1c], xmm2
movaps xmm2, xmm0
mulss xmm2, xmm0
movaps xmm0, xmm1
mov dword [esp + 0x2c], 0
mulss xmm0, xmm1
mov dword [esp + 0x30], 0
movss dword [esp + 0x34], xmm1
addss xmm2, xmm0
cvtps2pd xmm0, xmm2
movss dword [esp + 0x40], xmm2
movsd qword [esp], xmm0
call fcn.1000fd70
fdivr dword [esp + 0x14]
fstp dword [esp + 0x14]
movss xmm0, dword [esp + 0x14]
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atanf
mulss xmm0, dword [0x100f07d4]
movss dword [esp + 0x14], xmm0
movss dword [esp + 0x20], xmm0
movss xmm0, dword [esp + 0x30]
divss xmm0, dword [esp + 0x2c]
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atanf
movaps xmm1, xmm0
xorps xmm3, xmm3
mulss xmm1, dword [0x100f07d4]
xorps xmm4, xmm4
movss xmm0, dword [esp + 0x2c]
comiss xmm0, xmm3
movss dword [esp + 0x24], xmm1
movss dword [esp + 0x28], xmm4
jb 0x1001254b
addss xmm1, dword [0x100f0830]
movss dword [esp + 0x24], xmm1
cmp esi, 1
jne 0x10012584
lea edx, [esp + 0x20]
lea ecx, [esp + 0x6c]
call fcn.1000ff40
movaps xmm2, xmm0
xorps xmm0, xmm0
comiss xmm2, dword [0x100f90d8]
ja 0x1001267c
movss xmm4, dword [esp + 0x28]
movss xmm1, dword [esp + 0x24]
movss xmm3, dword [esp + 0x20]
jmp 0x100125ac
xorps xmm2, xmm2
cmp esi, 2
jne 0x100125a3
movss xmm0, dword [esp + 0x34]
mulss xmm0, xmm0
addss xmm0, dword [esp + 0x38]
call fcn.1000fd60
jmp 0x100125a6
xorps xmm0, xmm0
movss xmm3, dword [esp + 0x14]
movss xmm5, dword [esp + 0x3c]
movss xmm6, dword [esp + 0x40]
movss xmm7, dword [esp + 0x44]
mov eax, dword [0x1017def8]
mov ecx, dword [edi]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], 1
movss dword [esp + 0x80], xmm5
movss dword [esp + 0x84], xmm6
movss dword [esp + 0x88], xmm7
movss dword [esp + 0x8c], xmm3
movss dword [esp + 0x90], xmm1
movss dword [esp + 0x94], xmm4
movss dword [esp + 0x98], xmm2
movss dword [esp + 0x9c], xmm0
mov dword [esp + 0xa0], ebx
mov byte [esp + 0xa4], 0
cmp eax, dword [0x1017defc]
je 0x10012671
mov dword [eax], ecx
mov dword [eax + 4], 1
movss dword [eax + 8], xmm5
movss dword [eax + 0xc], xmm6
movss dword [eax + 0x10], xmm7
movss dword [eax + 0x14], xmm3
movss dword [eax + 0x18], xmm1
movss dword [eax + 0x1c], xmm4
movss dword [eax + 0x20], xmm2
movss dword [eax + 0x24], xmm0
mov dword [eax + 0x28], ebx
mov byte [eax + 0x2c], 0
add dword [0x1017def8], 0x30
jmp 0x1001267c
lea ecx, [esp + 0x78]
push ecx
push eax
call fcn.10014240
add edi, 4
cmp edi, dword [esp + 0x1c]
jne 0x100122d0
cmp byte [0x100f90e0], 0
je 0x1001297f
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 4
push eax
mov ecx, 0x1017dbe0
call fcn.100ce400
mov ebx, dword [eax + 4]
mov edi, dword [eax]
cmp edi, ebx
je 0x1001297f
nop word [eax + eax]
mov ecx, dword [edi]
call fcn.1000e7d0
test al, al
jne 0x10012974
mov esi, dword [edi]
lea edx, [esp + 0x3c]
mov eax, dword [esi + 4]
lea ecx, [esi + 4]
push edx
lea edx, [esp + 0x58]
mov dword [esp + 0x60], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
mov eax, dword [eax + 0x50]
push edx
call eax
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x24]
call eax
movss xmm3, dword [esp + 0x44]
sub esp, 8
addss xmm3, dword [esp + 0x64]
movss xmm1, dword [esp + 0x50]
movss xmm0, dword [eax]
movss xmm2, dword [eax + 4]
subss xmm1, xmm0
movss dword [esp + 0x68], xmm0
mulss xmm3, dword [0x100f0654]
movss xmm0, dword [esp + 0x54]
subss xmm0, xmm2
movss dword [esp + 0x6c], xmm2
addss xmm3, dword [eax + 8]
movss xmm2, dword [esp + 0x58]
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
movss dword [esp + 0x40], xmm0
subss xmm2, xmm3
movss dword [esp + 0x70], xmm3
movaps xmm3, xmm0
mov dword [esp + 0x30], 0
mulss xmm3, xmm0
movaps xmm0, xmm1
mulss xmm0, xmm1
movss dword [esp + 0x1c], xmm1
movss dword [esp + 0x3c], xmm2
addss xmm3, xmm0
cvtps2pd xmm0, xmm3
movss dword [esp + 0x38], xmm3
movsd qword [esp], xmm0
call fcn.1000fd70
movss dword [esp + 0x1c], xmm2
fdivr dword [esp + 0x1c]
fstp dword [esp + 0x1c]
movss xmm0, dword [esp + 0x1c]
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atanf
mulss xmm0, dword [0x100f07d4]
movss dword [esp + 0x2c], xmm0
movss dword [esp + 0x20], xmm0
movss xmm0, dword [esp + 0x38]
divss xmm0, dword [esp + 0x14]
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atanf
movaps xmm1, xmm0
xorps xmm2, xmm2
mulss xmm1, dword [0x100f07d4]
xorps xmm4, xmm4
movss xmm0, dword [esp + 0x14]
comiss xmm0, xmm2
movss dword [esp + 0x24], xmm1
movss dword [esp + 0x28], xmm4
jb 0x10012837
addss xmm1, dword [0x100f0830]
movss dword [esp + 0x24], xmm1
mov esi, dword [esp + 0x18]
cmp esi, 1
jne 0x10012871
lea edx, [esp + 0x20]
lea ecx, [esp + 0x6c]
call fcn.1000ff40
movaps xmm2, xmm0
comiss xmm2, dword [0x100f90d8]
ja 0x10012974
movss xmm4, dword [esp + 0x28]
movss xmm1, dword [esp + 0x24]
movss xmm3, dword [esp + 0x20]
jmp 0x10012899
cmp esi, 2
jne 0x10012893
movss xmm0, dword [esp + 0x34]
mulss xmm0, xmm0
addss xmm0, dword [esp + 0x30]
call fcn.1000fd60
movss xmm3, dword [esp + 0x2c]
jmp 0x1001289c
movss xmm3, dword [esp + 0x2c]
xorps xmm0, xmm0
movss xmm6, dword [esp + 0x60]
movss xmm7, dword [esp + 0x64]
movss xmm5, dword [esp + 0x68]
mov eax, dword [0x1017def8]
mov ecx, dword [edi]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], 2
movss dword [esp + 0x80], xmm6
movss dword [esp + 0x84], xmm7
movss dword [esp + 0x88], xmm5
movss dword [esp + 0x8c], xmm3
movss dword [esp + 0x90], xmm1
movss dword [esp + 0x94], xmm4
movss dword [esp + 0x98], xmm2
movss dword [esp + 0x9c], xmm0
mov dword [esp + 0xa0], 0xffffffff
mov byte [esp + 0xa4], 0
cmp eax, dword [0x1017defc]
je 0x10012969
mov dword [eax], ecx
mov dword [eax + 4], 2
movss dword [eax + 8], xmm6
movss dword [eax + 0xc], xmm7
movss dword [eax + 0x10], xmm5
movss dword [eax + 0x14], xmm3
movss dword [eax + 0x18], xmm1
movss dword [eax + 0x1c], xmm4
movss dword [eax + 0x20], xmm2
movss dword [eax + 0x24], xmm0
mov dword [eax + 0x28], 0xffffffff
mov byte [eax + 0x2c], 0
add dword [0x1017def8], 0x30
jmp 0x10012974
lea ecx, [esp + 0x78]
push ecx
push eax
call fcn.10014240
add edi, 4
cmp edi, ebx
jne 0x100126c0
mov eax, dword [0x1017def4]
cmp eax, dword [0x1017def8]
pop edi
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret 8