Function at 0x100466a0
Capabilities:
Check for time delay via queryperformancecounter
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
mov dword [ebp - 0x10], ecx
mov eax, 0xffff8000
mov word [ebp - 0xc], ax
mov byte [ebp - 1], 1
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0xe8]
and edx, 4
je 0x100466d6
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
test eax, eax
jne 0x100466d6
mov byte [ebp - 1], 0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0xe8]
and edx, 1
je 0x100466f5
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
test eax, eax
jne 0x100466f5
mov byte [ebp - 1], 0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0xe8]
and edx, 2
je 0x10046714
push 0x10
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
test eax, eax
jne 0x10046714
mov byte [ebp - 1], 0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0xac]
push edx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov word [ebp - 8], ax
movsx eax, word [ebp - 8]
test eax, eax
je 0x10046780
movzx ecx, byte [ebp - 1]
test ecx, ecx
je 0x10046780
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x1a0]
xor eax, 1
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x1a0], eax
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x1a0], 0
je 0x10046768
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
call eax
jmp 0x10046775
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
call eax
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0xa8]
push edx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
test eax, eax
je 0x100467a6
movzx ecx, byte [ebp - 1]
test ecx, ecx
je 0x100467a6
mov dword [ebp - 0x14], 1
jmp 0x100467ad
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov dword [edx + 0x19c], eax
lea ecx, [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x2c]
sub eax, dword [edx + 0x1e4]
mov ecx, dword [ebp - 0x28]
sbb ecx, dword [edx + 0x1e8]
push 0
push 0xf4240
push ecx
push eax
call fcn.1004d430
mov ecx, dword [ebp - 0x10]
mov esi, dword [ecx + 0x1e0]
push esi
mov ecx, dword [ecx + 0x1dc]
push ecx
push edx
push eax
call fcn.1004d380
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x1bc], 0
je 0x10046840
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0xe4]
xor edx, edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x20]
jl 0x10046840
jg 0x10046833
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 0x24]
jbe 0x10046840
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x1bc], 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0xdc]
push ecx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movsx edx, ax
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x1b8], edx
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x1b8], 0
je 0x100468d5
movzx edx, byte [ebp - 1]
test edx, edx
je 0x100468d5
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x1bc]
xor ecx, 1
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x1bc], ecx
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x1bc], 0
je 0x100468c2
mov ecx, dword [ebp - 0x10]
add ecx, 0x1e4
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push str.Force_mesh_rip_enabled_n
mov edx, dword [0x100beb90]
push edx
call fcn.1000e6e0
add esp, 8
jmp 0x100468d5
push str.Force_mesh_rip_disabled_n
mov eax, dword [0x100beb90]
push eax
call fcn.1000e6e0
add esp, 8
pop esi
mov esp, ebp
pop ebp
ret 4