Function at 0x4012a0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x402abd
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
sub esp, 8
lea ecx, [ebp - 0x20]
mov eax, esp
xorps xmm0, xmm0
movlpd qword [ebp - 0x20], xmm0
mov dword [eax], str.cs2.exe
mov dword [eax + 4], 7
call section..text
push 0x220
lea eax, [ebp - 0x240]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x250], str.client.dll
mov dword [ebp - 0x24c], 0xa
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x244], 0x224
push dword [ebp - 0x20]
push 8
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, dword [sym.imp.KERNEL32.dll_Module32Next]
mov esi, eax
lea eax, [ebp - 0x244]
xor ebx, ebx
push eax
push esi
mov dword [ebp - 0x248], ebx
call edi
test eax, eax
je 0x401392
nop dword [eax]
nop dword [eax + eax]
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x250]
call fcn.00401590
test eax, eax
je 0x401386
lea eax, [ebp - 0x244]
push eax
push esi
call edi
test eax, eax
jne 0x401360
jmp 0x401392
mov ebx, dword [ebp - 0x230]
mov dword [ebp - 0x248], ebx
test esi, esi
je 0x40139d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push 0x401280
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___]
mov ecx, eax
call fcn.00401720
push ebx
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 0x401260
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 0x401930
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_ReadProcessMemory]
lea edi, [ebx + 0xdeb99c]
mov dword [ebp - 0x24c], edi
jmp 0x4013f2
lea edi, [ebx + 0xdeb99c]
lea ecx, [ebp - 0x258]
mov dword [ebp - 0x258], 1
mov dword [ebp - 0x254], 0
call fcn.00401960
push 0x10
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x4013f2
push 0
push 4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push edi
push dword [ebp - 0x1c]
call esi
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push 0
push 4
push eax
lea eax, [edi + 0x100]
mov dword [ebp - 0x14], 0
push eax
push dword [ebp - 0x1c]
call esi
cmp dword [ebp - 0x14], 0
je 0x4013ec
push 0
push 4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
lea eax, [edi + 0x11838]
push eax
push dword [ebp - 0x1c]
call esi
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4013ec
cmp eax, 0x40
jg 0x4013ec
push 0
shl eax, 4
lea ecx, [ebp - 0x14]
push 4
add eax, 0x4e0101c
mov dword [ebp - 0x14], 0
push ecx
add eax, ebx
push eax
push dword [ebp - 0x1c]
call esi
mov ebx, dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push 0
push 4
push eax
lea eax, [ebx + 0x100]
mov dword [ebp - 0x18], 0
push eax
push dword [ebp - 0x1c]
call esi
cmp dword [ebp - 0x18], 0
je 0x401570
push 0
push 4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
lea eax, [edi + 0xf4]
push eax
push dword [ebp - 0x1c]
call esi
push 0
push 4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
lea eax, [ebx + 0xf4]
push eax
push dword [ebp - 0x1c]
call esi
mov ebx, dword [ebp - 0x248]
mov eax, dword [ebp - 0x14]
lea edi, [ebx + 0xdeb99c]
cmp eax, dword [ebp - 0x18]
je 0x4013f2
mov edi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea eax, [ebp - 0x14]
push 0
push 4
push eax
add ebx, 0x322ee98
mov dword [ebp - 0x14], 6
push ebx
push dword [ebp - 0x1c]
call edi
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x260], 0x14
mov dword [ebp - 0x25c], 0
call fcn.00401960
push 0
push 4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 4
push eax
push ebx
push dword [ebp - 0x1c]
call edi
mov ebx, dword [ebp - 0x248]
mov edi, dword [ebp - 0x24c]
jmp 0x4013f2