Function at 0x4515c0
Capabilities:
Get thread local storage value
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x481588
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x49f00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x6c], esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x70], eax
cmp dword [eax + 0x18], 0xd
jne 0x451665
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x10
call edi
test ax, ax
js 0x451662
cmp byte [esi + 0x446], 0
je 0x4518a0
cmp byte [esi + 0x447], 0
je 0x451639
push 0x11
call edi
test ax, ax
js 0x451646
cmp byte [esi + 0x447], 0
jne 0x4518a0
push 0x11
call edi
test ax, ax
js 0x4518a0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x4518ba
push 0
push 0
push 0x2d
push esi
call fcn.0041cec0
jmp 0x4518ba
mov eax, dword [ebp - 0x70]
cmp byte [esi + 0x44c], 0
je 0x4518a0
cmp dword [eax + 0x18], 0x56
jne 0x4518a0
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4518a0
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], eax
call fcn.004536f0
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x45184f
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 1
lea esi, [ebp - 0x28]
mov edx, dword [ebp - 0x14]
cmp edx, 8
mov ecx, dword [ebp - 0x28]
cmovae esi, ecx
nop
cmp edx, 8
lea eax, [ebp - 0x28]
cmovae eax, ecx
lea eax, [eax + edi*2]
cmp esi, eax
je 0x451713
movzx edi, word [esi]
lea eax, [edi - 0x30]
cmp ax, 9
ja 0x45170b
push edi
lea ecx, [ebp - 0x40]
call fcn.0040c9c0
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x18]
add esi, 2
jmp 0x4516e0
cmp dword [ebp - 0x30], 0
jne 0x451796
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x451759
mov ecx, dword [ebp - 0x40]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x451749
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4518d7
push edx
push ecx
call fcn.00463043
mov edx, dword [ebp - 0x14]
add esp, 8
mov ecx, dword [ebp - 0x28]
cmp edx, 8
jb 0x4518ba
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x451787
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4518dc
push edx
push ecx
call fcn.00463043
add esp, 8
jmp 0x4518ba
lea ecx, [ebp - 0x40]
call fcn.004538b0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x8c]
call fcn.004046e0
movups xmm0, xmmword [ebp - 0x8c]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x68], vtable.std::_Func_impl_no_alloc_class__lambda_f4db2b5e5f90277a4a6a073f2481a264___void___.0
mov dword [ebp - 0x44], eax
movups xmmword [ebp - 0x64], xmm0
movq xmm0, qword [ebp - 0x7c]
movq qword [ebp - 0x54], xmm0
mov byte [ebp - 4], 2
call fcn.00410410
lea ecx, [ebp - 0x68]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
call fcn.0040f5c0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x45180e
mov edx, dword [ecx]
lea eax, [ebp - 0x68]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0x44], 0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x45184c
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x451842
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4518e1
push edx
push ecx
call fcn.00463043
add esp, 8
mov esi, dword [ebp - 0x6c]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x45188c
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x451882
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4518e6
push edx
push ecx
call fcn.00463043
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov ecx, dword [ebp - 0x70]
mov eax, dword [esi]
push 0
push dword [ecx + 0x1c]
push dword [ecx + 0x18]
mov ecx, esi
push 0x100
call dword [eax + 0x1dc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00462ae1
mov esp, ebp
pop ebp
ret 4
call fcn.00466e0f
call fcn.00466e0f
call fcn.00466e0f
call fcn.00466e0f
int3