Function at 0x401b90
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403f13
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xc8
mov eax, dword [0x407040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.ModuleBaseAddress:
call fcn.00402780
push dword [0x4074d0]
mov ecx, eax
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___unsigned_int_]
push 0x4029a0
mov ecx, eax
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::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov eax, dword [0x4074d0]
lea ecx, [ebp - 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
add eax, 0x18ac0c
push 0
push 4
push ecx
push eax
push dword [0x4074d8]
mov dword [ebp - 0x1c], 0
call esi
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Player_Count:
call fcn.00402780
push dword [ebp - 0x1c]
mov ecx, eax
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 0x4029a0
mov ecx, eax
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::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov eax, dword [0x4074d0]
lea ecx, [ebp - 0x28]
push 0
push 4
push ecx
add eax, 0x17e0a8
mov dword [ebp - 0x28], 0
push eax
push dword [0x4074d8]
call esi
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.LocalPlayerAddress:_0x
mov edi, dword [ebp - 0x28]
call fcn.00402780
push 0x401470
mov ecx, eax
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 edi
mov ecx, eax
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___unsigned_int_]
push 0x4029a0
mov ecx, eax
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::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov esi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea ecx, [ebp - 0x18]
push 0
push 4
push ecx
lea eax, [edi + 0xec]
mov dword [ebp - 0x18], 0xf423f
push eax
push dword [0x4074d8]
call esi
push 0
push 4
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0xf423f
push ecx
lea eax, [edi + 0xf0]
push eax
push dword [0x4074d8]
call esi
push 0
push 4
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0xf423f
push ecx
lea eax, [edi + 0x138]
push eax
push dword [0x4074d8]
call esi
mov dword [ebp - 0x18], 0xf423f
push 0
push 4
lea ecx, [ebp - 0x18]
push ecx
lea eax, [edi + 0x114]
push eax
push dword [0x4074d8]
call esi
push 0
push 2
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0x56bec0
push dword [0x4074d8]
call esi
push 0
push 2
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0x56bebe
push dword [0x4074d8]
call esi
xorps xmm0, xmm0
mov dword [ebp - 0xc0], 0
mov esi, 0xf
movups xmmword [ebp - 0xd0], xmm0
mov dword [ebp - 0xbc], esi
mov byte [ebp - 0xd0], 0
mov dword [ebp - 4], 0
push 0
push 4
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push ecx
lea eax, [edi + 0x30c]
push eax
push dword [0x4074d8]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
xorps xmm0, xmm0
mov dword [ebp - 0x38], 0
lea ecx, [ebp - 0x40]
movq qword [ebp - 0x40], xmm0
call fcn.004014e0
push 0
push 4
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
lea eax, [edi + 4]
push eax
push dword [0x4074d8]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push 0
push 4
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push eax
lea eax, [edi + 8]
push eax
push dword [0x4074d8]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push 0
push 4
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
lea eax, [edi + 0xc]
push eax
push dword [0x4074d8]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push 0x3c
lea eax, [ebp - 0xb8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
xorps xmm0, xmm0
mov dword [ebp - 0xa4], 0
movups xmmword [ebp - 0xb4], xmm0
add esp, 0xc
mov dword [ebp - 0xa0], 0xf
mov byte [ebp - 0xb4], 0
mov byte [ebp - 4], 2
movss xmm0, dword [ebp - 0x20]
mov eax, dword [ebp - 0x18]
movss xmm1, dword [ebp - 0x24]
movss xmm2, dword [ebp - 0x1c]
push 0
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0x18]
push 4
movss dword [ebp - 0x88], xmm0
movss dword [ebp - 0x94], xmm0
movaps xmm0, xmm1
subss xmm0, dword [0x4052a0]
push eax
lea eax, [edi + 0xec]
mov dword [ebp - 0xb8], edi
push eax
push dword [0x4074d8]
movss dword [ebp - 0x84], xmm1
movss dword [ebp - 0x80], xmm2
movss dword [ebp - 0x90], xmm0
movss dword [ebp - 0x8c], xmm2
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
xor eax, eax
cmp dword [ebp - 0x18], eax
setle al
mov dword [ebp - 0x98], eax
mov ecx, 0x4070ac
push 0
lea eax, [ebp - 0xb4]
mov dword [0x4070a8], edi
push eax
call fcn.004025b0
mov eax, dword [ebp - 0x9c]
sub esp, 0x3c
movq xmm0, qword [ebp - 0x94]
mov ecx, esp
mov dword [0x4070c4], eax
mov eax, dword [ebp - 0x98]
mov dword [0x4070c8], eax
mov eax, dword [ebp - 0x8c]
mov dword [0x4070d4], eax
mov eax, dword [ebp - 0x80]
mov dword [0x4070e0], eax
lea eax, [ebp - 0xb8]
movq qword [0x4070cc], xmm0
movq xmm0, qword [ebp - 0x88]
mov dword [ebp - 0x18], esp
push eax
movq qword [0x4070d8], xmm0
call fcn.004019d0
sub esp, 0xc
mov byte [ebp - 4], 3
lea eax, [ebp - 0x40]
mov ecx, esp
push eax
call fcn.00402390
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 2
call fcn.004017e0
add esp, 0x48
push 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x18]
mov eax, dword [ebp - 0x7c]
push 4
push ecx
add eax, 0xec
mov dword [ebp - 0x18], 0
push eax
push dword [0x4074d8]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov ecx, dword [ebp - 0x18]
xor eax, eax
test ecx, ecx
setle al
mov dword [ebp - 0x5c], eax
test ecx, ecx
jg 0x40204c
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x64]
cmp ecx, 0xf
jbe 0x401feb
mov edx, dword [ebp - 0x78]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401fe1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402302
push ecx
push edx
call fcn.004031f1
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0xa0]
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0xf
mov byte [ebp - 0x78], 0
cmp ecx, 0xf
jbe 0x40203b
mov edx, dword [ebp - 0xb4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402031
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402302
push ecx
push edx
call fcn.004031f1
add esp, 8
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.00402310
jmp 0x401d87
cmp esi, 0xf
lea ecx, [ebp - 0xd0]
mov esi, dword [ebp - 0x68]
lea edx, [ebp - 0x78]
cmova ecx, dword [ebp - 0xd0]
cmp dword [ebp - 0x64], 0xf
cmova edx, dword [ebp - 0x78]
cmp esi, dword [ebp - 0xc0]
jne 0x4020c7
sub esi, 4
jb 0x402088
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x40208d
add edx, 4
add ecx, 4
sub esi, 4
jae 0x402077
cmp esi, 0xfffffffc
je 0x4020c1
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x4020ba
cmp esi, 0xfffffffd
je 0x4020c1
mov al, byte [edx + 1]
cmp al, byte [ecx + 1]
jne 0x4020ba
cmp esi, 0xfffffffe
je 0x4020c1
mov al, byte [edx + 2]
cmp al, byte [ecx + 2]
jne 0x4020ba
cmp esi, 0xffffffff
je 0x4020c1
mov al, byte [edx + 3]
cmp al, byte [ecx + 3]
je 0x4020c1
sbb eax, eax
or eax, 1
jmp 0x4020c3
xor eax, eax
test eax, eax
je 0x402133
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Target:
call fcn.00402780
cmp dword [ebp - 0x64], 0xf
lea edx, [ebp - 0x78]
push dword [ebp - 0x68]
cmova edx, dword [ebp - 0x78]
mov ecx, eax
call fcn.00402ad0
add esp, 4
mov ecx, eax
push 0x4029a0
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::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, 0x405278
call fcn.00402780
push 0x4029a0
mov ecx, eax
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::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
cmp dword [ebp - 0x64], 0xf
lea eax, [ebp - 0x78]
push dword [ebp - 0x68]
cmova eax, dword [ebp - 0x78]
lea ecx, [ebp - 0xd0]
push eax
call fcn.004025b0
movss xmm0, dword [ebp - 0x4c]
subss xmm0, dword [ebp - 0x20]
movss xmm1, dword [ebp - 0x48]
subss xmm1, dword [ebp - 0x24]
movss dword [ebp - 0x20], xmm0
cvtps2pd xmm0, xmm0
movss dword [ebp - 0x18], xmm1
movsd qword [ebp - 0xd8], xmm0
fld qword [ebp - 0xd8]
cvtps2pd xmm0, xmm1
movsd qword [ebp - 0xd8], xmm0
fld qword [ebp - 0xd8]
call sub.api_ms_win_crt_math_l1_1_0.dll__CIatan2
fstp qword [ebp - 0xd8]
movsd xmm0, qword [ebp - 0xd8]
cvtpd2ps xmm0, xmm0
cvtps2pd xmm1, xmm0
movsd xmm0, qword [0x405298]
mulsd xmm1, qword [0x405290]
subsd xmm0, xmm1
movss xmm1, dword [ebp - 0x18]
mulss xmm1, xmm1
cvtpd2ps xmm0, xmm0
movss dword [ebp - 0x34], xmm0
movss xmm0, dword [ebp - 0x20]
mulss xmm0, xmm0
addss xmm1, xmm0
movss xmm0, dword [ebp - 0x44]
subss xmm0, dword [ebp - 0x1c]
cvtps2pd xmm0, xmm0
movsd qword [ebp - 0x30], xmm0
cvtps2pd xmm0, xmm1
xorps xmm1, xmm1
ucomisd xmm1, xmm0
ja 0x4021e4
sqrtsd xmm0, xmm0
jmp 0x4021e9
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
fld qword [ebp - 0x30]
cvtsd2ss xmm0, xmm0
cvtss2sd xmm0, xmm0
movsd qword [ebp - 0xd8], xmm0
fld qword [ebp - 0xd8]
call sub.api_ms_win_crt_math_l1_1_0.dll__CIatan2
fstp qword [ebp - 0xd8]
movsd xmm0, qword [ebp - 0xd8]
cvtpd2ps xmm0, xmm0
push 2
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [0x405290]
cvtpd2ps xmm0, xmm0
movss dword [ebp - 0x2c], xmm0
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx eax, ax
test ax, ax
jns 0x40226b
mov esi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea ecx, [ebp - 0x2c]
push 0
push 4
push ecx
lea eax, [edi + 0x38]
push eax
push dword [0x4074d8]
call esi
push 0
push 4
lea ecx, [ebp - 0x34]
push ecx
lea eax, [edi + 0x34]
push eax
push dword [0x4074d8]
call esi
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x64]
cmp ecx, 0xf
jbe 0x40229f
mov edx, dword [ebp - 0x78]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402295
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402302
push ecx
push edx
call fcn.004031f1
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0xa0]
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0xf
mov byte [ebp - 0x78], 0
cmp ecx, 0xf
jbe 0x4022eb
mov edx, dword [ebp - 0xb4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4022e1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402302
push ecx
push edx
call fcn.004031f1
add esp, 8
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.00402310
mov esi, dword [ebp - 0xbc]
jmp 0x401d87
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3