Function at 0x18000d0d0
Capabilities:
Check for foreground window switch

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov rax, qword [0x1800f1690]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov r15, rcx
xorps xmm0, xmm0
movups xmmword [rbp + 0xf], xmm0
mov rdx, qword [rcx + 0x10]
lea rcx, [rbp + 0xf]
call fcn.180008280
mov rdi, qword [rbp + 0xf]
test rdi, rdi
je 0x18000d5ae
mov r13, qword [rbp + 0x17]
test r13, r13
je 0x18000d5ae
mov rsi, qword [0x1800f2828]
test rsi, rsi
jne 0x18000d17b
lea rdx, str.theWorld
lea rcx, [rbp + 0xf]
call fcn.180001390
mov rbx, rax
mov qword [rbp + 7], rax
mov rcx, qword [0x1800f29a0]
add rcx, 0x20
mov rdx, rax
call fcn.18006b890
mov rsi, qword [rax]
mov rcx, rbx
call fcn.180005090
mov qword [0x1800f2828], rsi
mov rax, qword [rdi]
mov r9, qword [rax + 0x2f8]
mov r8, rsi
mov rdx, r13
mov rcx, rdi
call r9
mov qword [rbp + 7], rax
xor esi, esi
test rax, rax
jne 0x18000d1a6
mov qword [rbp - 0x41], rsi
mov qword [rbp + 7], rsi
jmp 0x18000d1aa
mov qword [rbp - 0x41], rdi
mov r14, qword [0x1800f2820]
test r14, r14
jne 0x18000d1f2
lea rdx, str.thePlayer
lea rcx, [rbp + 0xf]
call fcn.180001390
mov rbx, rax
mov qword [rbp - 0x49], rax
mov rcx, qword [0x1800f29a0]
add rcx, 0x20
mov rdx, rax
call fcn.18006b890
mov r14, qword [rax]
mov rcx, rbx
call fcn.180005090
mov qword [0x1800f2820], r14
mov rax, qword [rdi]
mov r9, qword [rax + 0x2f8]
mov r8, r14
mov rdx, r13
mov rcx, rdi
call r9
mov r12, rax
test rax, rax
jne 0x18000d218
mov r14, rsi
mov r12, rsi
jmp 0x18000d21b
mov r14, rdi
cmp qword [rbp - 0x41], 0
je 0x18000d5ae
cmp qword [rbp + 7], 0
je 0x18000d5ae
test r14, r14
je 0x18000d5ae
test r12, r12
je 0x18000d5ae
mov rax, qword [0x1800f2830]
test rax, rax
jne 0x18000d295
lea rdx, str.inGameHasFocus
lea rcx, [rbp + 0xf]
call fcn.180001390
mov rbx, rax
mov qword [rbp - 0x49], rax
mov rcx, qword [0x1800f29a0]
add rcx, 0x20
mov rdx, rax
call fcn.18006b890
mov rax, qword [rax]
mov qword [rbp - 0x41], rax
mov rcx, rbx
call fcn.180005090
mov r8, qword [rbp - 0x41]
mov qword [0x1800f2830], r8
jmp 0x18000d298
mov r8, rax
mov rax, qword [rdi]
mov r9, qword [rax + 0x300]
mov rdx, r13
mov rcx, rdi
call r9
test al, al
je 0x18000d5ae
mov rdi, qword [0x1800f2908]
test rdi, rdi
jne 0x18000d2fb
lea rdx, str.getHealth
lea rcx, [rbp - 0x19]
call fcn.180001390
mov rbx, rax
mov qword [rbp - 0x49], rax
mov rcx, qword [0x1800f29a0]
add rcx, 0x30
mov rdx, rax
call fcn.18006b890
mov rdi, qword [rax]
mov rcx, rbx
call fcn.180005090
mov qword [0x1800f2908], rdi
mov r8, rdi
mov rdx, r12
mov rcx, r14
call fcn.18000ce20
comiss xmm0, dword [0x1800e0d04]
jae 0x18000d5ae
cmp byte [r15 + 0x48], 0
je 0x18000d330
movss xmm1, dword [0x1800e0ce0]
comiss xmm1, xmm0
mov r13d, 2
jae 0x18000d336
mov r13d, 1
xorps xmm0, xmm0
movups xmmword [rbp + 0xf], xmm0
mov rdi, qword [0x1800f2918]
test rdi, rdi
jne 0x18000d385
lea rdx, str.inventoryPlayer
lea rcx, [rbp - 0x39]
call fcn.180001390
mov rbx, rax
mov qword [rbp - 0x49], rax
mov rcx, qword [0x1800f29a0]
add rcx, 0x20
mov rdx, rax
call fcn.18006b890
mov rdi, qword [rax]
mov rcx, rbx
call fcn.180005090
mov qword [0x1800f2918], rdi
mov rax, qword [r14]
mov r9, qword [rax + 0x2f8]
mov r8, rdi
mov rdx, r12
mov rcx, r14
call r9
mov rdi, rax
test rax, rax
jne 0x18000d3bf
xorps xmm1, xmm1
movdqu xmmword [rbp + 0xf], xmm1
xorps xmm0, xmm0
psrldq xmm0, 8
movq rdi, xmm0
movq r14, xmm1
jmp 0x18000d3c7
mov qword [rbp + 0x17], rax
mov qword [rbp + 0xf], r14
mov r12, qword [0x1800f2938]
test r12, r12
jne 0x18000d40f
lea rdx, str.currentItem
lea rcx, [rbp - 0x39]
call fcn.180001390
mov rbx, rax
mov qword [rbp - 0x49], rax
mov rcx, qword [0x1800f29a0]
add rcx, 0x20
mov rdx, rax
call fcn.18006b890
mov r12, qword [rax]
mov rcx, rbx
call fcn.180005090
mov qword [0x1800f2938], r12
mov rax, qword [r14]
mov r9, qword [rax + 0x320]
mov r8, r12
mov rdx, rdi
mov rcx, r14
call r9
mov dword [rbp - 0x41], eax
nop dword [rax + rax]
lea r8, [rbp + 0xf]
lea rdx, [rbp + 7]
mov rcx, r15
call fcn.18000cea0
mov r12d, dword [rbp + 0xb]
cmp r12d, 0xffffffff
je 0x18000d593
mov eax, dword [r15 + 0x44]
test eax, eax
jle 0x18000d45f
imul ecx, eax, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rdi, qword [0x1800f2938]
test rdi, rdi
jne 0x18000d4a7
lea rdx, str.currentItem
lea rcx, [rbp - 0x39]
call fcn.180001390
mov rbx, rax
mov qword [rbp - 0x49], rax
mov rcx, qword [0x1800f29a0]
add rcx, 0x20
mov rdx, rax
call fcn.18006b890
mov rdi, qword [rax]
mov rcx, rbx
call fcn.180005090
mov qword [0x1800f2938], rdi
mov r14, qword [rbp + 0xf]
mov rax, qword [r14]
mov r10, qword [rax + 0x368]
mov r9d, r12d
mov r8, rdi
mov r12, qword [rbp + 0x17]
mov rdx, r12
mov rcx, r14
call r10
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x204
call qword [sym.imp.USER32.dll_PostMessageA]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x205
call qword [sym.imp.USER32.dll_PostMessageA]
mov ecx, reloc.WLDAP32.dll_Ordinal_50
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rdi, qword [0x1800f2938]
test rdi, rdi
jne 0x18000d55a
lea rdx, str.currentItem
lea rcx, [rbp - 0x39]
call fcn.180001390
mov rbx, rax
mov qword [rbp - 0x49], rax
mov rcx, qword [0x1800f29a0]
add rcx, 0x20
mov rdx, rax
call fcn.18006b890
mov rdi, qword [rax]
mov rcx, rbx
call fcn.180005090
mov qword [0x1800f2938], rdi
mov rax, qword [r14]
mov r9d, dword [rbp - 0x41]
mov r8, rdi
mov rdx, r12
mov rcx, r14
call qword [rax + 0x368]
inc esi
cmp esi, r13d
jl 0x18000d430
test r12, r12
je 0x18000d58f
mov rax, qword [r14]
mov rdx, r12
mov rcx, r14
call qword [rax + 0xb8]
mov al, 1
jmp 0x18000d5b0
mov rcx, qword [rbp + 0xf]
test rcx, rcx
je 0x18000d5ae
mov rdx, qword [rbp + 0x17]
test rdx, rdx
je 0x18000d5ae
mov rax, qword [rcx]
call qword [rax + 0xb8]
xor al, al
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1800c5e80
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret