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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46deae
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x49500c]
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 0x43177d
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x10
call esi
test ax, ax
js 0x43177d
cmp byte [ebx + 0x44e], 0
je 0x43195c
cmp byte [ebx + 0x44f], 0
je 0x431754
push 0x11
call esi
test ax, ax
js 0x431761
cmp byte [ebx + 0x44f], 0
jne 0x43195c
push 0x11
call esi
test ax, ax
js 0x43195c
mov ecx, dword [ebx + 0x20]
test ecx, ecx
je 0x431973
push 0
push 0
push 0x2d
push ebx
call fcn.00413e80
jmp 0x431973
cmp byte [ebx + 0x454], 0
je 0x43195c
cmp dword [edi + 0x18], 0x56
jne 0x43195c
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x43195c
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.00432ed0
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x43192f
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 0x43188c
movzx eax, word [esi]
cmp eax, 0x39
ja 0x43187a
cmp eax, 0x30
jb 0x43187a
mov ecx, eax
mov dword [ebp - 0x6c], ecx
cmp edx, edi
jne 0x431853
lea eax, [edx + 1]
cmp eax, 0x7ffffffe
ja 0x431882
cmp edi, eax
jae 0x431837
push edx
push eax
lea ecx, [ebp - 0x28]
call fcn.00403a20
jmp 0x43184d
test eax, eax
jne 0x431853
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 0x4317f1
push str.string_too_long
call fcn.00452735
lea ecx, [ebp - 0x28]
test edx, edx
jne 0x4318a5
call fcn.004031b0
lea ecx, [ebp - 0x40]
call fcn.004031b0
jmp 0x431973
call fcn.00433030
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 0x4318ca
mov eax, dword [ecx]
jmp 0x4318cc
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0x40]
push edx
push eax
call fcn.00403430
lea ecx, [ebp - 0x68]
call fcn.004335d0
mov byte [ebp - 4], 2
call fcn.0040caf0
lea ecx, [ebp - 0x68]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
call fcn.0040bc30
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x431924
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.004031b0
mov edi, dword [ebp - 0x70]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x431948
inc eax
push eax
push dword [ebp - 0x40]
call fcn.00403770
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.00452829
mov esp, ebp
pop ebp
ret 4