Function at 0x497f10
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 0x497fd4
test eax, eax
jne 0x497fd4
mov ecx, dword [ebp + 0x28]
cmp ecx, 0xf
jbe 0x497f87
mov edx, dword [ebp + 0x14]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x497f7d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x498981
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 0x497fcd
mov edx, dword [ebp + 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x497fc3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x498981
push ecx
push edx
call fcn.004af678
add esp, 8
xor eax, eax
jmp 0x498993
mov edx, dword [0x4bdda8]
lea edi, [eax + 0x222]
lea eax, [ecx + 0x37]
cmp edx, dword [0x4bddb0]
jl 0x498032
cmp edx, dword [0x4bddb8]
jg 0x498032
mov ecx, dword [0x4bddac]
mov esi, dword [0x4bddb4]
cmp ecx, esi
jl 0x498032
cmp ecx, dword [0x4bddbc]
jg 0x498032
sub edx, dword [0x4bddb0]
cmp edx, eax
jl 0x498032
add eax, 0xe6
cmp edx, eax
jg 0x498032
sub ecx, esi
cmp ecx, edi
jl 0x498032
lea eax, [edi + 5]
cmp ecx, eax
jg 0x498032
mov edi, 1
jmp 0x498034
xor edi, edi
mov dword [ebp - 0x11c], edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, dword [0x4bdd94]
jne 0x498170
cmp dword [0x4bddcc], 0
jne 0x498170
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
test edi, edi
je 0x4980d9
push 0x25
call esi
bt ax, 0xf
jae 0x498084
push 0
push 2
push 0
push 0x25
call dword [sym.imp.USER32.dll_keybd_event]
dec dword [str.d]
jmp 0x4980d9
push 0x26
call esi
bt ax, 0xf
jae 0x4980a5
push 0
push 2
push 0
push 0x26
call dword [sym.imp.USER32.dll_keybd_event]
dec dword [str.d]
jmp 0x4980d9
push 0x27
call esi
bt ax, 0xf
jae 0x4980ba
push 0
push 2
push 0
push 0x27
jmp 0x4980cd
push 0x28
call esi
bt ax, 0xf
jae 0x4980d9
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 0x4980fb
test edi, edi
je 0x4980fb
cmp dword [0x4bdee0], 0
jne 0x498104
mov dword [0x4bdee0], 1
jmp 0x498104
cmp dword [0x4bdee0], 0
je 0x498153
push 1
call esi
test ax, ax
jns 0x498153
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 0x498170
push 1
call esi
test ax, ax
js 0x498170
mov dword [0x4bdee0], 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 0x4981a7
mov dword [ebp - 0x124], 0xe6
jmp 0x4981b4
xor edx, edx
test eax, eax
cmovs eax, edx
mov dword [ebp - 0x124], eax
cmp ecx, 0x1e
jg 0x4981c5
mov dword [str.d], 0x1e
jmp 0x4981d7
cmp ecx, 0xc8
jl 0x4981d7
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 0x498360
cmp dword [0x4bdee0], 0
jne 0x498360
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 0x4983f5
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 [0x4bdfe0]
movss dword [ebp - 0x11c], xmm2
cmp eax, dword [ecx + 4]
jle 0x498490
push 0x4bdfe0
call fcn.004af27e
add esp, 4
cmp dword [0x4bdfe0], 0xffffffff
jne 0x498488
movss xmm0, dword [ebp - 0x11c]
push 0x4bdfe0
movss dword [0x4bebf0], xmm0
call fcn.004af22d
add esp, 4
movss xmm2, dword [ebp - 0x11c]
movss xmm1, dword [0x4bebf0]
comiss xmm2, xmm1
jbe 0x4984af
subss xmm2, xmm1
divss xmm2, dword [0x4b4c38]
addss xmm1, xmm2
jmp 0x4984c7
comiss xmm1, xmm2
jbe 0x4984cf
movaps xmm0, xmm1
subss xmm0, xmm2
divss xmm0, dword [0x4b4c38]
subss xmm1, xmm0
movss dword [0x4bebf0], xmm1
xorps xmm0, xmm0
comiss xmm0, xmm1
jbe 0x4984dc
xorps xmm1, xmm1
jmp 0x4984ec
movss xmm0, dword [0x4b53bc]
comiss xmm1, xmm0
jbe 0x4984f4
movaps xmm1, xmm0
movss dword [0x4bebf0], 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 0x4988c9
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4988bf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4988bf
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 0x498949
mov edx, dword [ebp + 0x14]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x49893f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x498981
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 0x498991
mov edx, dword [ebp + 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x498987
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x498987
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