Function at 0x4b3140
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x110
push ebx
push esi
push edi
mov esi, ecx
push ebp
mov ecx, dword [0x5681d8]
call fcn.004e9490
test eax, eax
jne 0x4b3524
mov eax, dword [0x5681d8]
mov eax, dword [eax + 0x1b0]
cmp eax, 4
je 0x4b3182
cmp eax, 6
je 0x4b3182
cmp eax, 7
je 0x4b3182
cmp eax, 5
jne 0x4b3524
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ecx, dword [esi + 0x20]
cmp eax, dword [ecx + 4]
jne 0x4b3524
xor edi, edi
mov eax, dword [esi + 0x78]
cmp eax, edi
je 0x4b3524
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov word [esp + 0x10], di
mov eax, dword [0x5681d8]
mov word [esp + 0x12], di
mov ebx, dword [eax + 0xc]
mov ecx, dword [eax + 0x1b4]
cmp ecx, 0x12
jne 0x4b32e7
mov eax, dword [esi + 0x100]
test eax, eax
je 0x4b34df
mov ebp, dword [eax + 0x130]
test ebp, ebp
je 0x4b32e7
mov al, byte [esp + 0x46]
cmp al, 1
jbe 0x4b3220
fld dword [ebp + 0x3c]
fsub dword [ebx + 0x8d8]
push edi
sub esp, 4
mov ecx, ebp
sub esp, 4
fstp dword [esp + 4]
fld dword [ebp + 0x38]
fadd dword [ebx + 0x8d8]
fstp dword [esp]
mov eax, dword [ebp]
mov edi, 1
call dword [eax + 0x34]
fstp st(0)
mov al, byte [esp + 0x48]
cmp al, 1
jbe 0x4b3261
fld dword [ebp + 0x3c]
fadd dword [ebx + 0x8d8]
mov eax, dword [esi + 0x100]
push 0
sub esp, 4
sub esp, 4
mov ecx, dword [eax + 0x130]
fstp dword [esp + 4]
fld dword [ebp + 0x38]
fsub dword [ebx + 0x8d8]
fstp dword [esp]
mov edi, dword [ecx]
call dword [edi + 0x34]
fstp st(0)
mov edi, 1
mov al, byte [esp + 0x45]
cmp al, 1
jbe 0x4b32a2
fld dword [ebp + 0x3c]
fsub dword [ebx + 0x8d8]
mov eax, dword [esi + 0x100]
push 0
sub esp, 4
sub esp, 4
mov ecx, dword [eax + 0x130]
fstp dword [esp + 4]
fld dword [ebp + 0x38]
fsub dword [ebx + 0x8d8]
fstp dword [esp]
mov edi, dword [ecx]
call dword [edi + 0x34]
fstp st(0)
mov edi, 1
mov al, byte [esp + 0x47]
cmp al, 1
jbe 0x4b34df
fld dword [ebp + 0x3c]
fadd dword [ebx + 0x8d8]
mov eax, dword [esi + 0x100]
push 0
sub esp, 4
sub esp, 4
mov ecx, dword [eax + 0x130]
fstp dword [esp + 4]
fld dword [ebp + 0x38]
fadd dword [ebx + 0x8d8]
fstp dword [esp]
mov ebx, dword [ecx]
call dword [ebx + 0x34]
fstp st(0)
jmp 0x4b34da
mov eax, dword [esi + 0x100]
test eax, eax
je 0x4b34df
mov al, byte [esp + 0x45]
cmp al, 1
jbe 0x4b3306
mov word [esp + 0x10], 0xffff
jmp 0x4b3315
mov al, byte [esp + 0x47]
cmp al, 1
jbe 0x4b3315
mov word [esp + 0x10], 1
mov al, byte [esp + 0x46]
cmp al, 1
jbe 0x4b3326
mov word [esp + 0x12], 0xffff
jmp 0x4b3335
mov al, byte [esp + 0x48]
cmp al, 1
jbe 0x4b3335
mov word [esp + 0x12], 1
cmp word [esp + 0x10], 0
jne 0x4b3349
cmp word [esp + 0x12], 0
je 0x4b34df
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, eax
mov ebp, eax
sub ecx, dword [esi + 0x370]
mov eax, dword [esi + 0x374]
test eax, eax
jne 0x4b3377
mov dword [esi + 0x374], 1
mov dword [esp + 0x14], 0x3f800000
jmp 0x4b33df
mov eax, dword [ebx + 0x8d0]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], 0
fild qword [esp + 0x18]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0
fild qword [esp + 0x18]
fdivr st(1)
fst st(1)
call fcn.005351bc
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
mov dword [esp + 0x18], 0
fstp dword [esp + 0x14]
fsub dword [esp + 0x14]
fcomp dword [0x55159c]
fnstsw ax
test ah, 1
jne 0x4b33d3
mov dword [esp + 0x18], 0x3f000000
fld dword [esp + 0x18]
fadd dword [esp + 0x14]
fstp dword [esp + 0x14]
fld dword [ebx + 0x8d4]
fcomp dword [esp + 0x14]
fnstsw ax
test ah, 1
je 0x4b33fa
mov eax, dword [ebx + 0x8d4]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x4b34df
fld dword [esp + 0x14]
fmul dword [0x5515a4]
cmp word [esp + 0x10], 0xffff
jne 0x4b343d
fstp dword [esp + 0x18]
mov ecx, dword [esi + 0x100]
sub esp, 4
fld dword [ecx + 0x118]
fsub dword [esp + 0x18]
fld dword [ecx + 0x114]
fsub dword [esp + 0x18]
fxch st(1)
jmp 0x4b3468
fstp dword [esp + 0x18]
cmp word [esp + 0x10], 1
jne 0x4b3476
mov ecx, dword [esi + 0x100]
sub esp, 4
fld dword [ecx + 0x118]
fadd dword [esp + 0x18]
fld dword [ecx + 0x114]
fadd dword [esp + 0x18]
fxch st(1)
fstp dword [esp]
sub esp, 4
fstp dword [esp]
call fcn.004656c0
cmp word [esp + 0x12], 0xffff
jne 0x4b349f
mov ecx, dword [esi + 0x100]
sub esp, 4
fld dword [ecx + 0x118]
fsub dword [esp + 0x1c]
fld dword [ecx + 0x114]
fadd dword [esp + 0x1c]
fxch st(1)
jmp 0x4b34c6
cmp word [esp + 0x12], 1
jne 0x4b34d4
mov ecx, dword [esi + 0x100]
sub esp, 4
fld dword [ecx + 0x118]
fadd dword [esp + 0x1c]
fld dword [ecx + 0x114]
fsub dword [esp + 0x1c]
fxch st(1)
fstp dword [esp]
sub esp, 4
fstp dword [esp]
call fcn.004656c0
mov dword [esi + 0x370], ebp
mov edi, 1
cmp word [esp + 0x10], 0
jne 0x4b34f9
cmp word [esp + 0x12], 0
jne 0x4b34f9
mov dword [esi + 0x374], 0
test edi, edi
je 0x4b3517
push 1
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x20]
mov ecx, dword [esi + 0x35c]
test ecx, ecx
je 0x4b3517
push 1
mov eax, dword [ecx]
call dword [eax + 0x20]
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x110
ret
xor eax, eax
pop ebp
mov dword [esi + 0x374], 0
pop edi
pop esi
pop ebx
add esp, 0x110
ret