Function at 0x10027890
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
movzx eax, byte [0x1003fc61]
test eax, eax
jne 0x100278ab
xor al, al
jmp 0x10027c22
mov ecx, dword [0x1003dd64]
call fcn.100109f0
push eax
mov ecx, dword [0x1003dd60]
call fcn.100133b0
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x100278d2
xor al, al
jmp 0x10027c22
cmp dword [ebp + 8], 0
jne 0x100278df
xor al, al
jmp 0x10027c22
mov ecx, dword [ebp - 8]
call fcn.100203c0
movzx ecx, al
test ecx, ecx
jne 0x100278f5
xor al, al
jmp 0x10027c22
mov ecx, dword [ebp - 8]
call fcn.10020ee0
cmp eax, 9
je 0x1002790f
mov ecx, dword [ebp - 8]
call fcn.10020ee0
cmp eax, 8
jne 0x10027916
xor al, al
jmp 0x10027c22
movzx edx, byte [0x1003fe9c]
test edx, edx
jne 0x1002793f
mov eax, dword [0x1003fc84]
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movsx ecx, ax
and ecx, 0x8000
jne 0x1002793f
xor al, al
jmp 0x10027c22
mov ecx, dword [ebp - 8]
call fcn.10021160
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x10027957
xor al, al
jmp 0x10027c22
mov ecx, dword [ebp - 0xc]
call fcn.10021220
cmp dword [eax + 0x160], 1
jg 0x1002796f
xor al, al
jmp 0x10027c22
call fcn.10027c30
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x539
jne 0x10027987
xor al, al
jmp 0x10027c22
mov edx, dword [ebp - 0x10]
push edx
mov ecx, dword [0x1003dd60]
call fcn.100133b0
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
call fcn.10010a90
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.10027500
add esp, 4
mov byte [ebp - 1], al
movzx edx, byte [ebp - 1]
test edx, edx
jne 0x100279c5
xor al, al
jmp 0x10027c22
lea ecx, [ebp - 0x48]
call fcn.10010900
lea eax, [ebp - 0x48]
push eax
mov ecx, dword [0x1003dd64]
call fcn.10019870
movzx ecx, byte [ebp - 1]
push ecx
lea edx, [ebp - 0x54]
push edx
mov ecx, dword [ebp - 0x14]
call fcn.10020d00
sub esp, 0xc
mov ecx, esp
lea eax, [ebp - 0x54]
push eax
call fcn.10010970
sub esp, 0xc
mov ecx, esp
push 0
push ecx
mov ecx, dword [ebp - 8]
call fcn.10020c90
sub esp, 0xc
mov ecx, esp
lea edx, [ebp - 0x48]
push edx
call fcn.10010970
call fcn.10027620
add esp, 0x24
fstp dword [ebp - 0x20]
movss xmm0, dword [ebp - 0x20]
comiss xmm0, dword [0x1003fc68]
jbe 0x10027a39
xor al, al
jmp 0x10027c22
mov eax, dword [ebp + 8]
add eax, 0xc
push eax
lea ecx, [ebp - 0x3c]
call fcn.10010970
mov ecx, dword [ebp + 8]
movss xmm0, dword [ecx + 0x18]
movss dword [ebp - 0x28], xmm0
mov edx, dword [ebp + 8]
movss xmm0, dword [edx + 0x1c]
movss dword [ebp - 0x24], xmm0
sub esp, 0xc
mov ecx, esp
lea eax, [ebp - 0x54]
push eax
call fcn.10010970
sub esp, 0xc
push esp
mov ecx, dword [ebp - 8]
call fcn.10020bd0
lea ecx, [ebp - 0x60]
push ecx
mov ecx, 0x10049c30
call fcn.1000f3c0
mov ecx, eax
call fcn.10023e40
movzx edx, byte [0x1003fc70]
test edx, edx
je 0x10027ab0
lea eax, [ebp - 0x60]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0xc
call fcn.10010970
jmp 0x10027b3d
sub esp, 0xc
mov ecx, esp
lea edx, [ebp - 0x3c]
push edx
push ecx
lea ecx, [ebp - 0x60]
call fcn.10020060
lea eax, [ebp - 0x6c]
push eax
call fcn.10026c40
add esp, 0x10
push ecx
movss xmm0, dword [0x1003fe8c]
movss dword [esp], xmm0
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x6c]
call fcn.10019510
push eax
lea edx, [ebp - 0x84]
push edx
lea ecx, [ebp - 0x3c]
call fcn.10020000
push eax
mov ecx, dword [ebp + 8]
add ecx, 0xc
call fcn.10010970
push ecx
movss xmm0, dword [0x1003fe8c]
movss dword [esp], xmm0
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x6c]
call fcn.10019510
push eax
lea ecx, [ebp - 0x9c]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.10020000
push eax
mov ecx, dword [0x1003dd64]
call fcn.10026990
push str.CChainsaw
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.VCRUNTIME140.dll_strstr]
add esp, 8
test eax, eax
jne 0x10027b6b
mov eax, dword [ebp + 8]
push eax
call fcn.10026bb0
add esp, 4
mov ecx, dword [ebp + 8]
push ecx
call fcn.10026d20
add esp, 4
push ecx
movss xmm0, dword [ebp - 0x24]
movss dword [esp], xmm0
push ecx
movss xmm0, dword [ebp - 0x28]
movss dword [esp], xmm0
mov edx, dword [ebp + 8]
push edx
sub esp, 0xc
mov ecx, esp
lea eax, [ebp - 0x3c]
push eax
call fcn.10010970
mov ecx, 0x10049c30
call fcn.1000f3c0
mov ecx, eax
call fcn.10022580
mov ecx, dword [ebp - 8]
call fcn.10021160
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x10027bb9
xor al, al
jmp 0x10027c22
movzx ecx, byte [0x1003fe9c]
test ecx, ecx
je 0x10027c20
push 0
mov ecx, 0x10049c30
call fcn.1000f3c0
mov ecx, eax
call fcn.10024210
fstp dword [ebp - 0x30]
mov ecx, dword [ebp - 0x18]
call fcn.10021200
fstp dword [ebp - 0x2c]
mov byte [ebp - 2], 1
movss xmm0, dword [ebp - 0x2c]
comiss xmm0, dword [ebp - 0x30]
jbe 0x10027bf8
mov byte [ebp - 2], 0
movzx edx, byte [ebp - 2]
test edx, edx
je 0x10027c11
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x24]
or ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + 0x24], ecx
jmp 0x10027c20
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x24]
and ecx, 0xfffffffe
mov edx, dword [ebp + 8]
mov dword [edx + 0x24], ecx
mov al, 1
mov esp, ebp
pop ebp
ret