Function at 0x466450
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b12e0
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x4bd040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
test ecx, ecx
jne 0x466514
test eax, eax
jne 0x466514
mov ecx, dword [ebp + 0x28]
cmp ecx, 0xf
jbe 0x4664c7
mov edx, dword [ebp + 0x14]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4664bd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x466ec1
push ecx
push edx
call fcn.004af678
add esp, 8
mov ecx, dword [ebp + 0x4c]
mov dword [ebp + 0x24], 0
mov dword [ebp + 0x28], 0xf
mov byte [ebp + 0x14], 0
cmp ecx, 0xf
jbe 0x46650d
mov edx, dword [ebp + 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x466503
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x466ec1
push ecx
push edx
call fcn.004af678
add esp, 8
xor eax, eax
jmp 0x466ed3
mov edx, dword [0x4bdda8]
lea edi, [eax + 0x222]
lea eax, [ecx + 0x37]
cmp edx, dword [0x4bddb0]
jl 0x466572
cmp edx, dword [0x4bddb8]
jg 0x466572
mov ecx, dword [0x4bddac]
mov esi, dword [0x4bddb4]
cmp ecx, esi
jl 0x466572
cmp ecx, dword [0x4bddbc]
jg 0x466572
sub edx, dword [0x4bddb0]
cmp edx, eax
jl 0x466572
add eax, 0xe6
cmp edx, eax
jg 0x466572
sub ecx, esi
cmp ecx, edi
jl 0x466572
lea eax, [edi + 5]
cmp ecx, eax
jg 0x466572
mov edi, 1
jmp 0x466574
xor edi, edi
mov dword [ebp - 0x11c], edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, dword [0x4bdd94]
jne 0x4666b0
cmp dword [0x4bddcc], 0
jne 0x4666b0
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
test edi, edi
je 0x466619
push 0x25
call esi
bt ax, 0xf
jae 0x4665c4
push 0
push 2
push 0
push 0x25
call dword [sym.imp.USER32.dll_keybd_event]
dec dword [str.d]
jmp 0x466619
push 0x26
call esi
bt ax, 0xf
jae 0x4665e5
push 0
push 2
push 0
push 0x26
call dword [sym.imp.USER32.dll_keybd_event]
dec dword [str.d]
jmp 0x466619
push 0x27
call esi
bt ax, 0xf
jae 0x4665fa
push 0
push 2
push 0
push 0x27
jmp 0x46660d
push 0x28
call esi
bt ax, 0xf
jae 0x466619
push 0
push 2
push 0
push 0x28
call dword [sym.imp.USER32.dll_keybd_event]
inc dword [str.d]
push 1
call esi
test ax, ax
jns 0x46663b
test edi, edi
je 0x46663b
cmp dword [0x4bded0], 0
jne 0x466644
mov dword [0x4bded0], 1
jmp 0x466644
cmp dword [0x4bded0], 0
je 0x466693
push 1
call esi
test ax, ax
jns 0x466693
mov eax, dword [0x4bdda8]
sub eax, dword [0x4bddb0]
sub eax, dword [ebp + 8]
sub eax, 0x36
mov dword [0x4bddc4], 1
imul ecx, eax, 0xaa
mov eax, 0x473c1ab7
mov dword [0x4bddc8], 1
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, 0x1e
add eax, edx
mov dword [str.d], eax
jmp 0x4666b0
push 1
call esi
test ax, ax
js 0x4666b0
mov dword [0x4bded0], 0
mov dword [0x4bddc8], 0
mov ecx, dword [str.d]
lea eax, [ecx - 0x1e]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm0, dword [0x4b52a0]
mulss xmm0, dword [0x4b53bc]
cvttss2si eax, xmm0
cmp eax, 0xe6
jle 0x4666e7
mov dword [ebp - 0x124], 0xe6
jmp 0x4666f4
xor edx, edx
test eax, eax
cmovs eax, edx
mov dword [ebp - 0x124], eax
cmp ecx, 0x1e
jg 0x466705
mov dword [str.d], 0x1e
jmp 0x466717
cmp ecx, 0xc8
jl 0x466717
mov dword [str.d], 0xc8
push 0xb0
lea eax, [ebp - 0x118]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 8
lea ecx, [ebp - 0x118]
call fcn.00440a40
push 0
lea eax, [ebp - 0x68]
push 4
push eax
call dword [sym.imp.MSVCP140.dll_struct_std::_Smanip_long_long___int64_____cdecl_std::setprecision_long_long___int64__]
add esp, 0xc
lea ecx, [ebp - 0x108]
mov esi, eax
push 0x4016e0
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base_____cdecl___class_std::ios_base___]
push dword [esi + 0xc]
mov edi, eax
push dword [esi + 8]
mov ecx, dword [edi]
mov ecx, dword [ecx + 4]
add ecx, edi
push ecx
mov ecx, dword [esi]
call ecx
add esp, 0xc
mov ecx, edi
push dword [str.d]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
push str.d
lea ecx, [ebp - 0x118]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::operator___int__]
sub esp, 0x10
mov eax, esp
push 7
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0xff
mov eax, dword [ebp + 0xc]
add eax, 0x221
push 0xe8
push eax
mov eax, dword [ebp + 8]
add eax, 0x36
push eax
call fcn.00407780
cmp dword [ebp - 0x11c], 0
jne 0x4668a0
cmp dword [0x4bded0], 0
jne 0x4668a0
mov eax, 0x66666667
mov esi, dword [ebp + 8]
imul dword [0x4bdd8c]
mov edi, dword [ebp + 0xc]
add esi, 0x37
sar edx, 1
add edi, 0x222
mov eax, edx
mov dword [ebp - 0x24], 0x1400
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x28], 0x14001400
mov dword [ebp - 0x11c], eax
mov eax, 0x66666667
imul dword [0x4bdd88]
xor eax, eax
mov word [ebp - 0x12], ax
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x11c]
movzx eax, al
mov dword [ebp - 0x120], eax
shl eax, 8
mov dword [ebp - 0x11c], eax
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
movzx eax, cl
mov ecx, dword [ebp - 0x11c]
or ecx, eax
mov eax, 0x66666667
imul dword [0x4bdd84]
shl ecx, 8
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
movzx eax, al
or ecx, eax
lea eax, [esi + 0xe6]
mov dword [ebp - 0x20], eax
lea eax, [edi + 5]
mov dword [ebp - 0x1c], eax
movzx eax, cl
shl ax, 8
mov word [ebp - 0x18], ax
mov eax, dword [ebp - 0x120]
jmp 0x466935
mov eax, dword [0x4bdd8c]
xor ecx, ecx
cdq
mov esi, dword [ebp + 8]
and edx, 3
add eax, edx
mov edi, dword [ebp + 0xc]
sar eax, 2
add esi, 0x37
mov dword [ebp - 0x120], eax
add edi, 0x222
mov eax, dword [0x4bdd88]
cdq
mov word [ebp - 0x12], cx
and edx, 3
add eax, edx
mov dword [ebp - 0x58], ecx
mov ecx, dword [ebp - 0x120]
sar eax, 2
movzx eax, al
movzx ecx, cl
mov dword [ebp - 0x120], ecx
shl ecx, 8
or ecx, eax
mov dword [ebp - 0x24], 0x1e00
mov eax, dword [0x4bdd84]
cdq
and edx, 3
shl ecx, 8
add eax, edx
mov dword [ebp - 0x28], 0x1e001e00
sar eax, 2
movzx eax, al
or ecx, eax
lea eax, [esi + 0xe6]
mov dword [ebp - 0x20], eax
lea eax, [edi + 5]
mov dword [ebp - 0x1c], eax
movzx eax, cl
shl ax, 8
mov word [ebp - 0x18], ax
mov eax, dword [ebp - 0x120]
push 1
shl eax, 8
and ecx, 0xff00
push 1
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x58]
push eax
push 2
lea eax, [ebp - 0x30]
mov dword [ebp - 0x54], 1
push eax
push dword [0x4bdda4]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], edi
mov word [ebp - 0x16], cx
call dword [sym.imp.MSIMG32.dll_GradientFill]
mov eax, dword fs:[0x2c]
movd xmm2, dword [ebp - 0x124]
cvtdq2ps xmm2, xmm2
mov ecx, dword [eax]
mov eax, dword [0x4bed40]
movss dword [ebp - 0x11c], xmm2
cmp eax, dword [ecx + 4]
jle 0x4669d0
push 0x4bed40
call fcn.004af27e
add esp, 4
cmp dword [0x4bed40], 0xffffffff
jne 0x4669c8
movss xmm0, dword [ebp - 0x11c]
push 0x4bed40
movss dword [0x4beb30], xmm0
call fcn.004af22d
add esp, 4
movss xmm2, dword [ebp - 0x11c]
movss xmm1, dword [0x4beb30]
comiss xmm2, xmm1
jbe 0x4669ef
subss xmm2, xmm1
divss xmm2, dword [0x4b4c38]
addss xmm1, xmm2
jmp 0x466a07
comiss xmm1, xmm2
jbe 0x466a0f
movaps xmm0, xmm1
subss xmm0, xmm2
divss xmm0, dword [0x4b4c38]
subss xmm1, xmm0
movss dword [0x4beb30], xmm1
xorps xmm0, xmm0
comiss xmm0, xmm1
jbe 0x466a1c
xorps xmm1, xmm1
jmp 0x466a2c
movss xmm0, dword [0x4b53bc]
comiss xmm1, xmm0
jbe 0x466a34
movaps xmm1, xmm0
movss dword [0x4beb30], xmm1
mov eax, 0x66666667
mov esi, dword [ebp + 8]
imul dword [0x4bdd8c]
add esi, 0x37
mov dword [ebp - 0x5c], 1
sar edx, 2
mov eax, edx
mov dword [ebp - 0x50], esi
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x130], eax
mov eax, 0x66666667
imul dword [0x4bdd88]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x128], eax
mov eax, dword [0x4bdd8c]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x120], eax
mov eax, dword [0x4bdd88]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x11c], eax
mov eax, dword [0x4bdd84]
cdq
sub eax, edx
mov edx, eax
mov eax, dword [ebp + 0xc]
add eax, 0x222
sar edx, 1
mov dword [ebp - 0x12c], eax
xor eax, eax
mov word [ebp - 0x42], ax
mov word [ebp - 0x32], ax
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x120]
movzx ecx, al
mov eax, dword [ebp - 0x11c]
movzx eax, al
mov dword [ebp - 0x54], ecx
shl ecx, 8
or ecx, eax
movzx eax, dl
shl ecx, 8
or ecx, eax
mov eax, dword [ebp - 0x130]
movzx edi, al
mov eax, dword [ebp - 0x128]
movzx eax, al
mov dword [ebp - 0x120], ecx
mov ecx, edi
shl ecx, 8
or ecx, eax
mov eax, 0x66666667
imul dword [0x4bdd84]
shl ecx, 8
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp - 0x12c]
movzx eax, al
or ecx, eax
mov dword [ebp - 0x4c], edx
cvttss2si eax, xmm1
add eax, esi
mov dword [ebp - 0x40], eax
lea eax, [edx + 5]
mov edx, dword [ebp - 0x120]
mov dword [ebp - 0x3c], eax
movzx eax, dl
shl ax, 8
and edx, 0xff00
mov word [ebp - 0x48], ax
mov eax, dword [ebp - 0x54]
mov word [ebp - 0x46], dx
shl eax, 8
mov word [ebp - 0x44], ax
movzx eax, cl
and ecx, 0xff00
push 1
shl ax, 8
push 1
mov word [ebp - 0x38], ax
lea eax, [ebp - 0x60]
push eax
push 2
lea eax, [ebp - 0x50]
shl edi, 8
push eax
push dword [0x4bdda4]
mov word [ebp - 0x36], cx
mov word [ebp - 0x34], di
call dword [sym.imp.MSIMG32.dll_GradientFill]
movups xmm1, xmmword [0x4bdd84]
mov eax, 0x66666667
mov edi, dword [ebp + 8]
imul dword [0x4bdd8c]
movaps xmm0, xmm1
psrldq xmm0, 8
add edi, 0x37
mov dword [ebp - 0x5c], 1
sar edx, 1
mov eax, edx
mov dword [ebp - 0x50], edi
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x54], eax
mov eax, 0x66666667
imul dword [0x4bdd88]
mov eax, dword [ebp + 0xc]
add eax, 0x222
sar edx, 1
mov dword [ebp - 0x12c], eax
mov ecx, edx
xor eax, eax
shr ecx, 0x1f
mov word [ebp - 0x42], ax
add ecx, edx
mov word [ebp - 0x32], ax
mov dword [ebp - 0x60], eax
movd eax, xmm0
movaps xmm0, xmm1
psrldq xmm0, 4
movzx ecx, cl
movzx edx, al
shl edx, 8
movd eax, xmm0
movzx eax, al
or edx, eax
movd eax, xmm1
shl edx, 8
movzx eax, al
or edx, eax
mov eax, dword [ebp - 0x54]
movzx esi, al
mov eax, esi
mov dword [ebp - 0x128], edx
shl eax, 8
or eax, ecx
movd ecx, xmm1
shl eax, 8
mov dword [ebp - 0x54], eax
mov eax, 0x66666667
imul ecx
mov ecx, dword [ebp - 0x54]
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp - 0x12c]
movzx eax, al
or ecx, eax
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x124]
add eax, edi
mov dword [ebp - 0x40], eax
lea eax, [edx + 5]
shl esi, 8
mov edx, dword [ebp - 0x128]
mov dword [ebp - 0x3c], eax
movzx eax, dl
shl ax, 8
mov word [ebp - 0x48], ax
mov eax, edx
and eax, 0xff00
shr edx, 0x10
mov word [ebp - 0x46], ax
movzx eax, cl
and ecx, 0xff00
push 1
shl ax, 8
push 1
mov word [ebp - 0x38], ax
lea eax, [ebp - 0x60]
push eax
push 2
lea eax, [ebp - 0x50]
shl edx, 8
push eax
push dword [0x4bdda4]
mov word [ebp - 0x44], dx
mov word [ebp - 0x36], cx
mov word [ebp - 0x34], si
call dword [sym.imp.MSIMG32.dll_GradientFill]
movzx eax, word [0x4bdd80]
push ecx
push 0x190
push eax
sub esp, 0x18
mov ecx, esp
push 0x4bdd68
call fcn.00440d20
sub esp, 0x10
mov eax, esp
sub esp, 0x18
mov ecx, esp
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0xff
lea eax, [ebp + 0x14]
push eax
call fcn.00440d20
mov eax, dword [ebp + 0xc]
add eax, 0x213
push eax
mov eax, dword [ebp + 8]
add eax, 0x38
push eax
call fcn.00407920
movzx eax, word [0x4bdd80]
push ecx
push 0x190
push eax
sub esp, 0x18
mov ecx, esp
push 0x4bdd68
call fcn.00440d20
movups xmm0, xmmword [ebp + 0x50]
sub esp, 0x10
mov eax, esp
sub esp, 0x18
mov ecx, esp
movups xmmword [eax], xmm0
lea eax, [ebp + 0x14]
push eax
call fcn.00440d20
mov eax, dword [ebp + 0xc]
add eax, 0x212
push eax
mov eax, dword [ebp + 8]
add eax, 0x37
push eax
call fcn.00407920
sub esp, 0x10
mov eax, esp
mov dword [eax], 0x96
sub esp, 0x18
mov dword [eax + 4], 0x96
mov dword [eax + 8], 0x96
lea ecx, [ebp - 0x118]
mov dword [eax + 0xc], 0xff
mov esi, esp
lea eax, [ebp + 0x38]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00440950
mov edx, eax
mov ecx, esi
call fcn.00441cd0
mov eax, dword [ebp + 0xc]
add esp, 4
add eax, 0x21e
push eax
mov eax, dword [ebp + 8]
add eax, 0x127
push eax
call fcn.00407dc0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x466e09
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x466dff
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x466dff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004af678
add esp, 8
mov eax, dword [ebp - 0x118]
mov esi, dword [str.d]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x118]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x11c], eax
lea ecx, [ebp - 0x100]
call fcn.004408a0
lea ecx, [ebp - 0xf8]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0xb0]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov ecx, dword [ebp + 0x28]
cmp ecx, 0xf
jbe 0x466e89
mov edx, dword [ebp + 0x14]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x466e7f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x466ec1
push ecx
push edx
call fcn.004af678
add esp, 8
mov ecx, dword [ebp + 0x4c]
mov dword [ebp + 0x24], 0
mov dword [ebp + 0x28], 0xf
mov byte [ebp + 0x14], 0
cmp ecx, 0xf
jbe 0x466ed1
mov edx, dword [ebp + 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x466ec7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x466ec7
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004af678
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004af21a
mov esp, ebp
pop ebp
ret 0x58