Function at 0x80c160
Capabilities:
Log keystrokes via polling

Disassembly:
push 0xffffffffffffffff
push 0x848838
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x85f690]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x85f690]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, dword [esp + 0x50]
mov eax, dword [esi + 4]
mov edi, ecx
mov dword [esp + 0x18], edi
cmp eax, 0x100
je 0x80c1c2
cmp eax, 0x104
jne 0x80c5e4
mov eax, dword [esi + 8]
cmp eax, 0x79
je 0x80c1c2
cmp eax, 0x12
jne 0x80c5e4
mov eax, dword [esi + 8]
cmp eax, 0x1b
je 0x80c486
cmp eax, 0xd
je 0x80c486
push 0x852e18
lea ecx, [esp + 0x18]
call fcn.00802d50
xor eax, eax
xor ebx, ebx
mov dword [esp + 0x48], ebx
add edi, 0x74
mov word [esp + 0x1c], ax
mov dword [esp + 0x1e], eax
mov dword [esp + 0x22], eax
mov dword [esp + 0x26], eax
mov dword [esp + 0x2a], eax
mov dword [esp + 0x2e], eax
mov dword [esp + 0x32], eax
mov dword [esp + 0x36], eax
mov word [esp + 0x3a], ax
cmp edi, ebx
je 0x80c21d
mov ebx, dword [edi + 0x20]
mov ebp, dword [sym.imp.USER32.dll_GetFocus]
call ebp
cmp eax, ebx
jne 0x80c361
mov eax, dword [esi + 8]
cmp eax, 8
je 0x80c2fa
cmp eax, 0x2e
je 0x80c2fa
cmp eax, 0x5b
je 0x80c2fa
cmp eax, 0x5c
je 0x80c2fa
cmp eax, 0x7b
je 0x80c2fa
push 0x850f2c
lea ecx, [esp + 0x18]
call fcn.00801da0
mov eax, dword [esi + 8]
call fcn.0080c600
test eax, eax
je 0x80c294
mov ecx, dword [esi + 8]
mov edx, dword [esp + 0x18]
mov dword [edx + 0x170], ecx
mov eax, dword [esi + 8]
push eax
lea esi, [esp + 0x20]
call fcn.00806160
add esp, 4
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call esi
shr eax, 8
test al, al
je 0x80c2b3
push str.Ctrl__
lea ecx, [esp + 0x18]
call fcn.00801da0
push 0x10
call esi
shr eax, 8
test al, al
je 0x80c2cc
push str.Shift__
lea ecx, [esp + 0x18]
call fcn.0080d1b0
push 0x12
call esi
shr eax, 8
test al, al
je 0x80c2e5
push str.Alt__
lea ecx, [esp + 0x18]
call fcn.0080d1b0
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x18]
call fcn.0080d1b0
mov edx, dword [esp + 0x14]
push edx
jmp 0x80c2ff
mov eax, dword [esp + 0x14]
push eax
mov ecx, edi
call fcn.00813951
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
mov edx, dword [edi + 0x20]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0xffffffffffffffff
push eax
push 0xb1
push edx
call esi
mov eax, dword [edi + 0x20]
push 0
push 0
push 0xb7
push eax
call esi
mov dword [esp + 0x48], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x80c486
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x80c486
mov edi, dword [esp + 0x18]
add edi, 0xc8
jne 0x80c371
xor ebx, ebx
jmp 0x80c374
mov ebx, dword [edi + 0x20]
call ebp
cmp eax, ebx
jne 0x80c4ac
mov eax, dword [esi + 8]
cmp eax, 8
je 0x80c447
cmp eax, 0x2e
je 0x80c447
cmp eax, 0x5b
je 0x80c447
cmp eax, 0x5c
je 0x80c447
push 0x850f2c
lea ecx, [esp + 0x18]
call fcn.00801da0
mov eax, dword [esi + 8]
cmp eax, 9
je 0x80c3c4
call fcn.0080c600
test eax, eax
je 0x80c3e1
mov ecx, dword [esi + 8]
mov edx, dword [esp + 0x18]
mov dword [edx + 0x174], ecx
mov eax, dword [esi + 8]
push eax
lea esi, [esp + 0x20]
call fcn.00806160
add esp, 4
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call esi
shr eax, 8
test al, al
je 0x80c400
push str.Ctrl__
lea ecx, [esp + 0x18]
call fcn.00801da0
push 0x10
call esi
shr eax, 8
test al, al
je 0x80c419
push str.Shift__
lea ecx, [esp + 0x18]
call fcn.0080d1b0
push 0x12
call esi
shr eax, 8
test al, al
je 0x80c432
push str.Alt__
lea ecx, [esp + 0x18]
call fcn.0080d1b0
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x18]
call fcn.0080d1b0
mov edx, dword [esp + 0x14]
push edx
jmp 0x80c44c
mov eax, dword [esp + 0x14]
push eax
mov ecx, edi
call fcn.00813951
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx - 0xc]
mov eax, dword [edi + 0x20]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0xffffffffffffffff
push edx
push 0xb1
push eax
call esi
mov ecx, dword [edi + 0x20]
push 0
push 0
push 0xb7
push ecx
call esi
lea ecx, [esp + 0x14]
call fcn.00801de0
mov eax, 1
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.008321db
add esp, 0x38
ret 4
mov edi, dword [esp + 0x18]
add edi, 0x11c
jne 0x80c4bc
xor ebx, ebx
jmp 0x80c4bf
mov ebx, dword [edi + 0x20]
call ebp
cmp eax, ebx
jne 0x80c5cf
mov eax, dword [esi + 8]
cmp eax, 8
je 0x80c596
cmp eax, 0x2e
je 0x80c596
cmp eax, 0x5b
je 0x80c596
cmp eax, 0x5c
je 0x80c596
cmp eax, 0x7b
je 0x80c596
push 0x850f2c
lea ecx, [esp + 0x18]
call fcn.00801da0
mov eax, dword [esi + 8]
call fcn.0080c600
test eax, eax
je 0x80c530
mov edx, dword [esi + 8]
mov eax, dword [esp + 0x18]
mov dword [eax + 0x178], edx
mov ecx, dword [esi + 8]
push ecx
lea esi, [esp + 0x20]
call fcn.00806160
add esp, 4
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call esi
shr eax, 8
test al, al
je 0x80c54f
push str.Ctrl__
lea ecx, [esp + 0x18]
call fcn.00801da0
push 0x10
call esi
shr eax, 8
test al, al
je 0x80c568
push str.Shift__
lea ecx, [esp + 0x18]
call fcn.0080d1b0
push 0x12
call esi
shr eax, 8
test al, al
je 0x80c581
push str.Alt__
lea ecx, [esp + 0x18]
call fcn.0080d1b0
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x18]
call fcn.0080d1b0
mov eax, dword [esp + 0x14]
push eax
jmp 0x80c59b
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, edi
call fcn.00813951
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 0xc]
mov ecx, dword [edi + 0x20]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0xffffffffffffffff
push eax
push 0xb1
push ecx
call esi
mov edx, dword [edi + 0x20]
push 0
push 0
push 0xb7
push edx
jmp 0x80c47b
lea ecx, [esp + 0x14]
mov dword [esp + 0x48], 0xffffffff
call fcn.00801de0
mov edi, dword [esp + 0x18]
push esi
mov ecx, edi
call fcn.0081c3f4
jmp 0x80c48b