Function at 0x47b580
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 0x47b64d
test eax, eax
jne 0x47b64d
mov ecx, dword [ebp + 0x28]
cmp ecx, 0xf
jbe 0x47b600
mov edx, dword [ebp + 0x14]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x47b5f6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47bfe7
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 0x47b646
mov edx, dword [ebp + 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x47b63c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47bfe7
push ecx
push edx
call fcn.004af678
add esp, 8
xor eax, eax
jmp 0x47bff9
mov edx, dword [0x4bdda8]
add eax, 0x114
mov dword [ebp - 0x124], eax
lea eax, [ecx + 0x37]
cmp edx, dword [0x4bddb0]
jl 0x47b6b6
cmp edx, dword [0x4bddb8]
jg 0x47b6b6
mov ecx, dword [0x4bddac]
mov edi, dword [0x4bddb4]
cmp ecx, edi
jl 0x47b6b6
cmp ecx, dword [0x4bddbc]
jg 0x47b6b6
sub edx, dword [0x4bddb0]
cmp edx, eax
jl 0x47b6b6
add eax, 0xe6
cmp edx, eax
jg 0x47b6b6
mov eax, dword [ebp - 0x124]
sub ecx, edi
cmp ecx, eax
jl 0x47b6b6
add eax, 5
cmp ecx, eax
jg 0x47b6b6
mov edi, 1
jmp 0x47b6b8
xor edi, edi
mov dword [ebp - 0x11c], edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, dword [0x4bdd94]
jne 0x47b7e5
cmp dword [0x4bddcc], 0
jne 0x47b7e5
test edi, edi
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
je 0x47b751
push 0x25
call edi
bt ax, 0xf
jae 0x47b704
push 0
push 2
push 0
push 0x25
call dword [sym.imp.USER32.dll_keybd_event]
dec dword [esi]
jmp 0x47b751
push 0x26
call edi
bt ax, 0xf
jae 0x47b721
push 0
push 2
push 0
push 0x26
call dword [sym.imp.USER32.dll_keybd_event]
dec dword [esi]
jmp 0x47b751
push 0x27
call edi
bt ax, 0xf
jae 0x47b736
push 0
push 2
push 0
push 0x27
jmp 0x47b749
push 0x28
call edi
bt ax, 0xf
jae 0x47b751
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 0x47b778
cmp dword [ebp - 0x11c], 0
je 0x47b778
cmp dword [0x4bd944], 0
jne 0x47b781
mov dword [0x4bd944], 1
jmp 0x47b781
cmp dword [0x4bd944], 0
je 0x47b7c8
push 1
call edi
test ax, ax
jns 0x47b7c8
mov eax, dword [0x4bdda8]
sub eax, dword [0x4bddb0]
sub eax, dword [ebp + 8]
sub eax, 0x36
lea ecx, [eax + eax*4]
mov eax, 0x473c1ab7
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
inc eax
add eax, edx
mov dword [esi], eax
mov dword [0x4bddc4], 1
mov dword [0x4bddc8], 1
jmp 0x47b7e5
push 1
call edi
test ax, ax
js 0x47b7e5
mov dword [0x4bd944], 0
mov dword [0x4bddc8], 0
mov ecx, dword [esi]
lea eax, [ecx - 1]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm0, dword [0x4b4c08]
mulss xmm0, dword [0x4b53bc]
cvttss2si eax, xmm0
cmp eax, 0xe6
jle 0x47b818
mov dword [ebp - 0x124], 0xe6
jmp 0x47b825
xor edx, edx
test eax, eax
cmovs eax, edx
mov dword [ebp - 0x124], eax
cmp ecx, 1
jg 0x47b832
mov dword [esi], 1
jmp 0x47b83d
cmp ecx, 6
jl 0x47b83d
mov dword [esi], 6
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, 0x113
push 0xe8
push eax
mov eax, dword [ebp + 8]
add eax, 0x36
push eax
call fcn.00407780
cmp dword [ebp - 0x11c], 0
jne 0x47b9c4
cmp dword [0x4bd944], 0
jne 0x47b9c4
mov eax, 0x66666667
mov esi, dword [ebp + 8]
imul dword [0x4bdd8c]
mov edi, dword [ebp + 0xc]
add esi, 0x37
sar edx, 1
add edi, 0x114
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 0x47ba59
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, 0x114
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 [0x4bec38]
movss dword [ebp - 0x11c], xmm2
cmp eax, dword [ecx + 4]
jle 0x47baf4
push 0x4bec38
call fcn.004af27e
add esp, 4
cmp dword [0x4bec38], 0xffffffff
jne 0x47baec
movss xmm0, dword [ebp - 0x11c]
push 0x4bec38
movss dword [0x4be970], xmm0
call fcn.004af22d
add esp, 4
movss xmm2, dword [ebp - 0x11c]
movss xmm1, dword [0x4be970]
comiss xmm2, xmm1
jbe 0x47bb13
subss xmm2, xmm1
divss xmm2, dword [0x4b4c38]
addss xmm1, xmm2
jmp 0x47bb2b
comiss xmm1, xmm2
jbe 0x47bb33
movaps xmm0, xmm1
subss xmm0, xmm2
divss xmm0, dword [0x4b4c38]
subss xmm1, xmm0
movss dword [0x4be970], xmm1
xorps xmm0, xmm0
comiss xmm0, xmm1
jbe 0x47bb40
xorps xmm1, xmm1
jmp 0x47bb50
movss xmm0, dword [0x4b53bc]
comiss xmm1, xmm0
jbe 0x47bb58
movaps xmm1, xmm0
movss dword [0x4be970], 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, 0x114
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, 0x114
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, 0x105
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, 0x104
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, 0x110
push eax
mov eax, dword [ebp + 8]
add eax, 0x127
push eax
call fcn.00407dc0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x47bf2d
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x47bf23
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x47bf23
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 0x47bfaf
mov edx, dword [ebp + 0x14]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x47bfa5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47bfe7
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 0x47bff7
mov edx, dword [ebp + 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x47bfed
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x47bfed
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