Function at 0x1010046d
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, 0x10165833
call fcn.10105030
sub esp, 0x20
mov eax, dword [ebp + 8]
test eax, eax
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
jne 0x1010048c
and dword [ebp - 0x28], eax
jmp 0x10100492
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x28], eax
mov edi, dword [ebp + 0xc]
mov esi, dword [edi + 4]
mov dword [ebp - 0x18], esi
call dword [sym.imp.USER32.dll_GetFocus]
push eax
mov dword [ebp - 0x2c], eax
call fcn.1015486c
mov ebx, 0x100
cmp esi, ebx
mov dword [ebp - 0x14], eax
jb 0x101004be
cmp esi, 0x109
jbe 0x101004d6
cmp esi, 0x200
jb 0x10100583
cmp esi, 0x209
ja 0x10100583
test eax, eax
je 0x10100583
mov esi, dword [ebp - 0x14]
mov edi, dword [sym.imp.USER32.dll_GetParent]
cmp dword [esi + 0x4c], 0
jne 0x1010050e
push dword [esi + 0x1c]
call edi
push eax
call fcn.1015486c
cmp eax, dword [ebp + 8]
je 0x1010050e
push dword [esi + 0x1c]
call edi
push eax
call fcn.1015486c
mov esi, eax
test esi, esi
jne 0x101004e7
test esi, esi
je 0x10100535
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x10100535
cmp dword [eax + 0x54], 0
je 0x10100535
mov eax, dword [eax + 0x54]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
test eax, eax
jne 0x10100535
inc eax
jmp 0x101006dc
cmp dword [ebp - 0x18], 0x101
je 0x1010054c
cmp dword [ebp - 0x18], ebx
je 0x1010054c
cmp dword [ebp - 0x18], 0x102
jne 0x10100580
test esi, esi
je 0x10100580
mov esi, dword [esi + 0x4c]
test esi, esi
je 0x10100580
mov eax, dword [ebp + 0xc]
mov ax, word [eax + 8]
cmp ax, 0xd
jne 0x10100571
test byte [esi + 0x80], 1
jne 0x101005fc
cmp ax, 0x1b
jne 0x10100580
test byte [esi + 0x80], 2
jne 0x101005fc
mov edi, dword [ebp + 0xc]
push dword [edi]
call fcn.1015486c
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
xor esi, esi
and dword [ebp - 0x24], esi
sub eax, ebx
mov dword [ebp - 0x20], 2
je 0x10100627
dec eax
dec eax
je 0x101005d2
sub eax, 4
jne 0x1010065e
cmp dword [ebp - 0x14], esi
jne 0x101005c7
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x1010065e
cmp word [edi + 8], 0x20
je 0x1010065e
push edi
push dword [ebp - 0x1c]
call fcn.100ffcd1
cmp dword [ebp - 0x18], 0x102
jne 0x101005e8
test al, 0x84
jne 0x1010065e
mov cx, word [edi + 8]
cmp cx, 9
jne 0x101005f6
test al, 2
jne 0x1010065e
cmp cx, 0x20
jne 0x10100603
xor eax, eax
jmp 0x101006dc
push edi
push dword [ebp - 0x1c]
push dword [ebp + 8]
call fcn.10100097
test eax, eax
je 0x1010065e
mov eax, dword [eax + 4]
test eax, eax
je 0x1010065e
push edi
mov ecx, eax
call fcn.100faf13
jmp 0x10100886
push edi
push dword [ebp - 0x1c]
call fcn.100ffcd1
movzx ecx, word [edi + 8]
cmp ecx, 0x1b
jg 0x10100773
je 0x101007cb
cmp ecx, 3
je 0x101007cb
cmp ecx, 9
je 0x101006ed
cmp ecx, 0xd
je 0x10100797
test al, 2
jne 0x1010065e
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
mov esi, dword [ebp + 8]
xor ebx, ebx
test ax, ax
setl bl
mov ecx, esi
push ebx
push 0
call fcn.101569a8
test eax, eax
je 0x1010065e
cmp dword [eax + 4], 0
je 0x10100733
mov eax, dword [eax + 4]
mov edx, dword [eax]
push edi
mov ecx, eax
call dword [edx + 0xac]
jmp 0x10100886
mov eax, dword [eax]
test eax, eax
je 0x10100741
push eax
call fcn.1015486c
jmp 0x1010074c
push ebx
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.100ffda2
mov edi, eax
test edi, edi
je 0x10100886
mov eax, dword [esi + 0x48]
and dword [eax + 0x6c], 0
push edi
call fcn.100ffddc
push edi
push dword [ebp - 0x14]
call fcn.101001df
pop ecx
pop ecx
jmp 0x10100886
cmp ecx, 0x25
jl 0x1010065e
cmp ecx, 0x26
jle 0x1010082c
cmp ecx, 0x28
jle 0x10100833
xor edi, edi
mov dword [ebp - 0x24], 1
push edi
push dword [ebp - 0x14]
call fcn.100ffcd1
test al, 1
jne 0x1010065e
cmp dword [ebp - 0x24], 0
mov ecx, dword [ebp + 8]
push 0
je 0x10100856
call fcn.10156a84
jmp 0x1010085b
call fcn.10156b80
mov esi, eax
test esi, esi
je 0x1010065e
cmp dword [esi + 8], 0
je 0x10100874
mov ecx, dword [ebp + 8]
push esi
call fcn.10156c7c
cmp dword [esi + 4], 0
je 0x1010088e
mov ecx, dword [esi + 4]
mov eax, dword [esi]
test eax, eax
je 0x1010089c
push eax
call fcn.1015486c
jmp 0x101008aa
push dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
push dword [ebp - 0x14]
call fcn.100ffd80
mov edi, eax
test edi, edi
je 0x1010065e
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x48]
xor ebx, ebx
push edi
mov dword [eax + 0x6c], ebx
call fcn.100ffddc
cmp dword [esi + 8], ebx
je 0x10100886
push ebx
push 1
push 0xf1
push dword [edi + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x10100886