Function at 0x180054bf0
Capabilities:
Log keystrokes via polling

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x90
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
movaps xmmword [rax - 0x58], xmm8
movaps xmmword [rax - 0x68], xmm9
mov rax, qword [0x18008eba0]
mov rax, qword [rax + 0x4ae0]
lea r8, str.Background
xor edx, edx
mov rcx, qword [rax]
call fcn.180014ab0
mov r15, rax
test rax, rax
je 0x180055239
call qword [0x18008ec88]
mov rdi, rax
call qword [0x18008ec30]
mov r14, rax
test rdi, rdi
je 0x180055239
test rax, rax
je 0x180055239
mov rsi, qword [rdi + 0x108]
mov rdi, qword [rdi + 0x110]
test rsi, rsi
je 0x180055239
test rdi, rdi
je 0x180055239
cmp byte [0x18008ecf3], 0
je 0x180055239
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x180055239
mov rax, qword [0x18008eba0]
movss xmm2, dword [rax + 0xe48]
movss xmm1, dword [rax + 0xe4c]
movss xmm9, dword [rdi + 0xc0]
movss xmm3, dword [rdi + 0xc4]
movss xmm4, dword [rdi + 0xa8]
divss xmm2, xmm9
addss xmm2, xmm4
movss xmm5, dword [rdi + 0xac]
divss xmm1, xmm3
addss xmm1, xmm5
mulss xmm1, dword [0x1800835f4]
cvttss2si ecx, xmm1
mulss xmm2, dword [0x1800835f4]
cvttss2si edx, xmm2
test edx, edx
js 0x180055239
test ecx, ecx
js 0x180055239
mov eax, dword [rsi + 0x98]
cmp eax, edx
jle 0x180055239
cmp dword [rsi + 0x9c], ecx
jle 0x180055239
imul eax, ecx
add eax, edx
cdqe
imul rbx, rax, 0xb0
add rbx, qword [rsi + 0xa8]
je 0x180055239
movzx eax, byte [rbx + 0x14]
movd xmm8, eax
cvtdq2ps xmm8, xmm8
movss xmm6, dword [0x1800836c4]
mulss xmm8, xmm6
movzx eax, byte [rbx + 0x15]
movd xmm7, eax
cvtdq2ps xmm7, xmm7
mulss xmm7, xmm6
subss xmm8, xmm4
mulss xmm8, xmm9
subss xmm7, xmm5
mulss xmm7, xmm3
movaps xmm0, xmmword [0x180083800]
movups xmmword [rbp - 0x29], xmm0
lea rcx, [rbp - 0x29]
call fcn.180011170
movss xmm0, dword [rdi + 0xc4]
mulss xmm0, xmm6
addss xmm0, xmm7
mulss xmm9, xmm6
addss xmm9, xmm8
movss dword [rbp + 0x67], xmm9
movss dword [rbp + 0x6b], xmm0
movss dword [rbp + 0x6f], xmm8
movss dword [rbp + 0x73], xmm7
xor esi, esi
mov dword [rsp + 0x28], esi
xorps xmm6, xmm6
movss dword [rsp + 0x20], xmm6
mov r9d, eax
lea r8, [rbp + 0x67]
lea rdx, [rbp + 0x6f]
mov rcx, r15
call fcn.180034d10
xor ecx, ecx
call fcn.1800219e0
movzx r9d, word [rbx + 4]
mov r8, qword [r14 + 8]
mov rcx, qword [r14 + 0x10]
sub rcx, r8
movabs r15, 0x4924924924924925
mov rax, r15
imul rcx
sar rdx, 9
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp r9, rdx
jae 0x180054e47
imul rdx, r9, 0x700
add rdx, r8
je 0x180054e47
add rdx, 0x10
lea rcx, [rbp - 0x29]
call fcn.180054520
jmp 0x180054e58
lea rdx, str._not_found_
lea rcx, [rbp - 0x29]
call fcn.180002f30
nop
lea rdx, [rbp - 0x29]
cmp qword [rbp - 0x11], 0xf
cmova rdx, qword [rbp - 0x29]
lea rcx, str.foreground_item:__s
call fcn.18003fd10
mov rdx, qword [rbp - 0x11]
cmp rdx, 0xf
jbe 0x180054eb0
inc rdx
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180054eab
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180054eab
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180059550
movzx r9d, word [rbx + 0x10]
mov r8, qword [r14 + 8]
mov rcx, qword [r14 + 0x10]
sub rcx, r8
mov rax, r15
imul rcx
sar rdx, 9
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp r9, rdx
jae 0x180054ef4
imul rdx, r9, 0x700
add rdx, r8
je 0x180054ef4
add rdx, 0x10
lea rcx, [rbp - 0x29]
call fcn.180054520
jmp 0x180054f05
lea rdx, str._not_found_
lea rcx, [rbp - 0x29]
call fcn.180002f30
nop
lea rdx, [rbp - 0x29]
cmp qword [rbp - 0x11], 0xf
cmova rdx, qword [rbp - 0x29]
lea rcx, str.background_item:__s
call fcn.18003fd10
mov rdx, qword [rbp - 0x11]
cmp rdx, 0xf
jbe 0x180054f5d
inc rdx
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180054f58
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180054f58
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180059550
movzx r8d, byte [rbx + 0x15]
movzx edx, byte [rbx + 0x14]
lea rcx, str.position:__d__d
call fcn.18003fd10
movzx edx, byte [rbx + 0x58]
lea rcx, str.hit_count:__d
call fcn.18003fd10
movzx edx, word [rbx + 0x12]
test dx, dx
je 0x180054ffd
lea rcx, [rbp - 0x29]
call fcn.180055560
lea rdx, [rbp - 0x29]
cmp qword [rbp - 0x11], 0xf
cmova rdx, qword [rbp - 0x29]
lea rcx, str.flags:__s
call fcn.18003fd10
mov rdx, qword [rbp - 0x11]
cmp rdx, 0xf
jbe 0x180054fec
inc rdx
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180054fe7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180054fe7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180059550
movdqa xmm0, xmmword [0x180083760]
movdqu xmmword [rbp - 0x19], xmm0
mov byte [rbp - 0x29], 0
cmp qword [rbx + 0x38], 0
je 0x180055233
mov rcx, qword [0x18008eba0]
mov rax, qword [rcx + 0x4008]
mov byte [rax + 0xc0], 1
mov rax, qword [rcx + 0x4008]
mov rdi, rbx
cmp byte [rax + 0xc3], 0
jne 0x180055066
lea rdx, [0x180082540]
mov r8, rdx
cmp rdx, 0xffffffffffffffff
jae 0x18005505e
movzx ecx, byte [r8]
test cl, cl
je 0x18005505e
lea rax, [r8 + 1]
cmp cl, 0x23
jne 0x180055055
cmp byte [rax], cl
je 0x18005505e
mov r8, rax
cmp rax, 0xffffffffffffffff
jb 0x180055040
movaps xmm3, xmm6
call fcn.180042d10
mov rax, qword [rdi + 0x38]
movzx ecx, byte [rax + 8]
cmp cl, 0x51
ja 0x18005508c
mov eax, ecx
add rax, rax
lea rcx, str.none
mov rsi, qword [rcx + rax*8]
mov rax, qword [rcx + rax*8 + 8]
mov qword [rbp - 0x21], rax
mov rdx, rsi
lea rcx, str.type:__s
call fcn.18003fd10
mov r8, qword [rdi + 0x38]
movzx ecx, byte [r8 + 8]
sub ecx, 1
je 0x180055219
sub ecx, 1
je 0x180055219
sub ecx, 1
je 0x1800551d7
sub ecx, 1
je 0x1800551b1
cmp ecx, 0x14
je 0x1800550ed
movaps xmm0, xmmword [0x180083820]
movups xmmword [rbp - 0x29], xmm0
lea rdx, str.unknown_data
lea rcx, [rbp - 0x29]
call fcn.18003fd80
jmp 0x180055233
mov r9, qword [r14 + 8]
mov rcx, qword [r14 + 0x10]
sub rcx, r9
mov rax, r15
imul rcx
sar rdx, 9
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov eax, dword [r8 + 0x70]
cmp rax, rdx
jae 0x180055130
imul rdx, rax, 0x700
add rdx, r9
je 0x180055130
add rdx, 0x10
lea rcx, [rbp - 0x29]
call fcn.180054520
jmp 0x180055141
lea rdx, str._not_found_
lea rcx, [rbp - 0x29]
call fcn.180002f30
nop
lea rdx, [rbp - 0x29]
cmp qword [rbp - 0x11], 0xf
cmova rdx, qword [rbp - 0x29]
lea rcx, str.item:__s
call fcn.18003fd10
mov rdx, qword [rbp - 0x11]
cmp rdx, 0xf
jbe 0x180055199
inc rdx
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180055194
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180055194
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180059550
mov rdx, qword [rdi + 0x38]
mov edx, dword [rdx + 0xc]
lea rcx, str.price:__d
call fcn.18003fd10
jmp 0x180055233
mov edx, dword [r8 + 0x74]
lea rcx, str.growth:__d
call fcn.18003fd10
mov rax, qword [rdi + 0x38]
movzx edx, byte [rax + 0x78]
lea rcx, str.fruit_count:__d
call fcn.18003fd10
jmp 0x180055233
mov edx, dword [r8 + 0xc]
lea rcx, str.owner:__d
call fcn.18003fd10
mov rax, qword [rdi + 0x38]
mov rdi, qword [rax + 0xa0]
mov rbx, qword [rax + 0x98]
cmp rbx, rdi
je 0x180055233
nop
mov edx, dword [rbx]
lea rcx, str.admin:__d
call fcn.18003fd10
add rbx, 4
cmp rbx, rdi
jne 0x180055200
jmp 0x180055233
lea rdx, [r8 + 0x30]
cmp qword [rdx + 0x18], 0xf
jbe 0x180055227
mov rdx, qword [rdx]
lea rcx, str.label:__s
call fcn.18003fd10
call fcn.18001d3e0
nop
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [rsp + 0x70]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
mov rsp, r11
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret