Function at 0x18000339c
Capabilities:
Access peb ldr_data

Disassembly:
test dl, dl
je 0x18000388d
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rax - 0x28]
sub rsp, 0x110
movaps xmmword [rax - 0x28], xmm6
movaps xmmword [rax - 0x38], xmm7
movaps xmmword [rax - 0x48], xmm8
movaps xmmword [rax - 0x58], xmm9
movaps xmmword [rax - 0x68], xmm10
movaps xmmword [rax - 0x78], xmm11
movaps xmmword [rax - 0x88], xmm12
movaps xmmword [rax - 0x98], xmm13
movaps xmmword [rax - 0xa8], xmm14
movaps xmmword [rsp + 0x70], xmm15
mov rax, qword [0x180079040]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbx, rcx
mov edx, dword [0x180079b7c]
mov rax, qword gs:[0x58]
mov r14d, 4
mov rdi, qword [rax + rdx*8]
mov eax, dword [rdi + r14]
cmp dword [0x180079cc0], eax
jle 0x180003462
lea rcx, [0x180079cc0]
call fcn.18004a3ac
cmp dword [0x180079cc0], 0xffffffff
jne 0x180003462
mov rax, qword [0x180079c38]
add rax, 8
mov qword [0x180079cd8], rax
lea rcx, [0x180079cc0]
call fcn.18004a340
mov rax, qword [0x180079cd8]
movss xmm11, dword [rax + 8]
movss xmm12, dword [rax + 0xc]
movaps xmm1, xmm11
movss xmm15, dword [0x180073764]
mulss xmm1, xmm15
subss xmm1, dword [rbx]
movaps xmm0, xmm12
mulss xmm0, xmm15
subss xmm0, dword [rbx + 4]
call qword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_atan2f]
movaps xmm10, xmm0
addss xmm10, dword [0x1800737f0]
movss xmm1, dword [rbx + 8]
xorps xmm9, xmm9
comiss xmm1, xmm9
jbe 0x1800034c5
movss xmm0, dword [0x1800737ec]
jmp 0x1800034c8
xorps xmm0, xmm0
addss xmm10, xmm0
movaps xmm0, xmm10
call qword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_cosf]
mulss xmm0, dword [0x180079098]
mov rax, qword [0x180079cd8]
movss xmm13, dword [rax + 8]
mulss xmm13, xmm15
addss xmm13, xmm0
movaps xmm0, xmm10
call qword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_sinf]
mulss xmm0, dword [0x180079098]
mov rax, qword [0x180079cd8]
movss xmm14, dword [rax + 0xc]
mulss xmm14, xmm15
addss xmm14, xmm0
movaps xmm0, xmmword [0x1800738d0]
movups xmmword [rsp + 0x40], xmm0
movaps xmm1, xmmword [0x180073910]
movups xmmword [rsp + 0x50], xmm1
lea rsi, [rsp + 0x40]
movss xmm7, dword [rsi]
mulss xmm7, dword [0x180073774]
movss xmm8, dword [rsi + 4]
mulss xmm8, dword [0x180073774]
movaps xmm0, xmm10
call qword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_cosf]
movaps xmm6, xmm0
mulss xmm6, xmm7
addss xmm6, xmm13
movaps xmm0, xmm10
call qword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_sinf]
mulss xmm0, xmm8
subss xmm6, xmm0
movss dword [rsi], xmm6
movaps xmm0, xmm10
call qword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_sinf]
movaps xmm6, xmm0
mulss xmm6, xmm7
addss xmm6, xmm14
movaps xmm0, xmm10
call qword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_cosf]
mulss xmm0, xmm8
addss xmm0, xmm6
movss dword [rsi + 4], xmm0
add rsi, 8
lea rax, [rsp + 0x60]
cmp rsi, rax
jne 0x18000353c
mov eax, dword [rdi + r14]
cmp dword [0x180079ce0], eax
jle 0x180003617
lea rcx, [0x180079ce0]
call fcn.18004a3ac
cmp dword [0x180079ce0], 0xffffffff
jne 0x180003617
mov rax, qword [0x180079c38]
mov rdx, qword [rax + 0x4b60]
mov rcx, qword [rdx]
lea r8, str.Background
xor edx, edx
call fcn.1800137f4
mov qword [0x180079cf0], rax
lea rcx, [0x180079ce0]
call fcn.18004a340
movss xmm8, dword [0x1800737a8]
movaps xmm6, xmm8
movss xmm0, dword [rbx + 8]
comiss xmm0, xmm9
jbe 0x1800036dd
movss xmm6, dword [rbx]
comiss xmm9, xmm6
jbe 0x18000364f
cvtps2pd xmm0, xmm6
call qword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_fabs]
xorps xmm6, xmm6
cvtsd2ss xmm6, xmm0
jmp 0x180003660
comiss xmm6, xmm11
jbe 0x18000365c
subss xmm6, xmm11
jmp 0x180003660
movaps xmm6, xmm9
movss xmm7, dword [rbx + 4]
comiss xmm9, xmm7
jbe 0x18000367d
cvtps2pd xmm0, xmm7
call qword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_fabs]
xorps xmm7, xmm7
cvtsd2ss xmm7, xmm0
jmp 0x18000368e
comiss xmm7, xmm12
jbe 0x18000368a
subss xmm7, xmm12
jmp 0x18000368e
movaps xmm7, xmm9
xorps xmm0, xmm0
cvtss2sd xmm0, xmm6
movsd xmm1, qword [0x1800737d8]
call qword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_pow]
movaps xmm10, xmm0
xorps xmm0, xmm0
cvtss2sd xmm0, xmm7
movsd xmm1, qword [0x1800737d8]
call qword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_pow]
comiss xmm9, dword [rbx + 8]
jbe 0x1800036c9
movaps xmm6, xmm8
jmp 0x1800036dd
addsd xmm0, xmm10
xorps xmm6, xmm6
cvtsd2ss xmm6, xmm0
divss xmm6, dword [0x18007386c]
movss xmm0, dword [0x180079be8]
movss xmm3, dword [0x180073844]
mulss xmm0, xmm3
cvttss2si eax, xmm0
movd xmm1, eax
cvtdq2ps xmm1, xmm1
movss xmm2, dword [0x180073718]
mulss xmm1, xmm2
movss dword [rsp + 0x30], xmm1
movss xmm0, dword [0x180079bec]
mulss xmm0, xmm3
cvttss2si eax, xmm0
movd xmm1, eax
cvtdq2ps xmm1, xmm1
mulss xmm1, xmm2
movss dword [rsp + 0x34], xmm1
movss xmm0, dword [0x180079bf0]
mulss xmm0, xmm3
cvttss2si eax, xmm0
movd xmm1, eax
cvtdq2ps xmm1, xmm1
mulss xmm1, xmm2
movss dword [rsp + 0x38], xmm1
minss xmm8, xmm6
movss dword [rsp + 0x3c], xmm8
lea rcx, [rsp + 0x30]
call fcn.180010df8
mov ebx, eax
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x40]
mov rcx, qword [0x180079cf0]
call fcn.18002f498
mov dword [rsp + 0x20], ebx
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x50]
mov rcx, qword [0x180079cf0]
call fcn.18002f498
and dword [rsp + 0x30], 0
and dword [rsp + 0x34], 0
and dword [rsp + 0x38], 0
movss dword [rsp + 0x3c], xmm6
lea rcx, [rsp + 0x30]
call fcn.180010df8
mov esi, eax
mov rdi, qword [0x180079cf0]
test eax, 0xff000000
je 0x180003833
lea rbx, [rdi + 0x50]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.180026194
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.180026194
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.180026194
lea rdx, [rsp + 0x58]
mov rcx, rbx
call fcn.180026194
movss dword [rsp + 0x28], xmm15
mov dword [rsp + 0x20], 1
mov r9d, esi
mov r8d, dword [rdi + 0x50]
mov rdx, qword [rdi + 0x58]
mov rcx, rdi
call fcn.18002d478
and dword [rdi + 0x50], 0
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.18004a320
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
movaps xmm10, xmmword [r11 - 0x50]
movaps xmm11, xmmword [r11 - 0x60]
movaps xmm12, xmmword [r11 - 0x70]
movaps xmm13, xmmword [r11 - 0x80]
movaps xmm14, xmmword [r11 - 0x90]
movaps xmm15, xmmword [rsp + 0x70]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret