Function at 0x45f9635c
Capabilities:
Log keystrokes via polling

Disassembly:
push 0x70
mov eax, 0x45fc74cc
call fcn.45fb1a35
xor esi, esi
mov dword [ebp - 0x20], esi
lea eax, [ebp - 0x34]
push eax
call fcn.45e667ac
mov dword [ebp - 4], esi
lea eax, [ebp - 0x34]
push eax
push esi
call dword [sym.imp.OLEAUT32.dll_SetErrorInfo]
xor ecx, ecx
inc ecx
mov byte [ebp - 4], cl
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
cmp eax, 0x100
jb 0x45f96835
cmp eax, 0x109
ja 0x45f96835
push dword [ebp + 8]
call fcn.45f968b4
pop ecx
mov dword [ebp - 0x1c], eax
cmp eax, esi
je 0x45f9683e
mov eax, dword [ebp + 0xc]
movzx eax, word [eax + 8]
mov dword [ebp - 0x30], eax
push 0x11
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
call esi
test ax, ax
setl byte [ebp - 0x13]
push 0x10
call esi
test ax, ax
setl byte [ebp - 0x12]
push 0x12
call esi
test ax, ax
setl byte [ebp - 0x11]
call dword [sym.imp.USER32.dll_GetFocus]
mov ebx, eax
push 0
push 0
mov edi, 0x87
push edi
push ebx
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
call esi
mov dword [ebp - 0x2c], eax
push 0xfffffffffffffff0
push ebx
call dword [0x4603b334]
cmp ebx, dword [ebp - 0x1c]
je 0x45f9643c
mov eax, dword [ebp - 0x2c]
and eax, 2
or al, 4
jne 0x45f9643c
push 0
push 0
push edi
push dword [ebp - 0x1c]
call esi
mov dword [ebp - 0x2c], eax
push 0xfffffffffffffff0
push dword [ebp - 0x1c]
call dword [0x4603b334]
mov al, byte [ebp - 0x13]
test al, al
je 0x45f9645e
push 0x49
pop ecx
cmp cx, word [ebp - 0x30]
je 0x45f96455
push 0x4d
pop ecx
cmp cx, word [ebp - 0x30]
jne 0x45f9645e
and dword [ebp - 0x18], 0
jmp 0x45f9683e
push 9
pop edx
mov ecx, dword [ebp - 0x30]
cmp dx, cx
jne 0x45f96510
test al, al
jne 0x45f96766
cmp byte [ebp - 0x11], al
jne 0x45f96778
test byte [ebp - 0x2c], 2
je 0x45f96495
cmp byte [ebp - 0x12], al
jne 0x45f96495
mov dword [ebp - 0x18], 1
jmp 0x45f9683e
mov eax, dword [ebp + 0xc]
cmp dword [eax + 4], 0x100
jne 0x45f96455
xor ebx, ebx
cmp byte [ebp - 0x12], bl
setne bl
inc ebx
inc ebx
push dword [ebp - 0x1c]
call fcn.45f95320
pop ecx
mov dword [ebp - 0x48], eax
push dword [ebp - 0x48]
call dword [sym.imp.USER32.dll_SetFocus]
test eax, eax
jne 0x45f96502
and dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push eax
push 0x78
push 0x45dd4a4c
mov esi, 0x80004005
push esi
call fcn.45f85675
add esp, 0x10
mov dword [ebp - 0x6c], 0x45dc096c
mov dword [ebp - 0x68], esi
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x64], eax
and dword [ebp - 0x60], 0
push 0x45ff0f98
lea eax, [ebp - 0x6c]
push eax
call fcn.45fb1416
mov al, byte [0x4603bb51]
test al, al
jne 0x45f964b7
jmp 0x45f96455
push 0xd
pop edx
cmp dx, cx
jne 0x45f96766
test al, al
jne 0x45f96766
cmp byte [ebp - 0x11], al
jne 0x45f96778
push 4
pop ebx
test byte [ebp - 0x2c], bl
jne 0x45f96489
push 0
push 0
push 0x157
push dword [ebp - 0x1c]
call esi
xor ecx, ecx
inc ecx
cmp eax, ecx
jne 0x45f96556
mov dword [ebp - 0x18], ecx
jmp 0x45f9683e
mov eax, dword [ebp + 0xc]
cmp dword [eax + 4], 0x100
jne 0x45f9683e
mov eax, dword [0x4603911c]
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 2
push 0x1e
pop edi
lea esi, [ebp - 0x24]
call fcn.45f8f921
push edi
push eax
push dword [ebp - 0x1c]
call dword [0x4603b300]
test byte [ebp + 0x10], 1
je 0x45f96609
push 0x45dd4a88
mov eax, esi
push eax
call fcn.45e26e38
test eax, eax
je 0x45f96609
push dword [ebp - 0x1c]
push 2
pop ebx
call fcn.45f95320
pop ecx
mov dword [ebp - 0x4c], eax
push dword [ebp - 0x4c]
call dword [sym.imp.USER32.dll_SetFocus]
test eax, eax
jne 0x45f965fb
and dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
push 0x9d
push 0x45dd4a4c
mov esi, 0x80004005
push esi
call fcn.45f85675
add esp, 0x10
mov dword [ebp - 0x7c], 0x45dc096c
mov dword [ebp - 0x78], esi
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x74], eax
and dword [ebp - 0x70], 0
push 0x45ff0f98
lea eax, [ebp - 0x7c]
jmp 0x45f964fc
mov al, byte [0x4603bb51]
test al, al
jne 0x45f965ae
jmp 0x45f96721
push 0x45dd4a98
lea eax, [ebp - 0x24]
push eax
call fcn.45e26e38
test eax, eax
je 0x45f9667c
lea eax, [ebp - 0x24]
push eax
mov ecx, 0x45dd4aa4
call fcn.45e26b5c
test eax, eax
je 0x45f9667c
push 0x45dd4abc
lea edi, [ebp - 0x44]
call fcn.45f8f464
mov byte [ebp - 4], 3
mov dword [ebp - 0x20], 1
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x44]
call fcn.45e26b5c
test eax, eax
je 0x45f9667c
push 0x45dd4ac8
lea edi, [ebp - 0x40]
call fcn.45f8f464
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], 3
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x40]
call fcn.45e26b5c
test eax, eax
jne 0x45f96692
push 0xfffffffffffffff0
push dword [ebp - 0x1c]
call dword [0x4603b334]
test eax, 0x1000
je 0x45f96692
mov bl, 1
jmp 0x45f96694
xor bl, bl
mov dword [ebp - 4], 3
test byte [ebp - 0x20], 2
je 0x45f966b2
and dword [ebp - 0x20], 0xfffffffd
mov eax, dword [ebp - 0x40]
add eax, 0xfffffff4
push eax
call fcn.45f8f362
pop ecx
mov dword [ebp - 4], 2
test byte [ebp - 0x20], 1
je 0x45f966d0
and dword [ebp - 0x20], 0xfffffffe
mov eax, dword [ebp - 0x44]
add eax, 0xfffffff4
push eax
call fcn.45f8f362
pop ecx
test bl, bl
je 0x45f966dd
mov dword [ebp - 0x18], 1
jmp 0x45f96750
push 0x45dd0760
lea eax, [ebp - 0x24]
push eax
call fcn.45f677c9
test eax, eax
jne 0x45f96727
push dword [ebp - 0x1c]
call dword [sym.imp.USER32.dll_GetParent]
mov esi, eax
push dword [ebp - 0x1c]
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov dword [ebp - 0x54], eax
test esi, esi
je 0x45f96721
test eax, eax
je 0x45f96721
push dword [ebp - 0x1c]
movzx eax, ax
push eax
push 0x111
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
and dword [ebp - 0x18], 0
jmp 0x45f96750
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_IsWindowUnicode]
push dword [ebp + 0xc]
push dword [ebp + 8]
test eax, eax
je 0x45f96742
call dword [sym.imp.USER32.dll_IsDialogMessageW]
jmp 0x45f96748
call dword [sym.imp.USER32.dll_IsDialogMessageA]
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff4
push eax
call fcn.45f8f362
pop ecx
jmp 0x45f96838
cmp byte [ebp - 0x11], 0
je 0x45f967f5
push 0x12
pop edx
cmp dx, cx
je 0x45f967f5
mov eax, dword [ebp + 0xc]
cmp dword [eax + 4], 0x106
jne 0x45f9683e
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x30]
mov ecx, dword [ebp - 0x1c]
call fcn.45f95439
pop ecx
pop ecx
mov esi, eax
test esi, esi
je 0x45f9683e
push esi
call dword [sym.imp.USER32.dll_SetFocus]
test eax, eax
je 0x45f96455
cmp dword [ebp - 0x50], 1
je 0x45f96455
push esi
call dword [sym.imp.USER32.dll_GetParent]
mov edi, eax
push esi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov dword [ebp - 0x58], eax
test edi, edi
je 0x45f96455
test eax, eax
je 0x45f96455
push esi
movzx eax, ax
push eax
push 0x111
push edi
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x45f96455
push 0x1b
pop edx
cmp dx, cx
jne 0x45f9683e
test al, al
jne 0x45f9683e
cmp byte [ebp - 0x11], al
jne 0x45f9683e
cmp byte [ebp - 0x12], al
jne 0x45f9683e
push 0
push 0
push 0x157
push dword [ebp - 0x1c]
call esi
cmp eax, 1
jne 0x45f9683e
push 0
push 0
push 0x14f
push dword [ebp - 0x1c]
call esi
mov dword [ebp - 0x18], 1
jmp 0x45f96838
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0
jl 0x45f96849
push dword [ebp - 0x34]
push 0
call dword [sym.imp.OLEAUT32.dll_CreateErrorInfo]
and dword [ebp - 4], 0
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x34]
push eax
call fcn.45df1a56
mov eax, dword [ebp - 0x18]
call fcn.45fb1ae9
ret