Function at 0x1004f3a5
Capabilities:
Log keystrokes via polling

Disassembly:
push 0x20
mov eax, 0x1018def4
call fcn.1016881c
mov ebx, dword [ebp + 8]
xor edi, edi
test ebx, ebx
jne 0x1004f3bf
mov dword [ebp - 0x20], edi
jmp 0x1004f3c5
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.USER32.dll_GetFocus]
push eax
mov dword [ebp - 0x28], eax
call fcn.10026211
mov esi, eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], esi
cmp eax, 0x100
jb 0x1004f3f3
cmp eax, 0x109
jbe 0x1004f401
add eax, 0xfffffe00
cmp eax, 9
ja 0x1004f4ce
test esi, esi
je 0x1004f4ce
mov eax, esi
mov dword [ebp - 0x18], esi
cmp dword [eax + 0x74], edi
jne 0x1004f443
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.10026211
cmp eax, ebx
mov eax, dword [ebp - 0x18]
je 0x1004f43f
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.10026211
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x1004f40e
test eax, eax
je 0x1004f474
mov ecx, dword [eax + 0x74]
test ecx, ecx
je 0x1004f474
mov ecx, dword [ecx + 0x58]
test ecx, ecx
je 0x1004f474
mov eax, dword [ecx]
push dword [ebp + 0xc]
push ecx
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x1019ba8c]
call esi
test eax, eax
jne 0x1004f46e
inc eax
jmp 0x1004f5cf
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
cmp ecx, 0x101
je 0x1004f48f
cmp ecx, 0x100
je 0x1004f48f
cmp ecx, 0x102
jne 0x1004f4ce
test eax, eax
je 0x1004f4ce
mov edx, dword [eax + 0x74]
test edx, edx
je 0x1004f4ce
mov eax, dword [ebp + 0xc]
push 0xd
movzx ecx, word [eax + 8]
mov dword [ebp - 0x18], ecx
pop ecx
cmp word [ebp - 0x18], cx
jne 0x1004f4bc
test byte [edx + 0x84], 1
jne 0x1004f55c
jmp 0x1004f4d1
push 0x1b
pop ecx
cmp word [ebp - 0x18], cx
jne 0x1004f4d1
test byte [edx + 0x84], 2
jmp 0x1004f4b4
mov eax, dword [ebp + 0xc]
push dword [eax]
call fcn.10026211
mov ecx, dword [ebp - 0x1c]
mov edx, eax
mov dword [ebp - 0x18], edx
sub ecx, 0x100
je 0x1004f5d7
dec ecx
sub ecx, 1
je 0x1004f525
sub ecx, 4
jne 0x1004f61e
test esi, esi
jne 0x1004f513
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x1004f61e
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp + 0xc]
push 0x20
pop eax
cmp word [esi + 8], ax
je 0x1004f621
jmp 0x1004f528
mov esi, dword [ebp + 0xc]
push esi
push edx
call fcn.1004fe41
cmp dword [ebp - 0x1c], 0x102
jne 0x1004f540
test al, 0x84
jne 0x1004f621
movzx ecx, word [esi + 8]
push 9
pop edx
cmp cx, dx
jne 0x1004f554
test al, 2
jne 0x1004f621
push 0x20
pop eax
cmp cx, ax
jne 0x1004f560
xor eax, eax
jmp 0x1004f5cf
mov eax, dword [ebp - 0x18]
push esi
push eax
push ebx
call fcn.1004fe71
test eax, eax
je 0x1004f621
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x1004f621
push esi
call fcn.1004ddb5
xor edi, edi
inc edi
mov esi, dword [ebp - 0x14]
push dword [ebp - 0x28]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1004f5cd
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call fcn.10026211
push eax
push esi
call fcn.1004fa22
pop ecx
pop ecx
push dword [ebp - 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1004f5cd
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call fcn.10026211
push eax
push esi
push ebx
call fcn.1004faaf
mov eax, edi
call fcn.1016877a
ret 8
push dword [ebp + 0xc]
push edx
call fcn.1004fe41
mov edx, eax
mov eax, dword [ebp + 0xc]
push 0x1b
movzx ecx, word [eax + 8]
movzx esi, cx
mov dword [ebp - 0x24], ecx
pop ecx
cmp si, cx
ja 0x1004f70c
je 0x1004f761
cmp esi, 3
je 0x1004f761
push 9
pop eax
cmp si, ax
je 0x1004f671
push 0xd
pop eax
cmp si, ax
je 0x1004f735
mov esi, dword [ebp + 0xc]
test dword [ebx + 0x60], 0x1000
jne 0x1004f587
push esi
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_IsDialogMessageW]
mov edi, eax
test edi, edi
je 0x1004f587
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call fcn.10026211
mov esi, dword [ebp - 0x14]
cmp eax, esi
je 0x1004f58a
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call fcn.10026211
push eax
call fcn.1004f9a7
pop ecx
jmp 0x1004f58a
test dl, 2
jne 0x1004f61e
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
xor ecx, ecx
test ax, ax
sets cl
push ecx
mov dword [ebp - 0x24], ecx
mov ecx, ebx
push edi
call fcn.1002e26f
mov ecx, eax
test ecx, ecx
je 0x1004f61e
mov eax, dword [ecx + 4]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x1004f6bf
mov eax, dword [eax]
push dword [ebp + 0xc]
mov esi, dword [eax + 0xac]
mov ecx, esi
call dword [0x1019ba8c]
mov ecx, dword [ebp - 0x1c]
call esi
jmp 0x1004f584
mov eax, dword [ecx]
test eax, eax
jne 0x1004f6e0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x1004f6d0
mov eax, edi
jmp 0x1004f6d3
mov eax, dword [eax + 0x20]
push dword [ebp - 0x24]
push eax
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_GetNextDlgTabItem]
push eax
call fcn.10026211
mov esi, eax
test esi, esi
je 0x1004f584
mov ecx, dword [ebx + 0x70]
push esi
mov dword [ecx + 0x70], edi
call fcn.1004fb8d
push esi
push dword [ebp - 0x14]
call fcn.1004fa22
pop ecx
pop ecx
jmp 0x1004f584
cmp esi, 0x25
jb 0x1004f8cb
push 0x26
pop ecx
cmp cx, si
jae 0x1004f7cf
cmp esi, 0x28
jbe 0x1004f7cc
cmp word [ebp - 0x24], 0x2b
jne 0x1004f8cb
test dl, 4
jne 0x1004f61e
mov esi, dword [ebp - 0x14]
push esi
call fcn.1004f37f
pop ecx
test al, 0x10
je 0x1004f759
mov ecx, esi
call fcn.1002e076
test esi, esi
jne 0x1004f775
jmp 0x1004f764
push ebx
call fcn.1005005f
jmp 0x1004f764
push 2
pop eax
push eax
push ebx
call fcn.1004fbbe
mov esi, eax
test esi, esi
je 0x1004f61e
mov ecx, esi
call fcn.1002e642
test eax, eax
jne 0x1004f78c
push edi
call dword [sym.imp.USER32.dll_MessageBeep]
jmp 0x1004f61e
cmp dword [esi + 0x74], edi
je 0x1004f61e
push edi
push edi
push edi
mov dword [ebp - 4], edi
xor edi, edi
inc edi
push edi
push 0xfffffdd9
push esi
call fcn.1002e58c
add esp, 0x18
jmp 0x1004f7c3
or dword [ebp - 4], 0xffffffff
jmp 0x1004f587
cmp cx, si
sbb ecx, ecx
push eax
push dword [ebp - 0x14]
inc ecx
mov dword [ebp - 0x1c], ecx
call fcn.1004fe41
test al, 1
jne 0x1004f61e
push 0x26
pop eax
mov ecx, ebx
push edi
cmp si, ax
ja 0x1004f7f8
call fcn.1002e434
jmp 0x1004f7fd
call fcn.1002e21f
mov esi, eax
test esi, esi
je 0x1004f61e
cmp dword [esi + 8], edi
je 0x1004f814
push esi
mov ecx, ebx
call fcn.1002e88c
mov eax, dword [esi + 4]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x1004f839
mov eax, dword [eax]
push dword [ebp + 0xc]
mov esi, dword [eax + 0xac]
mov ecx, esi
call dword [0x1019ba8c]
mov ecx, dword [ebp - 0x24]
jmp 0x1004f6b8
mov eax, dword [esi]
test eax, eax
jne 0x1004f85a
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x1004f84a
mov eax, edi
jmp 0x1004f84d
mov eax, dword [eax + 0x20]
push dword [ebp - 0x1c]
push eax
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_GetNextDlgGroupItem]
push eax
call fcn.10026211
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x1004f61e
mov ecx, dword [ebx + 0x70]
push eax
mov dword [ecx + 0x70], edi
call fcn.1004fb8d
cmp dword [esi + 8], edi
je 0x1004f584
mov eax, dword [ebp - 0x1c]
push 0xfffffffffffffff4
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push edi
xor edi, edi
mov esi, eax
mov eax, dword [ebp - 0x1c]
inc edi
push edi
push 0xf1
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x1c]
push dword [eax + 0x20]
movzx eax, si
push eax
push 0x111
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [ebp - 0x1c]
call fcn.1004fb8d
jmp 0x1004f587
mov esi, eax
jmp 0x1004f621