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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46c4ce
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x48700c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x70], edi
cmp dword [edi + 0x18], 0xd
jne 0x42b90d
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x10
call esi
test ax, ax
js 0x42b90d
cmp byte [ebx + 0x44e], 0
je 0x42baec
cmp byte [ebx + 0x44f], 0
je 0x42b8e4
push 0x11
call esi
test ax, ax
js 0x42b8f1
cmp byte [ebx + 0x44f], 0
jne 0x42baec
push 0x11
call esi
test ax, ax
js 0x42baec
mov ecx, dword [ebx + 0x20]
test ecx, ecx
je 0x42bb03
push 0
push 0
push 0x2d
push ebx
call fcn.0040d3f0
jmp 0x42bb03
cmp byte [ebx + 0x454], 0
je 0x42baec
cmp dword [edi + 0x18], 0x56
jne 0x42baec
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x42baec
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], eax
call fcn.0042d060
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x42babf
mov edi, 7
xor edx, edx
xor eax, eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edx
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 1
lea esi, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae esi, dword [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
lea eax, [eax + ecx*2]
cmp esi, eax
je 0x42ba1c
movzx eax, word [esi]
cmp eax, 0x39
ja 0x42ba0a
cmp eax, 0x30
jb 0x42ba0a
mov ecx, eax
mov dword [ebp - 0x6c], ecx
cmp edx, edi
jne 0x42b9e3
lea eax, [edx + 1]
cmp eax, 0x7ffffffe
ja 0x42ba12
cmp edi, eax
jae 0x42b9c7
push edx
push eax
lea ecx, [ebp - 0x28]
call fcn.00401f50
jmp 0x42b9dd
test eax, eax
jne 0x42b9e3
mov dword [ebp - 0x18], eax
cmp edi, 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
xor ecx, ecx
mov word [eax], cx
mov edx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x6c]
lea ecx, [ebp - 0x28]
cmp edi, 8
cmovae ecx, dword [ebp - 0x28]
mov word [ecx + edx*2], ax
mov eax, dword [ebp - 0x18]
inc eax
xor edx, edx
mov dword [ebp - 0x18], eax
mov word [ecx + eax*2], dx
mov ecx, dword [ebp - 0x30]
mov edi, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
add esi, 2
jmp 0x42b981
push str.string_too_long
call fcn.00450ef4
lea ecx, [ebp - 0x28]
test edx, edx
jne 0x42ba35
call fcn.004019d0
lea ecx, [ebp - 0x40]
call fcn.004019d0
jmp 0x42bb03
call fcn.0042d1c0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x6c], ecx
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 8
jb 0x42ba5a
mov eax, dword [ecx]
jmp 0x42ba5c
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0x40]
push edx
push eax
call fcn.00401c50
lea ecx, [ebp - 0x68]
call fcn.0042d760
mov byte [ebp - 4], 2
call fcn.00406060
lea ecx, [ebp - 0x68]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
call fcn.004051a0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x42bab4
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
lea ecx, [ebp - 0x28]
call fcn.004019d0
mov edi, dword [ebp - 0x70]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x42bad8
inc eax
push eax
push dword [ebp - 0x40]
call fcn.00401d70
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov eax, dword [ebx]
mov ecx, ebx
push 0
push dword [edi + 0x1c]
push dword [edi + 0x18]
push 0x100
call dword [eax + 0x1dc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00450f3a
mov esp, ebp
pop ebp
ret 4