Function at 0x407fb0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebx, ecx
mov eax, dword [ebx + 4]
push esi
push edi
lea ecx, [eax + 0x110]
call fcn.00415ee0
mov ebp, eax
mov eax, dword [ebx + 0x90]
test eax, eax
push 0
jne 0x407fe5
push ebp
mov ecx, ebx
call fcn.00406de0
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [ebx + 4]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
add eax, 0x148
push eax
call edi
test eax, eax
je 0x408090
mov eax, dword [0x49bd2c]
test eax, eax
je 0x408030
mov eax, dword [ebx + 8]
push 0x3d4ccccd
push 0x14
push 8
lea ecx, [eax + 0xc0]
push 0x1e
push ecx
lea ecx, [eax + 0x30]
call fcn.00416630
mov dword [0x49bd2c], 0
jmp 0x408090
mov ecx, dword [ebx + 8]
fld dword [ecx + 0x40]
fcomp dword [ecx + 0x1ec]
fnstsw ax
test ah, 0x44
jp 0x40806b
fld dword [ecx + 0x44]
fcomp dword [ecx + 0x1f0]
fnstsw ax
test ah, 0x44
jp 0x40806b
fld dword [ecx + 0x48]
fcomp dword [ecx + 0x1f4]
fnstsw ax
test ah, 0x44
jp 0x40806b
add ecx, 0x30
call fcn.00406ae0
mov ecx, dword [ebx + 8]
push 0x3d4ccccd
push 0x14
push 8
push 0x1e
push 0x49beb0
add ecx, 0x30
call fcn.00416630
mov dword [0x49bd2c], 1
mov ecx, dword [ebx + 4]
push 1
add ecx, 0x15c
call fcn.00468faf
mov edx, dword [ebx + 4]
push 0
add edx, 0x13c
push edx
call edi
test eax, eax
je 0x4080d9
mov ecx, dword [0x48b124]
mov eax, dword [ebx + 4]
push 0
push ecx
call dword [eax + 0x15f4]
mov eax, dword [0x48b124]
xor edx, edx
add esp, 8
test eax, eax
sete dl
mov dword [0x48b124], edx
mov eax, dword [ebx + 4]
push 0
add eax, 0x144
push eax
call edi
test eax, eax
je 0x4080f2
mov ecx, dword [ebx + 0x78]
call fcn.004063e0
mov ecx, dword [ebx + 4]
push 0
add ecx, 0x150
push ecx
call edi
test eax, eax
je 0x408191
mov eax, dword [ebx + 8]
inc dword [eax + 0x1d8]
mov eax, dword [ebx + 8]
mov esi, dword [eax + 0x1d8]
xor ecx, ecx
cmp esi, 5
setg cl
sub esp, 0x30
mov edi, esp
dec ecx
and ecx, esi
mov dword [eax + 0x1d8], ecx
mov eax, dword [ebx + 8]
mov ecx, dword [eax + 0x1d8]
lea esi, [ecx + ecx*2]
shl esi, 4
add esi, 0x49bd90
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
lea ecx, [eax + 0x1dc]
call fcn.00406a40
mov eax, dword [ebx + 8]
sub esp, 0x30
lea esi, [eax + 0x1dc]
mov edi, esp
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
lea ecx, [eax + 0xc0]
call fcn.00406a40
mov eax, dword [ebx + 8]
push 0x3d4ccccd
push 0x14
push 5
push 0x1e
lea edx, [eax + 0x1dc]
push edx
jmp 0x408226
mov eax, dword [ebx + 4]
push 0
add eax, 0x154
push eax
call edi
test eax, eax
je 0x408234
mov eax, dword [ebx + 8]
dec dword [eax + 0x1d8]
mov eax, dword [ebx + 8]
mov ecx, dword [eax + 0x1d8]
jns 0x4081bf
mov ecx, 5
mov dword [eax + 0x1d8], ecx
mov eax, dword [ebx + 8]
mov ecx, dword [eax + 0x1d8]
lea esi, [ecx + ecx*2]
shl esi, 4
sub esp, 0x30
mov edi, esp
add esi, 0x49bd90
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
lea ecx, [eax + 0x1dc]
call fcn.00406a40
mov eax, dword [ebx + 8]
sub esp, 0x30
lea esi, [eax + 0x1dc]
mov edi, esp
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
lea ecx, [eax + 0xc0]
call fcn.00406a40
mov eax, dword [ebx + 8]
push 0x3d4ccccd
push 0x14
push 5
push 0x1e
lea ecx, [eax + 0x1dc]
push ecx
lea ecx, [eax + 0x30]
call fcn.00416630
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov esi, dword [ebx + 8]
mov eax, dword [esi + 0xc]
mov edx, dword [eax]
push 0
push 0x3f800000
push 0xff000000
push 3
push 0
add esi, 4
push 0
push eax
call dword [edx + 0x90]
mov esi, dword [esi + 8]
mov eax, dword [esi]
push esi
call dword [eax + 0x88]
mov eax, dword [ebx + 0x90]
dec eax
je 0x408289
dec eax
je 0x40827e
dec eax
jne 0x408293
push 0
mov ecx, ebx
call fcn.00406e30
jmp 0x408293
push 0
mov ecx, ebx
call fcn.00407cb0
jmp 0x408293
push 0
push ebp
mov ecx, ebx
call fcn.00407640
mov ecx, dword [ebx + 0xc]
mov eax, dword [ecx + 0x4010]
test eax, eax
jne 0x4082aa
mov ecx, dword [ebx + 0x78]
push 0
call fcn.00406620
mov esi, dword [ebx + 8]
mov eax, dword [esi + 0xc]
mov edx, dword [eax]
add esi, 4
push eax
call dword [edx + 0x8c]
mov esi, dword [esi + 8]
mov eax, dword [esi]
push 0
push 0
push 0
push 0
push esi
call dword [eax + 0x3c]
cmp dword [ebp], 0
je 0x4083fb
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call esi
and eax, 0xffff8000
test ax, ax
je 0x40834b
mov eax, dword [ebp + 0x18]
test eax, eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
jle 0x40830c
mov dword [esp + 0x10], 0x3f000000
jmp 0x408316
jge 0x408316
mov dword [esp + 0x10], 0xbf000000
mov eax, dword [ebp + 0x14]
test eax, eax
jle 0x408327
mov dword [esp + 0x14], 0xbf000000
jmp 0x408331
jge 0x408331
mov dword [esp + 0x14], 0x3f000000
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push ecx
mov ecx, dword [ebx + 8]
push edx
add ecx, 0x30
call fcn.00416570
jmp 0x4083eb
push 0x11
call esi
and eax, 0xffff8000
test ax, ax
je 0x408386
mov eax, dword [ebp + 0x18]
test eax, eax
jle 0x408372
mov ecx, dword [ebx + 8]
push 0x3c23d70a
add ecx, 0x30
call fcn.004164d0
jmp 0x4083eb
jge 0x4083eb
mov ecx, dword [ebx + 8]
push 0xbc23d70a
add ecx, 0x30
call fcn.004164d0
jmp 0x4083eb
mov eax, dword [ebx + 0xfc]
test eax, eax
je 0x4083eb
mov eax, dword [ebp + 0x14]
test eax, eax
jle 0x4083a1
mov dword [esp + 0x14], 0x3d23d70a
jmp 0x4083b3
mov dword [esp + 0x14], 0xbd23d70a
jl 0x4083b3
mov dword [esp + 0x14], 0
mov eax, dword [ebp + 0x18]
test eax, eax
jle 0x4083c4
mov dword [esp + 0x10], 0x3d23d70a
jmp 0x4083d6
mov dword [esp + 0x10], 0xbd23d70a
jl 0x4083d6
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
mov ecx, dword [ebx + 8]
add ecx, 0x30
call fcn.004163f0
push 0
lea edx, [ebp + 0x14]
push edx
call edi
push 0
add ebp, 0x18
push ebp
call edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret