Function at 0x4a2180
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b1310
mov eax, dword fs:[0]
push eax
sub esp, 0x128
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 esi, dword [ebp + 0x34]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x130], esi
test ecx, ecx
jne 0x4a224d
test eax, eax
jne 0x4a224d
mov ecx, dword [ebp + 0x28]
cmp ecx, 0xf
jbe 0x4a2200
mov edx, dword [ebp + 0x14]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4a21f6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a2bcf
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 0x4a2246
mov edx, dword [ebp + 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4a223c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a2bcf
push ecx
push edx
call fcn.004af678
add esp, 8
xor eax, eax
jmp 0x4a2be1
mov edx, dword [0x4bdda8]
add eax, 0x24
mov dword [ebp - 0x124], eax
lea eax, [ecx + 0x37]
cmp edx, dword [0x4bddb0]
jl 0x4a22b4
cmp edx, dword [0x4bddb8]
jg 0x4a22b4
mov ecx, dword [0x4bddac]
mov edi, dword [0x4bddb4]
cmp ecx, edi
jl 0x4a22b4
cmp ecx, dword [0x4bddbc]
jg 0x4a22b4
sub edx, dword [0x4bddb0]
cmp edx, eax
jl 0x4a22b4
add eax, 0xe6
cmp edx, eax
jg 0x4a22b4
mov eax, dword [ebp - 0x124]
sub ecx, edi
cmp ecx, eax
jl 0x4a22b4
add eax, 5
cmp ecx, eax
jg 0x4a22b4
mov edi, 1
jmp 0x4a22b6
xor edi, edi
mov dword [ebp - 0x11c], edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, dword [0x4bdd94]
jne 0x4a23e3
cmp dword [0x4bddcc], 0
jne 0x4a23e3
test edi, edi
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
je 0x4a234f
push 0x25
call edi
bt ax, 0xf
jae 0x4a2302
push 0
push 2
push 0
push 0x25
call dword [sym.imp.USER32.dll_keybd_event]
dec dword [esi]
jmp 0x4a234f
push 0x26
call edi
bt ax, 0xf
jae 0x4a231f
push 0
push 2
push 0
push 0x26
call dword [sym.imp.USER32.dll_keybd_event]
dec dword [esi]
jmp 0x4a234f
push 0x27
call edi
bt ax, 0xf
jae 0x4a2334
push 0
push 2
push 0
push 0x27
jmp 0x4a2347
push 0x28
call edi
bt ax, 0xf
jae 0x4a234f
push 0
push 2
push 0
push 0x28
call dword [sym.imp.USER32.dll_keybd_event]
inc dword [esi]
push 1
call edi
test ax, ax
jns 0x4a2376
cmp dword [ebp - 0x11c], 0
je 0x4a2376
cmp dword [0x4bd98c], 0
jne 0x4a237f
mov dword [0x4bd98c], 1
jmp 0x4a237f
cmp dword [0x4bd98c], 0
je 0x4a23c6
push 1
call edi
test ax, ax
jns 0x4a23c6
mov ecx, dword [0x4bdda8]
mov eax, 0x473c1ab7
sub ecx, dword [0x4bddb0]
sub ecx, dword [ebp + 8]
sub ecx, 0x36
shl ecx, 6
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esi], eax
mov dword [0x4bddc4], 1
mov dword [0x4bddc8], 1
jmp 0x4a23e3
push 1
call edi
test ax, ax
js 0x4a23e3
mov dword [0x4bd98c], 0
mov dword [0x4bddc8], 0
mov ecx, dword [esi]
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [0x4b4ae8]
mulss xmm0, dword [0x4b53bc]
cvttss2si eax, xmm0
cmp eax, 0xe6
jle 0x4a2413
mov dword [ebp - 0x124], 0xe6
jmp 0x4a2420
xor edx, edx
test eax, eax
cmovs eax, edx
mov dword [ebp - 0x124], eax
test ecx, ecx
jg 0x4a242c
mov dword [esi], 0
jmp 0x4a2437
cmp ecx, 0x40
jl 0x4a2437
mov dword [esi], 0x40
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
mov esi, dword [ebp - 0x130]
add esp, 0xc
mov ecx, edi
push dword [esi]
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 esi
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, 0x23
push 0xe8
push eax
mov eax, dword [ebp + 8]
add eax, 0x36
push eax
call fcn.00407780
cmp dword [ebp - 0x11c], 0
jne 0x4a25b9
cmp dword [0x4bd98c], 0
jne 0x4a25b9
mov eax, 0x66666667
mov esi, dword [ebp + 8]
imul dword [0x4bdd8c]
mov edi, dword [ebp + 0xc]
add esi, 0x37
sar edx, 1
add edi, 0x24
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 0x4a264b
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, 0x24
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 [0x4be0cc]
movss dword [ebp - 0x11c], xmm2
cmp eax, dword [ecx + 4]
jle 0x4a26e6
push 0x4be0cc
call fcn.004af27e
add esp, 4
cmp dword [0x4be0cc], 0xffffffff
jne 0x4a26de
movss xmm0, dword [ebp - 0x11c]
push 0x4be0cc
movss dword [0x4becfc], xmm0
call fcn.004af22d
add esp, 4
movss xmm2, dword [ebp - 0x11c]
movss xmm1, dword [0x4becfc]
comiss xmm2, xmm1
jbe 0x4a2705
subss xmm2, xmm1
divss xmm2, dword [0x4b4c38]
addss xmm1, xmm2
jmp 0x4a271d
comiss xmm1, xmm2
jbe 0x4a2725
movaps xmm0, xmm1
subss xmm0, xmm2
divss xmm0, dword [0x4b4c38]
subss xmm1, xmm0
movss dword [0x4becfc], xmm1
xorps xmm0, xmm0
comiss xmm0, xmm1
jbe 0x4a2732
xorps xmm1, xmm1
jmp 0x4a2742
movss xmm0, dword [0x4b53bc]
comiss xmm1, xmm0
jbe 0x4a274a
movaps xmm1, xmm0
movss dword [0x4becfc], 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 - 0x134], 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, 0x24
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 - 0x134]
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, 0x24
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, 0x15
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, 0x14
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, 0x20
push eax
mov eax, dword [ebp + 8]
add eax, 0x127
push eax
call fcn.00407dc0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x4a2b15
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4a2b0b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4a2b0b
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 - 0x130]
mov esi, dword [eax]
mov eax, dword [ebp - 0x118]
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 0x4a2b97
mov edx, dword [ebp + 0x14]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4a2b8d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a2bcf
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 0x4a2bdf
mov edx, dword [ebp + 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4a2bd5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4a2bd5
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