Function at 0x438390
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x508fe8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x254
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x18], esi
call fcn.00403230
xor edx, edx
mov ecx, eax
test ecx, ecx
setne dl
test edx, edx
jne 0x4383d1
push 0x80004005
call fcn.00402f10
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov ecx, esi
mov dword [ebp - 4], 0
xor ebx, ebx
call fcn.00437fd0
or ecx, 0xffffffff
test eax, eax
je 0x438676
mov ecx, dword [ebp - 0x18]
push edi
lea edi, [ecx + 0xc0]
mov dword [ebp - 0x1c], edi
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
lea edx, [eax - 0x10]
mov esi, dword [edx]
je 0x438457
cmp dword [edx + 0xc], 0
lea ecx, [edx + 0xc]
jge 0x438433
cmp dword [eax - 8], 0
jl 0x438668
xor ecx, ecx
mov dword [eax - 0xc], 0
mov word [eax], cx
jmp 0x438454
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x438447
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x18]
movdqu xmm0, xmmword [edi + 0x10]
movdqu xmm1, xmmword [edi]
movdqu xmmword [ebp - 0x48], xmm0
movdqu xmm0, xmmword [edi + 0x20]
movd eax, xmm1
movdqu xmmword [ebp - 0x38], xmm0
cmp eax, 1
jne 0x4384f5
push ebx
call fcn.004388b0
cmp eax, 1
jne 0x438639
push 0x104
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x40]
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
test ebx, ebx
je 0x4384c8
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
je 0x4384c8
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x10]
push 0x517dcc
push eax
call fcn.0040caa0
add esp, 0xc
jmp 0x438639
lea ecx, [ebp - 0x260]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4384d1
sub ecx, edx
lea eax, [ebp - 0x260]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.0040dad0
jmp 0x438639
test eax, eax
jne 0x438639
mov edi, dword [ebp - 0x44]
cmp edi, 4
je 0x438513
cmp edi, 0x10
je 0x438513
cmp edi, 0x40
jne 0x438636
call fcn.00403230
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x4383c7
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 1
cmp edi, 4
je 0x4385d7
cmp edi, 0x10
je 0x4385ae
cmp edi, 0x40
jne 0x438618
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push 0x409
push eax
call fcn.004a51b0
add esp, 0x14
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.0040c400
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
mov byte [ebp - 4], 1
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x438594
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
je 0x438603
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
je 0x438603
mov esi, dword [ebp - 0x14]
push esi
push 0x517dcc
jmp 0x43860c
push 0
push 0
push 0
lea eax, [ebp - 0x28]
push 0x408
push eax
call fcn.004a51b0
add esp, 0x14
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.0040c400
mov edx, dword [ebp - 0x28]
jmp 0x438576
push 0
push 0
push 0
lea eax, [ebp - 0x24]
push 0x407
push eax
call fcn.004a51b0
add esp, 0x14
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.0040c400
mov edx, dword [ebp - 0x24]
jmp 0x438576
mov esi, dword [ebp - 0x14]
push esi
push 0x517dd8
lea eax, [ebp - 0x10]
push eax
call fcn.0040caa0
add esp, 0xc
add esi, 0xfffffff0
mov byte [ebp - 4], 0
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x438636
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x43864d
push ecx
mov ecx, dword [ebp + 8]
push eax
call fcn.0040c630
mov ecx, dword [ebp - 0x18]
add edi, 0x30
inc ebx
mov dword [ebp - 0x1c], edi
call fcn.00437fd0
cmp ebx, eax
jae 0x438672
mov ecx, dword [ebp - 0x18]
jmp 0x438404
push 0x80070057
call fcn.00402f10
or ecx, 0xffffffff
pop edi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov esi, dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [eax]
cmp dword [eax - 0xc], ebx
setne bl
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4386a4
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4