Function at 0x140040880
Capabilities:
Get common file path
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rax, qword [0x1400ee0c0]
xor rax, rsp
mov qword [rbp + 0x90], rax
mov dword [rsp + 0x50], 0x43c98000
mov dword [rsp + 0x54], 0x43010000
mov rcx, qword [0x1402620b0]
mov rax, qword [rcx + 0x4000]
mov byte [rax + 0xc0], 1
mov rax, qword [rcx + 0x4000]
mov r10, qword [rax + 0x2a8]
movd xmm3, dword [0x1402620d0]
cvtdq2ps xmm3, xmm3
movss xmm1, dword [0x1400db08c]
divss xmm3, xmm1
movd xmm2, dword [0x1402620c4]
cvtdq2ps xmm2, xmm2
divss xmm2, xmm1
movd xmm0, dword [0x1402620dc]
cvtdq2ps xmm0, xmm0
divss xmm0, xmm1
movss dword [rsp + 0x30], xmm0
movss dword [rsp + 0x34], xmm2
movss dword [rsp + 0x38], xmm3
movss xmm0, dword [rcx + 0x38e8]
movss dword [rsp + 0x3c], xmm0
lea rcx, [rsp + 0x30]
call fcn.1400044a0
mov dword [rsp + 0x30], 0x43d28000
mov dword [rsp + 0x34], 0x43130000
mov dword [rsp + 0x28], 0
movss xmm0, dword [0x1400daf70]
movss dword [rsp + 0x20], xmm0
mov r9d, eax
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x50]
mov rcx, r10
call fcn.140028520
mov rcx, qword [0x1402620b0]
mov rax, qword [rcx + 0x4000]
mov byte [rax + 0xc0], 1
mov rax, qword [rcx + 0x4000]
movss xmm1, dword [rax + 0x2c]
subss xmm1, dword [rax + 0x90]
addss xmm1, dword [0x1400db008]
movss xmm0, dword [rax + 0x28]
subss xmm0, dword [rax + 0x8c]
addss xmm0, dword [0x1400db0e0]
movss dword [rax + 0x110], xmm0
movss dword [rax + 0x114], xmm1
mov byte [rax + 0x151], 1
mov rcx, qword [0x140262580]
call fcn.140010a30
cmp byte [0x1402620af], 0
je 0x140040c40
cmp byte [0x1402620e8], 0
je 0x140040c40
mov rcx, qword [0x1402620b0]
mov rax, qword [rcx + 0x4000]
mov byte [rax + 0xc0], 1
mov rax, qword [rcx + 0x4000]
movss xmm1, dword [rax + 0x2c]
subss xmm1, dword [rax + 0x90]
addss xmm1, dword [0x1400db004]
movss xmm0, dword [rax + 0x28]
subss xmm0, dword [rax + 0x8c]
addss xmm0, dword [0x1400db0dc]
movss dword [rax + 0x110], xmm0
movss dword [rax + 0x114], xmm1
mov byte [rax + 0x151], 1
lea rcx, str._press_on_green_health_bar_
call fcn.1400327f0
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x140040cbd
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_GetCursorPos]
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov rbx, rax
mov r8d, dword [rsp + 0x54]
mov edx, dword [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.GDI32.dll_GetPixel]
mov edi, eax
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
movzx ecx, dil
mov dword [0x1402620dc], ecx
movzx ecx, di
shr ecx, 8
mov dword [0x1402620c4], ecx
shr edi, 0x10
movzx eax, dil
mov dword [0x1402620d0], eax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, Ordinal_32
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
lea rax, [rbp - 0x80]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140040b10
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x30]
call fcn.140041f30
nop
mov r8d, 0xa
lea rdx, str.green.txt
lea rcx, [rsp + 0x30]
call fcn.14004a850
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x68], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x58], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x68], xmm1
mov qword [rax + 0x10], 0
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x140040bb5
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140040bb0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140040bb0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400bf150
movdqa xmm0, xmmword [0x1400db190]
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x30], 0
mov r9d, dword [0x1402620d0]
mov r8d, dword [0x1402620c4]
mov edx, dword [0x1402620dc]
lea rcx, [rsp + 0x58]
call fcn.1400414f0
mov byte [0x1402620e8], 0
mov byte [0x1402620af], 0
call fcn.14003f770
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 0xf
jbe 0x140040cbd
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140040c39
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140040c39
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400bf150
jmp 0x140040cbd
mov rcx, qword [0x1402620b0]
mov rax, qword [rcx + 0x4000]
mov byte [rax + 0xc0], 1
mov rax, qword [rcx + 0x4000]
movss xmm1, dword [rax + 0x28]
subss xmm1, dword [rax + 0x8c]
addss xmm1, dword [0x1400db0d8]
movss xmm0, dword [rax + 0x2c]
subss xmm0, dword [rax + 0x90]
addss xmm0, dword [0x1400db004]
movss dword [rax + 0x110], xmm1
movss dword [rax + 0x114], xmm0
mov byte [rax + 0x151], 1
mov r9d, dword [0x1402620d0]
mov r8d, dword [0x1402620c4]
mov edx, dword [0x1402620dc]
lea rcx, str.__d___d___d_
call fcn.1400327f0
call fcn.140010ad0
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.1400bee90
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret