Function at 0x40bcfc
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, 0x444330
call fcn.0040cd08
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call fcn.00420d8e
test eax, eax
mov dword [ebp - 0x14], eax
jne 0x40bd27
and dword [ebp - 0x20], eax
jmp 0x40bd2d
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp + 8]
test ecx, ecx
jne 0x40bd39
and dword [ebp - 0x24], ecx
jmp 0x40bd3f
mov ecx, dword [ecx + 0x1c]
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ecx + 4]
cmp ebx, 0x100
mov dword [ebp - 0x18], ebx
jb 0x40bd58
cmp ebx, 0x108
jbe 0x40bd70
cmp ebx, 0x200
jb 0x40be15
cmp ebx, 0x209
ja 0x40be15
test eax, eax
mov esi, eax
je 0x40bdc6
mov edi, dword [sym.imp.USER32.dll_GetParent]
cmp dword [esi + 0x38], 0
jne 0x40bda3
push dword [esi + 0x1c]
call edi
push eax
call fcn.00420d8e
cmp eax, dword [ebp + 8]
je 0x40bda3
push dword [esi + 0x1c]
call edi
push eax
call fcn.00420d8e
mov esi, eax
test esi, esi
jne 0x40bd7c
test esi, esi
je 0x40bdc6
mov eax, dword [esi + 0x38]
test eax, eax
je 0x40bdc6
mov eax, dword [eax + 0x54]
test eax, eax
je 0x40bdc6
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
test eax, eax
je 0x40be9a
cmp ebx, 0x101
je 0x40bdde
cmp ebx, 0x100
je 0x40bdde
cmp ebx, 0x102
jne 0x40be15
test esi, esi
je 0x40be15
mov esi, dword [esi + 0x38]
test esi, esi
je 0x40be15
mov eax, dword [ebp + 0xc]
mov ax, word [eax + 8]
cmp ax, 0xd
jne 0x40bdff
test byte [esi + 0x80], 1
jne 0x40be0e
cmp ax, 0x1b
jne 0x40be15
test byte [esi + 0x80], 2
je 0x40be15
xor eax, eax
jmp 0x40bf7c
mov eax, dword [ebp + 0xc]
push dword [eax]
call fcn.00420d8e
mov edi, eax
mov eax, dword [ebp - 0x18]
xor esi, esi
push 2
sub eax, 0x100
mov dword [ebp - 0x1c], esi
pop ebx
je 0x40bec4
sub eax, ebx
je 0x40be6a
sub eax, 4
jne 0x40befe
cmp dword [ebp - 0x14], esi
jne 0x40be5a
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x40befe
mov esi, dword [ebp + 0xc]
cmp word [esi + 8], 0x20
je 0x40befe
jmp 0x40be6d
mov esi, dword [ebp + 0xc]
cmp edi, dword [ebp + 8]
je 0x40be9a
push esi
push edi
call fcn.0040b71b
cmp dword [ebp - 0x18], 0x102
jne 0x40be86
test al, 0x84
jne 0x40befe
mov cx, word [esi + 8]
cmp cx, 9
jne 0x40be94
test bl, al
jne 0x40befe
cmp cx, 0x20
jne 0x40bea2
push 1
pop eax
jmp 0x40bf7c
push esi
push edi
push dword [ebp + 8]
call fcn.0040b976
test eax, eax
je 0x40befe
mov eax, dword [eax + 0x38]
test eax, eax
je 0x40befe
push esi
mov ecx, eax
call fcn.004078ac
jmp 0x40c07d
push dword [ebp + 0xc]
push edi
call fcn.0040b71b
mov ecx, dword [ebp + 0xc]
movzx ecx, word [ecx + 8]
cmp ecx, 0x1b
jg 0x40bfe2
je 0x40c02d
cmp ecx, 3
je 0x40c02d
cmp ecx, 9
je 0x40bf8d
cmp ecx, 0xd
je 0x40c006
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_IsDialogMessageA]
mov edi, eax
test edi, edi
je 0x40bf35
mov esi, dword [sym.imp.USER32.dll_GetFocus]
call esi
push eax
call fcn.00420d8e
cmp eax, dword [ebp - 0x14]
je 0x40bf35
call esi
push eax
call fcn.00420d8e
push eax
call fcn.0040b9eb
pop ecx
push dword [ebp - 0x20]
mov esi, dword [sym.imp.USER32.dll_IsWindow]
call esi
test eax, eax
je 0x40bf7a
mov ebx, dword [sym.imp.USER32.dll_GetFocus]
call ebx
push eax
call fcn.00420d8e
push eax
push dword [ebp - 0x14]
call fcn.0040ba48
pop ecx
pop ecx
push dword [ebp - 0x24]
call esi
test eax, eax
je 0x40bf7a
call ebx
push eax
call fcn.00420d8e
push eax
push dword [ebp - 0x14]
push dword [ebp + 8]
call fcn.0040bc0f
mov eax, edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
test al, 2
jne 0x40befe
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
xor ecx, ecx
test ax, ax
setl cl
test edi, edi
mov eax, ecx
je 0x40bfae
mov edi, dword [edi + 0x1c]
push eax
mov eax, dword [ebp + 8]
push edi
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_GetNextDlgTabItem]
push eax
call fcn.00420d8e
mov esi, eax
test esi, esi
je 0x40c07d
push esi
call fcn.0040b749
push esi
push dword [ebp - 0x14]
call fcn.0040ba48
pop ecx
pop ecx
jmp 0x40c07d
cmp ecx, 0x25
jl 0x40befe
cmp ecx, 0x26
jle 0x40c093
cmp ecx, 0x28
jle 0x40c09a
cmp ecx, 0x2b
jne 0x40befe
push dword [ebp - 0x14]
call fcn.0040bb5f
test al, 0x10
pop ecx
je 0x40c01f
mov esi, dword [ebp - 0x14]
mov ecx, esi
call fcn.00423d18
jmp 0x40c027
push dword [ebp + 8]
call fcn.0040bbe2
test esi, esi
mov ebx, eax
jne 0x40c040
push ebx
push dword [ebp + 8]
call fcn.0040babb
mov esi, eax
test esi, esi
je 0x40befe
mov ecx, esi
call fcn.00423e13
test eax, eax
jne 0x40c057
push eax
call dword [sym.imp.USER32.dll_MessageBeep]
jmp 0x40befe
cmp dword [esi + 0x38], 0
je 0x40befe
xor eax, eax
push eax
push eax
push eax
push 1
push 0xfffffdd9
push esi
mov dword [ebp - 4], eax
call fcn.00423e76
add esp, 0x18
or dword [ebp - 4], 0xffffffff
push 1
pop edi
jmp 0x40bf35
mov dword [ebp - 0x1c], 1
push dword [ebp + 0xc]
push dword [ebp - 0x14]
call fcn.0040b71b
test al, 1
jne 0x40befe
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40c0b7
mov eax, dword [eax + 0x1c]
push dword [ebp - 0x1c]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_GetNextDlgGroupItem]
push eax
call fcn.00420d8e
test eax, eax
je 0x40befe
cmp dword [eax + 0x38], 0
je 0x40befe
push eax
call fcn.0040b749
jmp 0x40c07d