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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, dword [0x100f9194]
sub esp, 0x134
push ebx
push esi
push edi
sub eax, 0
je 0x10018189
sub eax, 1
je 0x10018182
xor ebx, ebx
jmp 0x1001819e
mov ebx, 2
jmp 0x1001819e
movss xmm0, dword [0x100f90d8]
mov ebx, 1
movss dword [0x100fb384], xmm0
mov ecx, dword [0x1017def8]
lea eax, [esp + 0x54]
cmp dword [0x1017def4], ecx
mov esi, dword [ebp + 8]
cmovne ecx, dword [0x1017def4]
mov dword [0x1017def8], ecx
mov ecx, esi
push eax
call fcn.10011480
mov ecx, dword [0x100fc310]
lea edx, [esp + 0xac]
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb0], 0
mov dword [esp + 0xac], 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 0x100185e7
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
mov eax, dword [eax + 0x5e4]
call eax
xor ecx, ecx
cmp eax, 0x49
lea eax, [esp + 0x24]
setne cl
mov dword [esp + 0x24], ecx
mov ecx, 0x1017dbe0
push eax
call fcn.100ce400
mov ecx, dword [eax + 4]
mov edi, dword [eax]
mov dword [esp + 0x28], ecx
cmp edi, ecx
je 0x100185e7
nop dword [eax]
mov ecx, dword [edi]
call fcn.1000e7d0
test al, al
jne 0x100185da
mov ecx, dword [edi]
call fcn.1000e9f0
shr eax, 0xd
test al, 1
jne 0x100185da
mov ecx, dword [edi]
cmp ecx, esi
je 0x100185da
mov eax, dword [ecx + 8]
add ecx, 8
mov eax, dword [eax + 0x24]
call eax
mov ecx, dword [0x100fc310]
mov edx, dword [ecx]
lea ecx, [esp + 0xb8]
push ecx
mov ecx, dword [0x100fc310]
push eax
mov edx, dword [edx + 0x20]
call edx
test al, al
je 0x100185da
mov ecx, dword [edi]
call fcn.10005ff0
mov ecx, dword [ebp + 8]
mov esi, eax
call fcn.10005ff0
cmp esi, eax
je 0x100183aa
cmp byte [0x100f90b8], 0
je 0x100182ee
mov ecx, dword [edi]
call fcn.1000e8d0
test eax, 0x4020
jne 0x100185d7
cmp byte [0x100f90e8], 0
je 0x10018317
mov ecx, dword [edi]
call fcn.1000e8d0
shr eax, 4
test al, 1
je 0x10018317
mov ecx, dword [edi]
call fcn.1000e8d0
test eax, 0x9000000
je 0x100185d7
cmp byte [0x100f90b0], 0
je 0x10018332
mov ecx, dword [edi]
call fcn.1000e8d0
shr eax, 7
test al, 1
jne 0x100185d7
cmp byte [0x100f90a8], 0
je 0x1001836c
mov ecx, dword [edi]
add ecx, 8
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
call eax
cmp byte [eax + 0x1017dbf4], 0
je 0x1001836c
mov ecx, dword [edi]
call fcn.10005ff0
mov ecx, dword [0x1017dbe8]
mov esi, eax
call fcn.10005ff0
cmp esi, eax
jne 0x100185d7
mov esi, dword [esp + 0x100]
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x64]
mov dword [esp + 0x28], esi
push eax
mov ecx, 0x100fb4a4
call fcn.10008c20
mov eax, dword [esp + 0x68]
mov ecx, dword [0x100fb4a4]
cmp byte [eax + 0xd], 0
jne 0x100183a0
cmp esi, dword [eax + 0x10]
jge 0x100183a2
mov eax, ecx
cmp eax, ecx
jne 0x100185d7
push dword [edi]
mov esi, dword [ebp + 8]
lea eax, [esp + 0x4c]
push esi
push eax
call fcn.10017d10
movss xmm0, dword [esp + 0x58]
sub esp, 8
subss xmm0, dword [esp + 0x54]
movss xmm2, dword [esp + 0x64]
subss xmm2, dword [esp + 0x58]
movss xmm1, dword [esp + 0x5c]
subss xmm1, dword [esp + 0x50]
movss dword [esp + 0x44], xmm0
mov dword [esp + 0x34], 0
movss dword [esp + 0x48], xmm2
movss dword [esp + 0x2c], xmm2
movaps xmm2, xmm0
mulss xmm2, xmm0
movaps xmm0, xmm1
mov dword [esp + 0x38], 0
mulss xmm0, xmm1
mov dword [esp + 0x3c], 0
movss dword [esp + 0x40], xmm1
addss xmm2, xmm0
cvtps2pd xmm0, xmm2
movss dword [esp + 0x4c], xmm2
movsd qword [esp], xmm0
call fcn.1000fd70
fdivr dword [esp + 0x24]
fstp dword [esp + 0x24]
movss xmm0, dword [esp + 0x24]
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atanf
mulss xmm0, dword [0x100f07d4]
movss dword [esp + 0x24], xmm0
movss dword [esp + 0x2c], xmm0
movss xmm0, dword [esp + 0x3c]
divss xmm0, dword [esp + 0x38]
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 + 0x38]
comiss xmm0, xmm3
movss dword [esp + 0x30], xmm1
movss dword [esp + 0x34], xmm4
jb 0x100184a4
addss xmm1, dword [0x100f0830]
movss dword [esp + 0x30], xmm1
cmp ebx, 1
jne 0x100184e0
lea edx, [esp + 0x2c]
lea ecx, [esp + 0xac]
call fcn.1000ff40
movaps xmm2, xmm0
xorps xmm3, xmm3
comiss xmm2, dword [0x100f90d8]
ja 0x100185da
movss xmm4, dword [esp + 0x34]
movss xmm1, dword [esp + 0x30]
movss xmm0, dword [esp + 0x2c]
jmp 0x10018506
xorps xmm2, xmm2
cmp ebx, 2
jne 0x10018500
movss xmm0, dword [esp + 0x40]
mulss xmm0, xmm0
addss xmm0, dword [esp + 0x44]
call fcn.1000fd60
movaps xmm3, xmm0
movss xmm0, dword [esp + 0x24]
movss xmm5, dword [esp + 0x48]
movss xmm6, dword [esp + 0x4c]
movss xmm7, dword [esp + 0x50]
mov eax, dword [0x1017def8]
mov ecx, dword [edi]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], 1
movss dword [esp + 0x74], xmm5
movss dword [esp + 0x78], xmm6
movss dword [esp + 0x7c], xmm7
movss dword [esp + 0x80], xmm0
movss dword [esp + 0x84], xmm1
movss dword [esp + 0x88], xmm4
movss dword [esp + 0x8c], xmm2
movss dword [esp + 0x90], xmm3
mov dword [esp + 0x94], 0xffffffff
mov byte [esp + 0x98], 0
cmp eax, dword [0x1017defc]
je 0x100185ca
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], xmm0
movss dword [eax + 0x18], xmm1
movss dword [eax + 0x1c], xmm4
movss dword [eax + 0x20], xmm2
movss dword [eax + 0x24], xmm3
mov dword [eax + 0x28], 0xffffffff
mov byte [eax + 0x2c], 0
add dword [0x1017def8], 0x30
jmp 0x100185da
lea ecx, [esp + 0x6c]
push ecx
push eax
call fcn.10014240
jmp 0x100185da
mov esi, dword [ebp + 8]
add edi, 4
cmp edi, dword [esp + 0x28]
jne 0x10018260
cmp byte [0x100f90e0], 0
je 0x100188fd
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
mov eax, dword [eax + 0x5e4]
call eax
xor edx, edx
mov ecx, 0x1017dbe0
cmp eax, 0x5a
lea eax, [esp + 0x28]
push eax
setne dl
add edx, 3
mov dword [esp + 0x2c], edx
call fcn.100ce400
mov ecx, dword [eax + 4]
mov edi, dword [eax]
mov dword [esp + 0xa8], ecx
cmp edi, ecx
je 0x100188fd
mov ecx, dword [edi]
call fcn.1000e7d0
test al, al
jne 0x100188ed
mov esi, dword [edi]
lea edx, [esp + 0x48]
mov eax, dword [esi + 4]
lea ecx, [esi + 4]
push edx
lea edx, [esp + 0x64]
mov dword [esp + 0x6c], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x4c], 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 + 0x50]
sub esp, 8
addss xmm3, dword [esp + 0x70]
movss xmm1, dword [esp + 0x5c]
movss xmm0, dword [eax]
movss xmm2, dword [eax + 4]
subss xmm1, xmm0
movss dword [esp + 0xa4], xmm0
mulss xmm3, dword [0x100f0654]
movss xmm0, dword [esp + 0x60]
subss xmm0, xmm2
movss dword [esp + 0xa8], xmm2
addss xmm3, dword [eax + 8]
movss xmm2, dword [esp + 0x64]
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
movss dword [esp + 0x4c], xmm0
subss xmm2, xmm3
movss dword [esp + 0xac], xmm3
movaps xmm3, xmm0
mov dword [esp + 0x3c], 0
mulss xmm3, xmm0
movaps xmm0, xmm1
mulss xmm0, xmm1
movss dword [esp + 0x2c], xmm1
movss dword [esp + 0x48], xmm2
addss xmm3, xmm0
cvtps2pd xmm0, xmm3
movss dword [esp + 0x44], xmm3
movsd qword [esp], xmm0
call fcn.1000fd70
movss dword [esp + 0x28], xmm2
fdivr dword [esp + 0x28]
fstp dword [esp + 0x28]
movss xmm0, dword [esp + 0x28]
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atanf
mulss xmm0, dword [0x100f07d4]
movss dword [esp + 0x38], xmm0
movss dword [esp + 0x2c], xmm0
movss xmm0, dword [esp + 0x44]
divss xmm0, dword [esp + 0x24]
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 + 0x24]
comiss xmm0, xmm3
movss dword [esp + 0x30], xmm1
movss dword [esp + 0x34], xmm4
jb 0x100187b3
addss xmm1, dword [0x100f0830]
movss dword [esp + 0x30], xmm1
cmp ebx, 1
jne 0x100187ef
lea edx, [esp + 0x2c]
lea ecx, [esp + 0xac]
call fcn.1000ff40
movaps xmm2, xmm0
xorps xmm3, xmm3
comiss xmm2, dword [0x100f90d8]
ja 0x100188ed
movss xmm4, dword [esp + 0x34]
movss xmm1, dword [esp + 0x30]
movss xmm0, dword [esp + 0x2c]
jmp 0x10018815
xorps xmm2, xmm2
cmp ebx, 2
jne 0x1001880f
movss xmm0, dword [esp + 0x40]
mulss xmm0, xmm0
addss xmm0, dword [esp + 0x3c]
call fcn.1000fd60
movaps xmm3, xmm0
movss xmm0, dword [esp + 0x38]
movss xmm6, dword [esp + 0x9c]
movss xmm7, dword [esp + 0xa0]
movss xmm5, dword [esp + 0xa4]
mov eax, dword [0x1017def8]
mov ecx, dword [edi]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], 2
movss dword [esp + 0x74], xmm6
movss dword [esp + 0x78], xmm7
movss dword [esp + 0x7c], xmm5
movss dword [esp + 0x80], xmm0
movss dword [esp + 0x84], xmm1
movss dword [esp + 0x88], xmm4
movss dword [esp + 0x8c], xmm2
movss dword [esp + 0x90], xmm3
mov dword [esp + 0x94], 0xffffffff
mov byte [esp + 0x98], 0
cmp eax, dword [0x1017defc]
je 0x100188e2
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], xmm0
movss dword [eax + 0x18], xmm1
movss dword [eax + 0x1c], xmm4
movss dword [eax + 0x20], xmm2
movss dword [eax + 0x24], xmm3
mov dword [eax + 0x28], 0xffffffff
mov byte [eax + 0x2c], 0
add dword [0x1017def8], 0x30
jmp 0x100188ed
lea ecx, [esp + 0x6c]
push ecx
push eax
call fcn.10014240
add edi, 4
cmp edi, dword [esp + 0xa8]
jne 0x10018633
mov eax, dword [0x1017def4]
cmp eax, dword [0x1017def8]
pop edi
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret 8