Function at 0x49b620
Capabilities:
Log keystrokes via polling
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49e413
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x4ba040]
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
cmp byte [0x4beacd], 0
jne 0x49b7e9
mov edi, dword [0x4bead0]
push 0x6070
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ecx, dword [0x4bead0]
add esp, 4
mov dword [ebp - 0x74], 6
mov esi, eax
test ecx, ecx
je 0x49b6c4
movsx edx, word [ecx + 0x5ee4]
lea eax, [ecx + 0x5ee8]
mov ebx, dword [ecx + 0x3f08]
lea eax, [eax + edx*8]
cmp dword [eax], ebx
je 0x49b6ba
lea eax, [edx + 1]
cdq
idiv dword [ebp - 0x74]
movzx eax, dx
mov word [ecx + 0x5ee4], ax
cwde
add eax, 0xbdd
xor edx, edx
lea eax, [ecx + eax*8]
mov dword [eax], ebx
mov dword [eax + 4], edx
inc word [eax + 4]
inc dword [ecx + 0x5edc]
lea eax, [ebp - 0x75]
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x54], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x49b6e6
push 0
mov ecx, esi
call fcn.00401770
jmp 0x49b6e8
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x4bead0], eax
call fcn.00407720
test edi, edi
je 0x49b703
mov dword [0x4bead0], edi
mov ecx, dword [0x4beb14]
call fcn.00469180
mov ebx, dword [0x4beb4c]
mov edi, dword [0x4bead0]
push 0x18
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, dword [0x4bead0]
add esp, 4
mov ecx, eax
test esi, esi
je 0x49b781
movsx eax, word [esi + 0x5ee4]
mov edx, dword [esi + 0x3f08]
add eax, 0xbdd
mov dword [ebp - 0x7c], edx
cmp dword [esi + eax*8], edx
lea eax, [esi + eax*8]
je 0x49b777
movsx eax, word [esi + 0x5ee4]
inc eax
cdq
idiv dword [ebp - 0x74]
movzx eax, dx
mov edx, dword [ebp - 0x7c]
mov word [esi + 0x5ee4], ax
cwde
add eax, 0xbdd
lea eax, [esi + eax*8]
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 4]
inc dword [esi + 0x5edc]
test ecx, ecx
je 0x49b7b0
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0x1388
mov dword [ecx + 0x14], 0x2710
jmp 0x49b7b2
xor ecx, ecx
or dword [edi + 0xc], 8
mov dword [edi + 0x78], ecx
mov dword [edi + 0x70], str.imgui_impl_dx9
mov dword [ecx], ebx
mov eax, dword [ebx]
push ebx
call dword [eax + 4]
mov eax, dword [0x4bead0]
test eax, eax
je 0x49b7e2
mov eax, dword [eax + 0x78]
test eax, eax
je 0x49b7e2
cmp dword [eax], 0
je 0x49b7e2
call fcn.00468ef0
mov byte [0x4beacd], 1
push 0x2d
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ebx, dword [0x4bead0]
test al, 1
je 0x49b80d
cmp byte [0x4be680], 0
sete al
mov byte [0x4be680], al
mov byte [ebx + 0x44], al
test ebx, ebx
je 0x49b816
mov eax, dword [ebx + 0x78]
jmp 0x49b818
xor eax, eax
cmp dword [eax + 0xc], 0
jne 0x49b839
test ebx, ebx
je 0x49b842
mov eax, dword [ebx + 0x78]
test eax, eax
je 0x49b839
cmp dword [eax], 0
je 0x49b839
call fcn.00468ef0
mov ebx, dword [0x4bead0]
test ebx, ebx
je 0x49b842
mov esi, dword [ebx + 0x74]
jmp 0x49b844
xor esi, esi
lea eax, [ebp - 0x70]
mov dword [ebp - 0x74], esi
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0x70], xmm0
push dword [esi]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x68]
sub eax, dword [ebp - 0x70]
movd xmm1, eax
mov eax, dword [ebp - 0x64]
sub eax, dword [ebp - 0x6c]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
lea eax, [ebp - 0x60]
cvtdq2ps xmm0, xmm0
push eax
movss dword [ebx + 0x10], xmm1
movss dword [ebx + 0x14], xmm0
xorps xmm0, xmm0
movlpd qword [ebp - 0x60], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edi, dword [ebp - 0x60]
mov ecx, edi
sub ecx, dword [esi + 0x10]
mov eax, dword [ebp - 0x74]
mov esi, dword [ebp - 0x5c]
mov edx, esi
sbb edx, dword [eax + 0x14]
call fcn.0049d670
mov eax, dword [ebp - 0x74]
cvtsd2ss xmm0, xmm0
mov edx, dword [eax + 0x1c]
mov ecx, dword [eax + 0x18]
movss dword [ebp - 0x7c], xmm0
call fcn.0049d670
movss xmm1, dword [ebp - 0x7c]
cvtsd2ss xmm0, xmm0
mov eax, dword [ebp - 0x74]
divss xmm1, xmm0
movss dword [ebx + 0x18], xmm1
mov dword [eax + 0x14], esi
mov esi, dword [0x4bead0]
mov dword [eax + 0x10], edi
test esi, esi
je 0x49b8e9
mov edi, dword [esi + 0x74]
jmp 0x49b8eb
xor edi, edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ecx, dword [edi]
cmp eax, ecx
jne 0x49b976
cmp byte [esi + 0x95], 0
je 0x49b93a
cvttss2si eax, dword [esi + 0xe00]
mov dword [ebp - 0x58], eax
cvttss2si eax, dword [esi + 0xe04]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x58]
push eax
push ecx
call dword [sym.imp.USER32.dll_ClientToScreen]
test eax, eax
je 0x49b931
push dword [ebp - 0x54]
push dword [ebp - 0x58]
call dword [sym.imp.USER32.dll_SetCursorPos]
cmp byte [esi + 0x95], 0
jne 0x49b976
cmp dword [edi + 8], 0
jne 0x49b976
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x49b976
lea eax, [ebp - 0x58]
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x49b976
movd xmm2, dword [ebp - 0x54]
lea ecx, [esi + 8]
movd xmm1, dword [ebp - 0x58]
cvtdq2ps xmm2, xmm2
cvtdq2ps xmm1, xmm1
call fcn.00403830
call fcn.00469470
cmp byte [ebx + 0x44], 0
je 0x49b986
or ecx, 0xffffffff
jmp 0x49b991
mov eax, dword [0x4bead0]
mov ecx, dword [eax + 0x4d84]
mov eax, dword [ebp - 0x74]
cmp dword [eax + 0x20], ecx
je 0x49b9a1
mov dword [eax + 0x20], ecx
call fcn.00469340
call fcn.00469620
call fcn.0040a1a0
cmp byte [0x4be680], 0
mov ecx, 0x80
mov eax, 0x800a0
cmovne eax, ecx
push eax
push 0xffffffffffffffec
push dword [0x4beb14]
call dword [sym.imp.USER32.dll_SetWindowLongA]
push dword [0x4beb14]
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp byte [0x4be680], 0
je 0x49ba74
mov esi, dword [0x4bead0]
push 1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
sub esp, 8
and al, 1
mov dword [ebp - 0x70], 0xff
mov byte [esi + 0xe08], al
mov eax, dword [0x4bead0]
mov dword [esi + 0xe09], 0
mov dword [ebp - 0x6c], 0xff
mov dword [ebp - 0x68], 0xff
movss xmm0, dword [eax + 0x9c]
lea eax, [ebp - 0x50]
cvtps2pd xmm0, xmm0
mov dword [ebp - 0x64], 0xff
movsd qword [esp], xmm0
push str.Overlay_FPS:__.0f
push 0x40
push eax
call fcn.0049ac30
add esp, 0x14
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.0049b030
add esp, 8
xor ecx, ecx
call fcn.0042a290
push dword [0x4beb14]
call dword [sym.imp.USER32.dll_SetFocus]
call fcn.0040bf80
mov eax, dword [0x4beb4c]
push 0
mov ecx, dword [eax]
push ecx
mov dword [esp], 0x3f800000
push 0
push 1
push 0
push 0
push eax
call dword [ecx + 0xac]
mov eax, dword [0x4beb4c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xa4]
test eax, eax
js 0x49bada
call fcn.0040c350
mov eax, dword [0x4bead0]
mov eax, dword [eax + 0x4a34]
mov ecx, dword [eax]
xor eax, eax
add ecx, 0x3c
cmp byte [ecx], al
cmove ecx, eax
call fcn.004689d0
mov eax, dword [0x4beb4c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xa8]
mov ecx, dword [0x4beb4c]
push 0
push 0
push 0
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0x44]
cmp eax, 0x88760868
jne 0x49bb9a
mov eax, dword [0x4beb4c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
cmp eax, 0x88760869
jne 0x49bb9a
mov esi, dword [0x4bead0]
test esi, esi
je 0x49bb70
mov esi, dword [esi + 0x78]
test esi, esi
je 0x49bb70
cmp dword [esi], 0
je 0x49bb70
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x49bb39
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 4], 0
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x49bb4d
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 8], 0
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x49bb70
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [0x4bead0]
mov dword [esi + 0xc], 0
mov eax, dword [eax + 0x2c]
mov dword [eax + 4], 0
mov eax, dword [0x4beb4c]
push 0x4beadc
push eax
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [0x4bead0]
test eax, eax
je 0x49bb9a
mov eax, dword [eax + 0x78]
test eax, eax
je 0x49bb9a
cmp dword [eax], 0
je 0x49bb9a
call fcn.00468ef0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049c694
mov esp, ebp
pop ebp
ret