Function at 0x40bd3c
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, 0x445cc0
call fcn.00410f80
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.0042d952
test eax, eax
mov dword [ebp - 0x14], eax
jne 0x40bd67
and dword [ebp - 0x20], eax
jmp 0x40bd6d
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp + 8]
test ecx, ecx
jne 0x40bd79
and dword [ebp - 0x24], ecx
jmp 0x40bd7f
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 0x40bd98
cmp ebx, 0x108
jbe 0x40bdb0
cmp ebx, 0x200
jb 0x40be55
cmp ebx, 0x209
ja 0x40be55
test eax, eax
mov esi, eax
je 0x40be06
mov edi, dword [sym.imp.USER32.dll_GetParent]
cmp dword [esi + 0x38], 0
jne 0x40bde3
push dword [esi + 0x1c]
call edi
push eax
call fcn.0042d952
cmp eax, dword [ebp + 8]
je 0x40bde3
push dword [esi + 0x1c]
call edi
push eax
call fcn.0042d952
mov esi, eax
test esi, esi
jne 0x40bdbc
test esi, esi
je 0x40be06
mov eax, dword [esi + 0x38]
test eax, eax
je 0x40be06
mov eax, dword [eax + 0x54]
test eax, eax
je 0x40be06
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
test eax, eax
je 0x40beda
cmp ebx, 0x101
je 0x40be1e
cmp ebx, 0x100
je 0x40be1e
cmp ebx, 0x102
jne 0x40be55
test esi, esi
je 0x40be55
mov esi, dword [esi + 0x38]
test esi, esi
je 0x40be55
mov eax, dword [ebp + 0xc]
mov ax, word [eax + 8]
cmp ax, 0xd
jne 0x40be3f
test byte [esi + 0x80], 1
jne 0x40be4e
cmp ax, 0x1b
jne 0x40be55
test byte [esi + 0x80], 2
je 0x40be55
xor eax, eax
jmp 0x40bfbc
mov eax, dword [ebp + 0xc]
push dword [eax]
call fcn.0042d952
mov edi, eax
mov eax, dword [ebp - 0x18]
xor esi, esi
push 2
sub eax, 0x100
mov dword [ebp - 0x1c], esi
pop ebx
je 0x40bf04
sub eax, ebx
je 0x40beaa
sub eax, 4
jne 0x40bf3e
cmp dword [ebp - 0x14], esi
jne 0x40be9a
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x40bf3e
mov esi, dword [ebp + 0xc]
cmp word [esi + 8], 0x20
je 0x40bf3e
jmp 0x40bead
mov esi, dword [ebp + 0xc]
cmp edi, dword [ebp + 8]
je 0x40beda
push esi
push edi
call fcn.0040b75b
cmp dword [ebp - 0x18], 0x102
jne 0x40bec6
test al, 0x84
jne 0x40bf3e
mov cx, word [esi + 8]
cmp cx, 9
jne 0x40bed4
test bl, al
jne 0x40bf3e
cmp cx, 0x20
jne 0x40bee2
push 1
pop eax
jmp 0x40bfbc
push esi
push edi
push dword [ebp + 8]
call fcn.0040b9b6
test eax, eax
je 0x40bf3e
mov eax, dword [eax + 0x38]
test eax, eax
je 0x40bf3e
push esi
mov ecx, eax
call fcn.00407824
jmp 0x40c0bd
push dword [ebp + 0xc]
push edi
call fcn.0040b75b
mov ecx, dword [ebp + 0xc]
movzx ecx, word [ecx + 8]
cmp ecx, 0x1b
jg 0x40c022
je 0x40c06d
cmp ecx, 3
je 0x40c06d
cmp ecx, 9
je 0x40bfcd
cmp ecx, 0xd
je 0x40c046
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 0x40bf75
mov esi, dword [sym.imp.USER32.dll_GetFocus]
call esi
push eax
call fcn.0042d952
cmp eax, dword [ebp - 0x14]
je 0x40bf75
call esi
push eax
call fcn.0042d952
push eax
call fcn.0040ba2b
pop ecx
push dword [ebp - 0x20]
mov esi, dword [sym.imp.USER32.dll_IsWindow]
call esi
test eax, eax
je 0x40bfba
mov ebx, dword [sym.imp.USER32.dll_GetFocus]
call ebx
push eax
call fcn.0042d952
push eax
push dword [ebp - 0x14]
call fcn.0040ba88
pop ecx
pop ecx
push dword [ebp - 0x24]
call esi
test eax, eax
je 0x40bfba
call ebx
push eax
call fcn.0042d952
push eax
push dword [ebp - 0x14]
push dword [ebp + 8]
call fcn.0040bc4f
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 0x40bf3e
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
xor ecx, ecx
test ax, ax
setl cl
test edi, edi
mov eax, ecx
je 0x40bfee
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.0042d952
mov esi, eax
test esi, esi
je 0x40c0bd
push esi
call fcn.0040b789
push esi
push dword [ebp - 0x14]
call fcn.0040ba88
pop ecx
pop ecx
jmp 0x40c0bd
cmp ecx, 0x25
jl 0x40bf3e
cmp ecx, 0x26
jle 0x40c0d3
cmp ecx, 0x28
jle 0x40c0da
cmp ecx, 0x2b
jne 0x40bf3e
push dword [ebp - 0x14]
call fcn.0040bb9f
test al, 0x10
pop ecx
je 0x40c05f
mov esi, dword [ebp - 0x14]
mov ecx, esi
call fcn.00430dbf
jmp 0x40c067
push dword [ebp + 8]
call fcn.0040bc22
test esi, esi
mov ebx, eax
jne 0x40c080
push ebx
push dword [ebp + 8]
call fcn.0040bafb
mov esi, eax
test esi, esi
je 0x40bf3e
mov ecx, esi
call fcn.00430eba
test eax, eax
jne 0x40c097
push eax
call dword [sym.imp.USER32.dll_MessageBeep]
jmp 0x40bf3e
cmp dword [esi + 0x38], 0
je 0x40bf3e
xor eax, eax
push eax
push eax
push eax
push 1
push 0xfffffdd9
push esi
mov dword [ebp - 4], eax
call fcn.00430f1d
add esp, 0x18
or dword [ebp - 4], 0xffffffff
push 1
pop edi
jmp 0x40bf75
mov dword [ebp - 0x1c], 1
push dword [ebp + 0xc]
push dword [ebp - 0x14]
call fcn.0040b75b
test al, 1
jne 0x40bf3e
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40c0f7
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.0042d952
test eax, eax
je 0x40bf3e
cmp dword [eax + 0x38], 0
je 0x40bf3e
push eax
call fcn.0040b789
jmp 0x40c0bd