Function at 0x1003474f
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
test esi, esi
je 0x10034772
mov eax, dword [esi + 0x1c]
shr eax, 0x19
test al, 1
jne 0x100349e7
test byte [edi + 0xa0], 1
mov ecx, dword [edi + 0x16c]
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x1c], ecx
je 0x10034978
xor ecx, ecx
mov dword [esp + 0xc], ebx
inc ecx
test esi, esi
je 0x100347b5
mov eax, ebx
and al, 0xf
cmp al, 4
jne 0x100347b5
test byte [esi + 0x1c], 2
je 0x100349e7
and ebx, 0xffffff01
or ebx, ecx
mov dword [esp + 0xc], ebx
mov edx, ebx
mov dword [esp + 0x18], 0x8000
and edx, 0xf
mov eax, ebx
and eax, 0x30
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
cmp edx, ecx
je 0x100347fa
test eax, eax
je 0x100347f0
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, dword [esp + 0x18]
test cx, ax
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
jne 0x100347f7
and dword [esp + 0x14], 0
jmp 0x100347fe
xor ecx, ecx
inc ecx
mov dword [esp + 0x14], ecx
cmp edx, 2
je 0x1003481c
test eax, eax
je 0x10034818
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, dword [esp + 0x18]
test cx, ax
jne 0x1003481c
xor eax, eax
jmp 0x1003481f
xor eax, eax
inc eax
test esi, esi
je 0x10034931
cmp dword [esp + 0x14], 0
je 0x1003485a
mov dword [edi + 0x16c], esi
mov ecx, esi
mov eax, dword [esi]
push 2
call dword [eax + 0x6c]
not eax
mov ecx, esi
mov edx, eax
call fcn.10033aab
mov eax, dword [esi + 0x1c]
shr eax, 1
pop ecx
test al, 1
je 0x100348b0
mov dword [edi + 0x170], esi
jmp 0x100348b0
cmp dword [edi + 0x170], 0
je 0x1003491c
test eax, eax
je 0x1003491c
lea ebx, [edi + 0x118]
mov dword [edi + 0x16c], esi
mov dword [esp + 0x10], ebx
jmp 0x100348a8
cmp ebx, esi
je 0x100348c7
cmp ebx, dword [edi + 0x170]
je 0x100348c1
push 2
xor edx, edx
mov ecx, ebx
call fcn.10033aab
pop ecx
push 0
lea ecx, [esp + 0x14]
call fcn.1004bfba
mov ebx, dword [esp + 0x10]
test ebx, ebx
jne 0x10034881
mov ebx, dword [esp + 0xc]
mov eax, dword [esp + 0x1c]
cmp eax, esi
je 0x100349c6
jmp 0x100349ba
mov dword [esp + 0x18], esi
jmp 0x100348f5
mov eax, dword [edi + 0x170]
mov dword [esp + 0x18], eax
jmp 0x100348f5
push 2
push 2
pop edx
mov ecx, ebx
call fcn.10033aab
pop ecx
push 0
lea ecx, [esp + 0x14]
call fcn.1004bfba
cmp ebx, dword [esp + 0x18]
je 0x10034912
mov ebx, dword [esp + 0x10]
test ebx, ebx
jne 0x100348d3
jmp 0x100348ac
push 2
xor edx, edx
mov ecx, eax
call fcn.10033aab
pop ecx
push 0
lea ecx, [esp + 0x14]
call fcn.1004bfba
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x100348fb
jmp 0x100348ac
mov ecx, dword [esi + 0x1c]
mov eax, ecx
and al, 6
cmp al, 2
je 0x100349e7
and ecx, 0xfffffffb
mov dword [esi + 0x1c], ecx
mov eax, dword [edi + 0x124]
mov dword [edi + 0x16c], esi
mov dword [esp + 0x18], eax
jmp 0x1003496f
mov edx, dword [eax + 0x1c]
mov ecx, edx
or ecx, 2
and edx, 0xfffffffd
cmp esi, eax
push 0xfffffff
cmove edx, ecx
mov ecx, eax
call fcn.10033aab
pop ecx
push 0
lea ecx, [esp + 0x1c]
call fcn.1004bfba
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x10034943
jmp 0x10034852
mov eax, ebx
and al, 0xf
cmp al, 4
jne 0x10034987
xor eax, eax
cmp ecx, esi
cmove esi, eax
mov dword [edi + 0x170], esi
cmp ecx, esi
je 0x100349e7
test ecx, ecx
je 0x1003499f
push 2
xor edx, edx
call fcn.10033aab
pop ecx
mov dword [edi + 0x16c], esi
test esi, esi
je 0x100349b6
push 2
push 2
pop edx
mov ecx, esi
call fcn.10033aab
pop ecx
mov eax, dword [esp + 0x1c]
push dword [ebp + 0x10]
mov ecx, edi
push esi
push eax
call fcn.100346d0
test esi, esi
je 0x100349dc
test ebx, 0x100
je 0x100349dc
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc0]
mov edx, dword [edi]
lea eax, [edi + 0x5c]
push eax
mov ecx, edi
call dword [edx + 0x24]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc