Function at 0x10038560
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc4
mov eax, dword [0x1004b040]
xor eax, esp
mov dword [esp + 0xc0], eax
mov ecx, dword [ebp + 0x4c]
xor al, al
push esi
mov esi, dword [ebp + 0x50]
mov byte [esp + 7], al
cmp byte [0x10f6c6e3], al
je 0x10038932
call fcn.1002c2b0
movzx eax, byte [ebp + 0x54]
inc eax
movss dword [esp + 0xc], xmm0
push eax
call dword [0x1004b8c0]
mov dword [esp], 0x3f000000
push ecx
mov dword [esp], 0xbf000000
call dword [0x1004b8c8]
fstp dword [esp + 0x10]
mov dword [esp + 4], 0x3f000000
mov dword [esp], 0xbf000000
call dword [0x1004b8c8]
fadd dword [esp + 0x10]
mov dword [esp + 4], 0x3f000000
mov dword [esp], 0xbf000000
fstp dword [esp + 0x10]
movss xmm0, dword [esp + 0x10]
mulss xmm0, dword [esp + 0x14]
movss dword [esp + 0x18], xmm0
call dword [0x1004b8c8]
fstp dword [esp + 0x10]
mov dword [esp + 4], 0x3f000000
mov dword [esp], 0xbf000000
call dword [0x1004b8c8]
fadd dword [esp + 0x10]
add esp, 8
movss xmm2, dword [esp + 0x10]
fmul dword [esp + 0xc]
movaps xmm3, xmm2
mulss xmm3, dword [ebp + 0x2c]
movaps xmm4, xmm2
mulss xmm4, dword [ebp + 0x30]
addss xmm3, dword [ebp + 0x20]
movss xmm5, dword [ebp + 0x34]
addss xmm4, dword [ebp + 0x24]
fstp dword [esp + 0xc]
movss xmm1, dword [esp + 0xc]
movaps xmm0, xmm1
mulss xmm5, xmm2
mulss xmm0, dword [ebp + 0x38]
addss xmm5, dword [ebp + 0x28]
movss xmm7, dword [0x10046334]
addss xmm3, xmm0
movaps xmm0, xmm1
mulss xmm0, dword [ebp + 0x3c]
addss xmm4, xmm0
movss xmm0, dword [ebp + 0x40]
mulss xmm0, xmm1
addss xmm5, xmm0
movaps xmm1, xmm4
mulss xmm1, xmm4
movaps xmm0, xmm3
mulss xmm0, xmm3
addss xmm1, xmm0
movaps xmm0, xmm5
mulss xmm0, xmm5
addss xmm1, xmm0
addss xmm1, dword [0x1004610c]
cvtps2pd xmm0, xmm1
movsd xmm1, qword [0x10046268]
sqrtsd xmm0, xmm0
divsd xmm1, xmm0
cvtpd2ps xmm0, xmm1
movaps xmm6, xmm0
movaps xmm1, xmm0
mulss xmm6, xmm4
mulss xmm0, xmm5
xorps xmm5, xmm5
ucomiss xmm6, xmm5
mulss xmm1, xmm3
lahf
movss dword [esp + 0xc], xmm6
movss dword [esp + 8], xmm1
movss dword [ebp + 0x20], xmm1
movss dword [ebp + 0x24], xmm6
movss dword [esp + 0x10], xmm0
movss dword [ebp + 0x28], xmm0
test ah, 0x44
jp 0x10038725
ucomiss xmm1, xmm5
lahf
test ah, 0x44
jp 0x10038725
xorps xmm0, xmm0
xorps xmm4, xmm4
movss dword [esp + 0xc], xmm0
jmp 0x1003880e
fld dword [esp + 0xc]
fld dword [esp + 8]
fpatan
fstp dword [esp + 0xc]
movss xmm0, dword [esp + 0xc]
mulss xmm0, xmm7
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [0x10046238]
cvtpd2ps xmm0, xmm0
comiss xmm5, xmm0
movss dword [esp + 0xc], xmm0
jbe 0x10038765
addss xmm0, dword [0x10046364]
movss dword [esp + 0xc], xmm0
movss xmm3, dword [0x10046230]
mov eax, 0x5f3759df
mulss xmm6, xmm6
movaps xmm2, xmm3
mulss xmm1, xmm1
addss xmm6, xmm1
movss dword [esp + 8], xmm6
movaps xmm4, xmm6
mov ecx, dword [esp + 8]
mulss xmm4, dword [0x100461d0]
sar ecx, 1
sub eax, ecx
mov dword [esp + 8], eax
movss xmm1, dword [esp + 8]
movaps xmm0, xmm4
mulss xmm0, xmm1
mulss xmm0, xmm1
subss xmm2, xmm0
movss xmm0, dword [esp + 0x10]
xorps xmm0, xmmword [0x10046490]
movss dword [esp + 8], xmm0
fld dword [esp + 8]
mulss xmm2, xmm1
movaps xmm0, xmm2
mulss xmm0, xmm4
mulss xmm0, xmm2
subss xmm3, xmm0
mulss xmm3, xmm2
mulss xmm3, xmm6
movss dword [esp + 8], xmm3
fld dword [esp + 8]
fpatan
fstp dword [esp + 8]
movss xmm0, dword [esp + 8]
mulss xmm0, xmm7
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [0x10046238]
cvtpd2ps xmm4, xmm0
comiss xmm4, xmm7
movss xmm1, dword [0x100463b8]
movaps xmm0, xmm4
mulss xmm0, dword [0x1004611c]
movss dword [esp + 0x10], xmm4
movss dword [ebp + 0x1c], xmm5
movss dword [esp + 8], xmm0
ja 0x10038844
movss xmm2, dword [0x100463e4]
comiss xmm2, xmm4
jbe 0x100388ae
comiss xmm5, xmm0
jbe 0x10038856
movaps xmm0, xmm4
mulss xmm0, xmm1
movss dword [esp + 8], xmm0
fld dword [esp + 8]
push ecx
fstp dword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_roundf
movss xmm4, dword [esp + 0x14]
xorps xmm5, xmm5
movss xmm7, dword [0x10046334]
add esp, 4
comiss xmm5, xmm4
movss xmm1, dword [0x100463b8]
movss xmm2, dword [0x100463e4]
fstp dword [esp + 8]
movss xmm0, dword [esp + 8]
mulss xmm0, dword [0x10046364]
jbe 0x100388a4
addss xmm4, xmm0
jmp 0x100388a8
subss xmm4, xmm0
movss dword [esp + 0x10], xmm4
movss xmm3, dword [esp + 0xc]
comiss xmm3, xmm7
movaps xmm0, xmm3
movss dword [ebp + 0x14], xmm4
mulss xmm0, dword [0x1004611c]
movss dword [esp + 8], xmm0
ja 0x100388d4
comiss xmm2, xmm3
jbe 0x1003892b
comiss xmm5, xmm0
jbe 0x100388e6
movaps xmm0, xmm3
mulss xmm0, xmm1
movss dword [esp + 8], xmm0
fld dword [esp + 8]
push ecx
fstp dword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_roundf
movss xmm3, dword [esp + 0x10]
xorps xmm0, xmm0
movss xmm4, dword [esp + 0x14]
add esp, 4
comiss xmm0, xmm3
fstp dword [esp + 8]
movss xmm0, dword [esp + 8]
mulss xmm0, dword [0x10046364]
jbe 0x10038927
addss xmm3, xmm0
movss dword [ebp + 0x18], xmm3
jmp 0x1003893c
subss xmm3, xmm0
movss dword [ebp + 0x18], xmm3
jmp 0x1003893c
movss xmm3, dword [ebp + 0x18]
movss xmm4, dword [ebp + 0x14]
cmp byte [0x10f6c6e4], 0
je 0x10038985
movss xmm0, dword [esi + 0xbb0]
movss xmm1, dword [esi + 0xbb4]
addss xmm0, xmm0
movss xmm2, dword [esi + 0xbb8]
addss xmm1, xmm1
addss xmm2, xmm2
addss xmm0, xmm4
addss xmm3, xmm1
addss xmm2, dword [ebp + 0x1c]
movss dword [ebp + 0x14], xmm0
movss dword [ebp + 0x18], xmm3
movss dword [ebp + 0x1c], xmm2
movss xmm1, dword [0x10046138]
lea eax, [esp + 0x14]
mulss xmm3, xmm1
mov dword [esp + 8], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x10], eax
movss dword [esp + 0xc], xmm3
fld dword [esp + 0xc]
fsincos
mov edx, dword [esp + 8]
mov eax, dword [esp + 0x10]
fstp dword [edx]
fstp dword [eax]
movss xmm0, dword [ebp + 0x14]
lea eax, [esp + 0x20]
mulss xmm0, xmm1
mov dword [esp + 8], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x10], eax
movss dword [esp + 0xc], xmm0
fld dword [esp + 0xc]
fsincos
mov edx, dword [esp + 8]
mov eax, dword [esp + 0x10]
fstp dword [edx]
fstp dword [eax]
movss xmm2, dword [esp + 0x20]
lea ecx, [esp + 0xb0]
movss xmm0, dword [esp + 0x1c]
movaps xmm1, xmm2
mulss xmm1, dword [esp + 0x14]
mov eax, 0x24160a80
push 0
mulss xmm2, dword [esp + 0x1c]
push 0
mulss xmm1, dword [0x10046388]
push esi
mulss xmm2, dword [0x10046388]
mulss xmm0, dword [0x100463f8]
addss xmm1, dword [ebp + 8]
addss xmm2, dword [ebp + 0xc]
addss xmm0, dword [ebp + 0x10]
movss dword [esp + 0x20], xmm1
movss dword [esp + 0x24], xmm2
movss dword [esp + 0x28], xmm0
call eax
movss xmm3, dword [ebp + 8]
movss xmm1, dword [esp + 0x14]
movss xmm4, dword [ebp + 0xc]
subss xmm1, xmm3
movss xmm2, dword [esp + 0x18]
movss xmm5, dword [ebp + 0x10]
subss xmm2, xmm4
movss xmm0, dword [esp + 0x1c]
subss xmm0, xmm5
mov byte [esp + 0x55], 1
movss dword [esp + 0x30], xmm1
mulss xmm1, xmm1
movss dword [esp + 0x34], xmm2
mulss xmm2, xmm2
movss dword [esp + 0x38], xmm0
mulss xmm0, xmm0
addss xmm2, xmm1
addss xmm2, xmm0
ucomiss xmm2, dword [0x10046108]
lahf
test ah, 0x44
jp 0x10038abb
mov byte [esp + 0x55], 0
mov ecx, dword [0x1004b8dc]
lea edx, [esp + 0x58]
push edx
mov dword [esp + 0x54], 0
lea edx, [esp + 0xb4]
mov dword [esp + 0x50], 0
mov dword [esp + 0x4c], 0
mov byte [esp + 0x58], 1
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
movss dword [esp + 0x28], xmm3
movss dword [esp + 0x2c], xmm4
movss dword [esp + 0x30], xmm5
mov eax, dword [ecx]
push edx
push 0x46004003
lea edx, [esp + 0x30]
mov eax, dword [eax + 0x10]
push edx
call eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x1004b66c]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x11db9c9c]
cmp eax, dword [ecx + 4]
jle 0x10038b6b
push 0x11db9c9c
call fcn.1003b300
add esp, 4
cmp dword [0x11db9c9c], 0xffffffff
jne 0x10038b6b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x11db9c9c
call fcn.1003b2af
add esp, 4
mov ecx, dword [esp + 0xa4]
test ecx, ecx
je 0x10038c0a
call fcn.10002b70
mov eax, dword [eax]
cmp eax, dword [ebp + 0x48]
je 0x10038c0a
mov eax, dword [0x10f6c6f0]
test eax, eax
jne 0x10038ba5
cmp dword [esp + 0x9c], 1
jne 0x10038c0a
mov al, 1
mov byte [esp + 7], al
jmp 0x10038c0e
cmp eax, 1
jne 0x10038bbc
cmp dword [esp + 0x9c], 2
jne 0x10038c0a
mov al, al
mov byte [esp + 7], al
jmp 0x10038c0e
cmp eax, 2
jne 0x10038bd3
cmp dword [esp + 0x9c], 3
jne 0x10038c0a
mov al, 1
mov byte [esp + 7], al
jmp 0x10038c0e
cmp eax, 3
jne 0x10038c0a
mov eax, dword [esp + 0x9c]
cmp eax, 1
je 0x10038c02
cmp eax, 2
je 0x10038c02
cmp eax, 3
je 0x10038c02
cmp eax, 4
je 0x10038c02
cmp eax, 5
je 0x10038c02
cmp eax, 6
je 0x10038c02
cmp eax, 7
jne 0x10038c0a
mov al, 1
mov byte [esp + 7], al
jmp 0x10038c0e
mov al, byte [esp + 7]
cmp byte [0x11db9cac], 0
je 0x10038c45
sub esp, 8
mov dword [esp + 4], 0x43af0000
mov dword [esp], 0x43480000
call dword [0x1004b8c8]
add esp, 8
fstp st(0)
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov al, byte [esp + 7]
mov byte [0x11db9cac], 0
mov ecx, dword [esp + 0xc4]
pop esi
xor ecx, esp
call fcn.1003af4e
mov esp, ebp
pop ebp
ret 0x50