Function at 0x140041770
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 [0x1400ef0c0]
xor rax, rsp
mov qword [rbp + 0x90], rax
mov dword [rsp + 0x50], 0x43c98000
mov dword [rsp + 0x54], 0x43010000
mov rcx, qword [0x1402630b0]
mov rax, qword [rcx + 0x4000]
mov byte [rax + 0xc0], 1
mov rax, qword [rcx + 0x4000]
mov r10, qword [rax + 0x2a8]
movd xmm3, dword [0x1402630d0]
cvtdq2ps xmm3, xmm3
movss xmm1, dword [0x1400dc454]
divss xmm3, xmm1
movd xmm2, dword [0x1402630c4]
cvtdq2ps xmm2, xmm2
divss xmm2, xmm1
movd xmm0, dword [0x1402630dc]
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.1400044f0
mov dword [rsp + 0x30], 0x43d28000
mov dword [rsp + 0x34], 0x43130000
mov dword [rsp + 0x28], 0
movss xmm0, dword [0x1400dc338]
movss dword [rsp + 0x20], xmm0
mov r9d, eax
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x50]
mov rcx, r10
call fcn.140028570
mov rcx, qword [0x1402630b0]
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 [0x1400dc3d0]
movss xmm0, dword [rax + 0x28]
subss xmm0, dword [rax + 0x8c]
addss xmm0, dword [0x1400dc4a8]
movss dword [rax + 0x110], xmm0
movss dword [rax + 0x114], xmm1
mov byte [rax + 0x151], 1
mov rcx, qword [0x140263580]
call fcn.140010a80
cmp byte [0x1402630af], 0
je 0x140041b30
cmp byte [0x1402630e8], 0
je 0x140041b30
mov rcx, qword [0x1402630b0]
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 [0x1400dc3cc]
movss xmm0, dword [rax + 0x28]
subss xmm0, dword [rax + 0x8c]
addss xmm0, dword [0x1400dc4a4]
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.140032840
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x140041bad
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 [0x1402630dc], ecx
movzx ecx, di
shr ecx, 8
mov dword [0x1402630c4], ecx
shr edi, 0x10
movzx eax, dil
mov dword [0x1402630d0], 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 0x140041a00
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x30]
call fcn.140042e80
nop
mov r8d, 0xa
lea rdx, str.green.txt
lea rcx, [rsp + 0x30]
call fcn.14004b7a0
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 0x140041aa5
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140041aa0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140041aa0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400bfe80
movdqa xmm0, xmmword [0x1400dc550]
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x30], 0
mov r9d, dword [0x1402630d0]
mov r8d, dword [0x1402630c4]
mov edx, dword [0x1402630dc]
lea rcx, [rsp + 0x58]
call fcn.1400423e0
mov byte [0x1402630e8], 0
mov byte [0x1402630af], 0
call fcn.140040660
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 0xf
jbe 0x140041bad
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140041b29
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140041b29
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400bfe80
jmp 0x140041bad
mov rcx, qword [0x1402630b0]
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 [0x1400dc4a0]
movss xmm0, dword [rax + 0x2c]
subss xmm0, dword [rax + 0x90]
addss xmm0, dword [0x1400dc3cc]
movss dword [rax + 0x110], xmm1
movss dword [rax + 0x114], xmm0
mov byte [rax + 0x151], 1
mov r9d, dword [0x1402630d0]
mov r8d, dword [0x1402630c4]
mov edx, dword [0x1402630dc]
lea rcx, str.__d___d___d_
call fcn.140032840
call fcn.140010b20
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.1400bfbc0
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret