Function at 0x140044550
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov rax, qword [0x1401bc080]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov eax, dword [0x1402c565c]
cmp eax, 1
jbe 0x14004459e
cmp eax, 2
jne 0x14004458d
mov ebx, 0x55ffff
jmp 0x1400445a3
cmp eax, 3
jne 0x140044599
mov ebx, 0x6a63fe
jmp 0x1400445a3
mov ebx, dword [rbp - 0x11]
jmp 0x1400445a3
mov ebx, 0xfe69eb
mov ecx, dword [reloc.WS2_32.dll_closesocket]
mov eax, dword [0x1402c2a5c]
cdq
sub eax, edx
sar eax, 1
mov esi, eax
sub esi, ecx
lea r15d, [rax + rcx]
mov ecx, dword [reloc.WS2_32.dll_closesocket]
mov eax, dword [0x1402c2a58]
cdq
sub eax, edx
sar eax, 1
mov r14d, eax
sub r14d, ecx
lea edi, [rax + rcx]
mov ecx, dword [reloc.WS2_32.dll_getsockname]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x140044816
cmp byte [0x1402c5660], 0
je 0x140044816
mov qword [rsp + 0xd0], r12
xor ecx, ecx
mov qword [rsp + 0xd8], r13
call qword [sym.imp.USER32.dll_GetDC]
mov rcx, rax
mov r13, rax
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
xor ecx, ecx
mov dword [rbp + 7], Ordinal_46
mov r12, rax
mov dword [rsp + 0x28], ecx
xorps xmm0, xmm0
mov dword [rbp + 0x2b], ecx
mov qword [rbp - 0x11], rcx
lea r9, [rbp - 0x11]
mov qword [rsp + 0x20], rcx
lea rdx, [rbp + 7]
sub edi, r14d
mov qword [rbp + 0x13], 0x200001
mov eax, edi
sub r15d, esi
neg eax
mov dword [rbp + 0xb], r15d
xor r8d, r8d
mov dword [rbp + 0xf], eax
mov rcx, r13
movdqu xmmword [rbp + 0x1b], xmm0
call qword [sym.imp.GDI32.dll_CreateDIBSection]
mov qword [rbp - 0x19], rax
test rax, rax
je 0x1400447f2
mov rdx, rax
mov rcx, r12
call qword [sym.imp.GDI32.dll_SelectObject]
mov dword [rsp + 0x40], 0xcc0020
mov r9d, r15d
mov dword [rsp + 0x38], r14d
xor r8d, r8d
mov dword [rsp + 0x30], esi
xor edx, edx
mov qword [rsp + 0x28], r13
mov rcx, r12
mov dword [rsp + 0x20], edi
call qword [sym.imp.GDI32.dll_BitBlt]
xor esi, esi
imul edi, r15d
mov r9d, esi
test edi, edi
jle 0x1400447e8
mov r8, qword [rbp - 0x11]
inc r8
movzx r10d, bl
nop dword [rax]
movzx ecx, byte [r8 + 1]
sub ecx, r10d
mov eax, ecx
neg eax
cmovs eax, ecx
cmp eax, 0x5a
jge 0x140044717
movzx ecx, byte [r8]
movzx eax, bx
shr eax, 8
sub ecx, eax
mov eax, ecx
neg eax
cmovs eax, ecx
cmp eax, 0x5a
jge 0x140044717
movzx edx, byte [r8 - 1]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
sub edx, ecx
mov eax, edx
neg eax
cmovs eax, edx
cmp eax, 0x5a
jl 0x140044728
inc r9d
add r8, 4
cmp r9d, edi
jl 0x1400446d0
jmp 0x1400447e8
mov ebx, 1
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jne 0x1400447e8
mov rcx, qword [0x1402c0760]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140044780
mov edx, dword [0x1402c0758]
lea r8, [rbp - 9]
mov qword [rsp + 0x38], rsi
mov r9d, ntohs
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
mov qword [rbp - 9], rsi
mov word [rbp - 1], bx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
lea rcx, [rbp - 9]
mov qword [rbp - 9], rbx
call fcn.1400473b0
mov rcx, qword [0x1402c0760]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400447d4
mov edx, dword [0x1402c0758]
lea r8, [rbp - 9]
mov qword [rsp + 0x38], rsi
mov eax, 2
mov qword [rsp + 0x30], rsi
mov r9d, ntohs
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
mov qword [rbp - 9], rsi
mov word [rbp - 1], ax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
movsxd rax, dword [reloc.WS2_32.dll_accept]
lea rcx, [rbp - 9]
mov qword [rbp - 9], rax
call fcn.1400473b0
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, r12
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rdx, r13
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
mov r13, qword [rsp + 0xd8]
mov r12, qword [rsp + 0xd0]
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1400c2d60
mov rbx, qword [rsp + 0xe0]
add rsp, 0xa0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret