Function at 0x10181c6
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
cmp dword [0x101ee68], edi
mov dword [ebp - 0xc], edi
je 0x10181e3
call fcn.01017cc9
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, dword [0x101edb0]
mov eax, dword [0x101ee80]
jne 0x1018264
cmp eax, 3
jge 0x1018264
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
inc dword [0x101ee80]
push 0x101ef60
push 1
push 0x411
push dword [0x101ef90]
call esi
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
add eax, 0xa
movzx eax, ax
add ecx, 0xa
movzx ecx, cx
shl eax, 0x10
or eax, ecx
push eax
push edi
push 0x412
push dword [0x101ef90]
call esi
push edi
push 0xfa0
push 0x3f6
push dword [0x101edb0]
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x1018285
cmp eax, edi
je 0x1018285
push 0x101ef60
push edi
push 0x411
push dword [0x101ef90]
mov dword [0x101ee80], edi
call dword [sym.imp.USER32.dll_SendMessageW]
push 0xfffffffffffffff4
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ebx, eax
cmp ebx, edi
jl 0x1018777
cmp ebx, dword [0x101edb4]
jg 0x1018777
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
mov esi, ebx
imul esi, esi, 0x5c
push 0x1001498
add esi, 0x101c218
push dword [esi]
call edi
test eax, eax
je 0x101876e
push 0x1001438
push dword [esi]
call edi
test eax, eax
je 0x101876e
cmp dword [0x101ee64], 0
jne 0x101876e
lea edi, [esi + 0x30]
mov eax, dword [edi]
cmp eax, 0xe0
jne 0x10183b0
mov eax, dword [esi + 0x34]
cmp eax, 0x47
jb 0x1018303
cmp eax, 0x53
jbe 0x101830c
cmp eax, 0x35
jne 0x101839e
cmp eax, 0x4d
ja 0x1018343
je 0x101833f
sub eax, 0x35
je 0x101833b
sub eax, 0x12
je 0x1018337
dec eax
je 0x1018333
dec eax
je 0x101832f
dec eax
dec eax
jne 0x1018777
push 0x25
jmp 0x101838c
push 0x21
jmp 0x101838c
push 0x26
jmp 0x101838c
push 0x24
jmp 0x101838c
push 0x6f
jmp 0x101838c
push 0x27
jmp 0x101838c
sub eax, 0x4f
je 0x101838a
dec eax
je 0x1018386
dec eax
je 0x1018382
dec eax
je 0x101837e
dec eax
jne 0x1018777
cmp dword [0x101ee6c], 0
push 0x2e
pop edi
je 0x101838d
cmp dword [0x101ee74], 1
jne 0x101838d
mov dword [0x101ee68], 1
call fcn.01017e18
jmp 0x101838d
push 0x2d
jmp 0x101838c
push 0x22
jmp 0x101838c
push 0x28
jmp 0x101838c
push 0x23
pop edi
push dword [esi + 0x34]
push edi
push dword [ebp + 8]
call fcn.01017d1e
jmp 0x1018777
push 1
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov dword [ebp - 0xc], 1
jmp 0x10183d1
cmp eax, 0x47
jb 0x10183c8
cmp eax, 0x53
ja 0x10183c8
push dword [ebp + 8]
push eax
call fcn.01018068
jmp 0x1018777
push 1
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x10]
cmp eax, 7
jg 0x101859f
je 0x101853e
test eax, eax
jl 0x1018601
cmp eax, 1
jle 0x10184c2
cmp eax, 2
je 0x10184b3
cmp eax, 3
jle 0x1018601
cmp eax, 5
jle 0x1018473
cmp eax, 6
jne 0x1018601
cmp dword [0x101ee74], 2
mov esi, 0x101ee54
jne 0x101843d
push 2
push 2
call fcn.0101790f
and dword [0x101ee74], 0
push 1
push esi
call fcn.01017e48
xor eax, eax
cmp dword [0x101ee74], eax
sete al
mov dword [0x101ee74], eax
push 1
test eax, eax
je 0x101858b
push 0
call fcn.0101790f
mov eax, dword [ebp + 8]
mov dword [0x101ee54], eax
push 1
push eax
call fcn.010179dd
jmp 0x1018777
xor eax, eax
cmp dword [0x101ee6c], eax
sete al
test eax, eax
mov dword [0x101ee6c], eax
je 0x101849c
push 0
push dword [edi]
push 0x11
call fcn.01017dda
mov eax, dword [ebp + 8]
mov dword [0x101ee50], eax
jmp 0x1018466
push 2
push dword [edi]
push 0x11
call fcn.01017dda
push 1
push 0x101ee50
jmp 0x1018595
push dword [edi]
push dword [ebp - 4]
call fcn.01017d8b
jmp 0x1018777
cmp dword [0x101edf8], 0
je 0x101851f
mov eax, dword [0x101ee5c]
cmp dword [ebp + 8], eax
je 0x10184fc
push 0xfffffffffffffff4
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, eax
jl 0x1018777
cmp eax, dword [0x101edb4]
jg 0x1018777
imul eax, eax, 0x5c
add eax, 0x101c218
mov esi, eax
xor eax, eax
cmp dword [esi + 0x10], 1
sete al
or eax, 2
push eax
push dword [esi + 0x30]
push 0x10
call fcn.01017dda
and dword [0x101ee5c], 0
jmp 0x1018777
xor ecx, ecx
cmp eax, 1
sete cl
push ecx
push dword [edi]
push 0x10
call fcn.01017dda
mov eax, dword [ebp + 8]
mov dword [0x101ee5c], eax
jmp 0x1018777
mov eax, dword [0x101ee74]
cmp eax, 1
mov esi, 0x101ee54
jne 0x1018569
push eax
push 2
call fcn.0101790f
and dword [0x101ee74], 0
push 1
push esi
call fcn.01017e48
mov eax, dword [0x101ee74]
neg eax
sbb eax, eax
and eax, 0xfffffffe
inc eax
inc eax
cmp dword [0x101ed88], 0
mov dword [0x101ee74], eax
je 0x101844d
push 2
jmp 0x101844f
push 2
call fcn.0101790f
push 1
push esi
call fcn.01017e48
jmp 0x1018777
sub eax, 8
je 0x101875b
dec eax
je 0x1018752
sub eax, 6
je 0x101873f
dec eax
jne 0x1018601
cmp dword [0x101ee78], 0
mov eax, dword [0x101eda8]
jne 0x10185e0
push 4
push 0
push dword [eax + ebx*4]
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov eax, dword [ebp + 8]
mov dword [0x101ee78], eax
jmp 0x10185f4
push 1
push 0
push dword [eax + ebx*4]
call dword [sym.imp.USER32.dll_SetWindowLongW]
and dword [0x101ee78], 0
push 1
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_InvalidateRect]
cmp dword [ebp - 0xc], 0
je 0x1018637
push dword [esi + 0x34]
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.01017d1e
xor ebx, ebx
cmp dword [esi + 0x34], 0x53
jne 0x1018687
cmp dword [0x101ee6c], ebx
je 0x1018687
xor eax, eax
inc eax
cmp dword [0x101ee74], eax
jne 0x1018687
mov dword [0x101ee68], eax
jmp 0x1018687
cmp dword [ebp - 4], 0
jne 0x101865e
cmp dword [edi], 0xe1
jne 0x101865e
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ah, ah
jns 0x1018658
push dword [esi + 0x38]
push 3
jmp 0x1018663
push dword [edi]
push 0x13
jmp 0x1018663
push dword [edi]
push dword [ebp - 4]
call fcn.01017d8b
push 1
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_InvalidateRect]
cmp dword [0x101edcc], 0
je 0x1018685
push 1
call fcn.0101799e
xor ebx, ebx
cmp dword [0x101edf8], ebx
je 0x10186e0
mov eax, dword [0x101ee5c]
cmp eax, ebx
je 0x10186e0
push 0xfffffffffffffff4
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
cmp eax, ebx
jl 0x1018777
cmp eax, dword [0x101edb4]
jg 0x1018777
imul eax, eax, 0x5c
xor esi, esi
add eax, 0x101c218
xor ecx, ecx
inc esi
cmp dword [eax + 0x10], esi
lea edi, [eax + 0x30]
sete cl
or ecx, 2
push ecx
push dword [edi]
push 0x10
call fcn.01017dda
mov dword [0x101ee5c], ebx
jmp 0x10186e3
xor esi, esi
inc esi
mov eax, dword [0x101ee74]
cmp eax, esi
jne 0x1018703
cmp word [edi], 0xf
je 0x10186fd
push esi
push 2
call fcn.0101790f
push esi
jmp 0x1018710
mov dword [0x101ee70], esi
cmp eax, 2
jne 0x1018720
push eax
push eax
call fcn.0101790f
push ebx
push 0x101ee54
call fcn.01017e48
mov dword [0x101ee74], ebx
cmp dword [0x101ee6c], ebx
je 0x1018777
push 2
push dword [edi]
push 0x11
call fcn.01017dda
mov dword [0x101ee6c], ebx
push ebx
jmp 0x10184a9
push 0x46
push 0x91
call fcn.01017d8b
call fcn.01014f7f
jmp 0x1018777
push 0
push 0x2c
jmp 0x10184b8
push 0x45
push 0x90
call fcn.01017d8b
call fcn.01014ecc
jmp 0x1018777
push ebx
push dword [ebp + 8]
call fcn.01017e74
pop edi
pop esi
pop ebx
leave
ret 4