Function at 0x104e5c0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov dword [ebp - 0x54], ecx
push 0x16e
push 0x110d31c
mov eax, dword [ebp - 0x54]
push eax
call fcn.0100a1f0
mov ecx, dword [ebp - 0x54]
cmp dword [ecx + 0x20], 0
jne 0x104e5f9
push 0x16f
push 0x110d354
call fcn.0100a6d0
test eax, eax
je 0x104e5f9
int3
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x54]
call fcn.0102e9e0
test eax, eax
je 0x104e613
mov eax, 1
jmp 0x104e866
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
mov dword [ebp - 0xc], edx
mov ecx, dword [ebp - 0x54]
call fcn.0103a4c0
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax + 0x80]
and ecx, 0x20
jne 0x104e64b
cmp dword [ebp - 0xc], 0x201
je 0x104e64b
cmp dword [ebp - 0xc], 0x202
jne 0x104e7f5
cmp dword [ebp - 0xc], 0x200
jb 0x104e65d
cmp dword [ebp - 0xc], 0x209
jbe 0x104e677
cmp dword [ebp - 0xc], 0xa0
jb 0x104e7f5
cmp dword [ebp - 0xc], 0xa9
ja 0x104e7f5
call fcn.010105d0
mov dword [ebp - 0x20], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
push eax
mov ecx, dword [edx + 0x14]
push ecx
lea ecx, [ebp - 0x18]
call fcn.010ccde0
lea edx, [ebp - 0x18]
push edx
mov ecx, dword [ebp - 0x54]
call fcn.0103ac70
push 0x30
push 0
lea eax, [ebp - 0x50]
push eax
call fcn.010a0510
add esp, 0xc
mov dword [ebp - 0x50], 0x28
lea ecx, [ebp - 0x50]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x54]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x54]
mov eax, dword [edx + 0x74]
call eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x2c], 0xffffffff
je 0x104e6e3
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0109e590
add esp, 4
cmp dword [ebp - 0xc], 0x201
jne 0x104e700
mov edx, dword [ebp - 0x4c]
and edx, 0x80000000
je 0x104e700
mov dword [ebp - 0x58], 1
jmp 0x104e707
mov dword [ebp - 0x58], 0
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], 0x201
je 0x104e72e
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
test ecx, ecx
jge 0x104e72e
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x4c]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jl 0x104e73a
cmp dword [ebp - 0x10], 0
je 0x104e770
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
test ecx, ecx
jge 0x104e74f
cmp dword [ebp - 0x10], 0
je 0x104e76e
push 0xffffffffffffffff
mov edx, dword [ebp - 0x54]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x54]
mov edx, dword [eax + 0x16c]
call edx
push 0xe001
mov ecx, dword [ebp - 0x54]
call fcn.0103b4c0
jmp 0x104e7ec
cmp dword [ebp - 0xc], 0x202
jne 0x104e79f
push 0xffffffffffffffff
mov eax, dword [ebp - 0x54]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x54]
mov eax, dword [edx + 0x16c]
call eax
push 0xc8
push 0xe001
mov ecx, dword [ebp - 0x54]
call fcn.0104e280
jmp 0x104e7ec
mov ecx, dword [ebp - 0x54]
mov edx, dword [ecx + 0x7c]
and edx, 8
jne 0x104e7b9
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
movsx eax, ax
test eax, eax
jge 0x104e7cf
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x54]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x54]
mov edx, dword [eax + 0x16c]
call edx
jmp 0x104e7ec
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax + 0x4c]
je 0x104e7ec
push 0x12c
push 0xe000
mov ecx, dword [ebp - 0x54]
call fcn.0104e280
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
mov dword [edx + 0x4c], eax
mov ecx, dword [ebp - 0x54]
call fcn.01030fd0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x104e813
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x68], 0
je 0x104e813
xor eax, eax
jmp 0x104e866
cmp dword [ebp - 8], 0
je 0x104e845
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov ecx, dword [ebp - 8]
mov eax, dword [edx + 0x108]
call eax
test eax, eax
je 0x104e838
mov eax, 1
jmp 0x104e866
mov ecx, dword [ebp - 8]
call fcn.01030d00
mov dword [ebp - 8], eax
jmp 0x104e813
mov ecx, dword [ebp - 0x54]
mov edx, dword [ecx + 0x20]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x104e864
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x54]
call fcn.01035250
jmp 0x104e866
xor eax, eax
mov esp, ebp
pop ebp
ret 4