Function at 0x45a790
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 0x45a854
test eax, eax
jne 0x45a854
mov ecx, dword [ebp + 0x28]
cmp ecx, 0xf
jbe 0x45a807
mov edx, dword [ebp + 0x14]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x45a7fd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45b1e6
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 0x45a84d
mov edx, dword [ebp + 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x45a843
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45b1e6
push ecx
push edx
call fcn.004af678
add esp, 8
xor eax, eax
jmp 0x45b1f8
mov edx, dword [0x4bdda8]
lea edi, [eax + 0x7e]
lea eax, [ecx + 0x37]
cmp edx, dword [0x4bddb0]
jl 0x45a8af
cmp edx, dword [0x4bddb8]
jg 0x45a8af
mov ecx, dword [0x4bddac]
mov esi, dword [0x4bddb4]
cmp ecx, esi
jl 0x45a8af
cmp ecx, dword [0x4bddbc]
jg 0x45a8af
sub edx, dword [0x4bddb0]
cmp edx, eax
jl 0x45a8af
add eax, 0xe6
cmp edx, eax
jg 0x45a8af
sub ecx, esi
cmp ecx, edi
jl 0x45a8af
lea eax, [edi + 5]
cmp ecx, eax
jg 0x45a8af
mov edi, 1
jmp 0x45a8b1
xor edi, edi
mov dword [ebp - 0x11c], edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, dword [0x4bdd94]
jne 0x45a9ea
cmp dword [0x4bddcc], 0
jne 0x45a9ea
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
test edi, edi
je 0x45a956
push 0x25
call esi
bt ax, 0xf
jae 0x45a901
push 0
push 2
push 0
push 0x25
call dword [sym.imp.USER32.dll_keybd_event]
dec dword [0x4bd1d0]
jmp 0x45a956
push 0x26
call esi
bt ax, 0xf
jae 0x45a922
push 0
push 2
push 0
push 0x26
call dword [sym.imp.USER32.dll_keybd_event]
dec dword [0x4bd1d0]
jmp 0x45a956
push 0x27
call esi
bt ax, 0xf
jae 0x45a937
push 0
push 2
push 0
push 0x27
jmp 0x45a94a
push 0x28
call esi
bt ax, 0xf
jae 0x45a956
push 0
push 2
push 0
push 0x28
call dword [sym.imp.USER32.dll_keybd_event]
inc dword [0x4bd1d0]
push 1
call esi
test ax, ax
jns 0x45a978
test edi, edi
je 0x45a978
cmp dword [0x4bdec0], 0
jne 0x45a981
mov dword [0x4bdec0], 1
jmp 0x45a981
cmp dword [0x4bdec0], 0
je 0x45a9cd
push 1
call esi
test ax, ax
jns 0x45a9cd
mov eax, dword [0x4bdda8]
sub eax, dword [0x4bddb0]
sub eax, dword [ebp + 8]
sub eax, 0x36
mov dword [0x4bddc4], 1
imul ecx, eax, 0x61
mov eax, 0x473c1ab7
mov dword [0x4bddc8], 1
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, 3
add eax, edx
mov dword [0x4bd1d0], eax
jmp 0x45a9ea
push 1
call esi
test ax, ax
js 0x45a9ea
mov dword [0x4bdec0], 0
mov dword [0x4bddc8], 0
mov ecx, dword [0x4bd1d0]
lea eax, [ecx - 3]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm0, dword [0x4b4f74]
mulss xmm0, dword [0x4b53bc]
cvttss2si eax, xmm0
cmp eax, 0xe6
jle 0x45aa21
mov dword [ebp - 0x124], 0xe6
jmp 0x45aa2e
xor edx, edx
test eax, eax
cmovs eax, edx
mov dword [ebp - 0x124], eax
cmp ecx, 3
jg 0x45aa3f
mov dword [0x4bd1d0], 3
jmp 0x45aa4e
cmp ecx, 0x64
jl 0x45aa4e
mov dword [0x4bd1d0], 0x64
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 [0x4bd1d0]
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 0x4bd1d0
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, 0x7d
push 0xe8
push eax
mov eax, dword [ebp + 8]
add eax, 0x36
push eax
call fcn.00407780
cmp dword [ebp - 0x11c], 0
jne 0x45abd2
cmp dword [0x4bdec0], 0
jne 0x45abd2
mov eax, 0x66666667
mov esi, dword [ebp + 8]
imul dword [0x4bdd8c]
mov edi, dword [ebp + 0xc]
add esi, 0x37
sar edx, 1
add edi, 0x7e
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 0x45ac64
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, 0x7e
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 [0x4be0e4]
movss dword [ebp - 0x11c], xmm2
cmp eax, dword [ecx + 4]
jle 0x45acff
push 0x4be0e4
call fcn.004af27e
add esp, 4
cmp dword [0x4be0e4], 0xffffffff
jne 0x45acf7
movss xmm0, dword [ebp - 0x11c]
push 0x4be0e4
movss dword [0x4bebfc], xmm0
call fcn.004af22d
add esp, 4
movss xmm2, dword [ebp - 0x11c]
movss xmm1, dword [0x4bebfc]
comiss xmm2, xmm1
jbe 0x45ad1e
subss xmm2, xmm1
divss xmm2, dword [0x4b4c38]
addss xmm1, xmm2
jmp 0x45ad36
comiss xmm1, xmm2
jbe 0x45ad3e
movaps xmm0, xmm1
subss xmm0, xmm2
divss xmm0, dword [0x4b4c38]
subss xmm1, xmm0
movss dword [0x4bebfc], xmm1
xorps xmm0, xmm0
comiss xmm0, xmm1
jbe 0x45ad4b
xorps xmm1, xmm1
jmp 0x45ad5b
movss xmm0, dword [0x4b53bc]
comiss xmm1, xmm0
jbe 0x45ad63
movaps xmm1, xmm0
movss dword [0x4bebfc], 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, 0x7e
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, 0x7e
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, 0x6f
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, 0x6e
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, 0x7a
push eax
mov eax, dword [ebp + 8]
add eax, 0x127
push eax
call fcn.00407dc0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x45b12e
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x45b124
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x45b124
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 [0x4bd1d0]
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 0x45b1ae
mov edx, dword [ebp + 0x14]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x45b1a4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45b1e6
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 0x45b1f6
mov edx, dword [ebp + 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x45b1ec
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x45b1ec
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