Function at 0x4b73dc
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, 0x2028
call fcn.00573c80
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x7e4c8]
test eax, eax
mov eax, dword [esp + 0x2040]
je 0x4b742f
test eax, eax
jle 0x4b7425
mov ebx, dword [esp + 0x203c]
mov edi, 0x640030
sub ebx, edi
mov ebp, eax
mov ecx, dword [esi + 0x7e4c8]
mov dx, word [ebx + edi]
push edx
mov eax, dword [ecx]
call dword [eax + 8]
mov word [edi], ax
add edi, 2
dec ebp
jne 0x4b7405
mov eax, dword [esp + 0x2040]
mov dword [esp + 0x10], 0x640030
jmp 0x4b743a
mov ecx, dword [esp + 0x203c]
mov dword [esp + 0x10], ecx
test eax, eax
mov dword [esp + 0x14], 0
jle 0x4b7a97
mov eax, dword [esi + 0x7437c]
test eax, eax
jl 0x4b747e
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
movsx edx, word [edx + ecx*2]
mov dword [esp + 0x18], edx
fild dword [esp + 0x18]
fstp dword [esi + eax*4 + 0x6c378]
mov eax, dword [esi + 0x7437c]
inc eax
mov dword [esi + 0x7437c], eax
jmp 0x4b7485
inc eax
mov dword [esi + 0x7437c], eax
cmp eax, 0x2000
jl 0x4b7a7f
mov eax, dword [esi + 0x7e4a8]
cmp eax, 8
ja case.0x4b749f.2
jmp dword [eax*4 + 0x4b7d50]
lea ecx, [esp + 0x38]
lea eax, [esi + 0x72378]
mov edx, 0x800
fld dword [eax]
fmul qword [0x5e3bc8]
add eax, 4
add ecx, 4
dec edx
fstp dword [ecx - 4]
jne 0x4b74b5
jmp 0x4b7873
xor ecx, ecx
lea ebx, [esp + 0x38]
lea edi, [esi + 0x72378]
lea eax, [ecx - 0x400]
add edi, 4
cdq
xor eax, edx
add ebx, 4
sub eax, edx
mov edx, 0x400
sub edx, eax
inc ecx
mov dword [esp + 0x18], edx
cmp ecx, 0x800
fild dword [esp + 0x18]
fmul dword [edi - 4]
fmul qword [0x5e3bc0]
fstp dword [ebx - 4]
jl 0x4b74da
jmp 0x4b7873
xor ecx, ecx
lea edi, [esp + 0x38]
lea edx, [esi + 0x72378]
mov eax, ecx
shl eax, 5
cmp ax, 0x4000
ja 0x4b7539
and eax, 0xffff
fld dword [eax*4 + 0x6e9ec8]
jmp 0x4b7583
cmp ax, 0x8000
ja 0x4b7558
fld dword [0x5dc0b0]
and eax, 0xffff
mov ebx, 0x709ec8
shl eax, 2
sub ebx, eax
fsub dword [ebx]
jmp 0x4b7583
cmp ax, 0xc000
ja 0x4b7572
fld dword [0x5dc0b0]
and eax, 0xffff
fsub dword [eax*4 + 0x6c9ec8]
jmp 0x4b7583
and eax, 0xffff
mov ebx, 0x729ec8
shl eax, 2
sub ebx, eax
fld dword [ebx]
fmul qword [0x5e3bb8]
inc ecx
add edx, 4
add edi, 4
cmp ecx, 0x800
fadd qword [0x5e3bb0]
fmul dword [edx - 4]
fstp dword [edi - 4]
jl 0x4b7520
jmp 0x4b7873
xor eax, eax
lea edx, [esp + 0x38]
lea ecx, [esi + 0x72378]
mov edi, eax
add ecx, 4
and edi, 0xffff
inc eax
add edx, 4
cmp eax, 0x800
fld dword [edi*4 + 0x6e7ec4]
fmul dword [ecx - 4]
fstp dword [edx - 4]
jl 0x4b75b9
jmp 0x4b7873
mov eax, 0x1000
lea edx, [esp + 0x38]
lea ecx, [esi + 0x70378]
mov edi, eax
add ecx, 4
and edi, 0xffff
add edx, 4
fld dword [edi*4 + 0x6e3ec0]
lea edi, [eax + 0x800]
fmul dword [ecx - 4]
and edi, 0xffff
inc eax
fld dword [edi*4 + 0x6e3ec0]
fmul dword [ecx + 0x1ffc]
lea edi, [eax - 0x1000]
cmp edi, 0x800
fadd st(1)
fmul qword [0x5daf38]
fstp dword [edx - 4]
fstp st(0)
jl 0x4b75f0
jmp 0x4b7873
lea edx, [esp + 0x38]
mov eax, 0x1000
lea ecx, [esi + 0x70378]
lea edi, [eax - 0x1000]
add ecx, 4
and edi, 0xffff
add edx, 4
fld dword [edi*4 + 0x6dbebc]
lea edi, [eax - 0x800]
fmul dword [ecx - 0x4004]
and edi, 0xffff
fld dword [edi*4 + 0x6dbebc]
fmul dword [ecx - 0x2004]
mov edi, eax
and edi, 0xffff
faddp st(1)
fld dword [edi*4 + 0x6dbebc]
fmul dword [ecx - 4]
lea edi, [eax + 0x800]
and edi, 0xffff
inc eax
faddp st(1)
fld dword [edi*4 + 0x6dbebc]
fmul dword [ecx + 0x1ffc]
lea edi, [eax - 0x1000]
cmp edi, 0x800
fadd st(1)
fmul qword [0x5daf30]
fstp dword [edx - 4]
fstp st(0)
jl 0x4b7651
jmp 0x4b7873
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x38]
lea edx, [esi + 0x72b78]
rep stosd dword es:[edi], eax
mov ecx, 0x200
lea edi, [esp + 0x838]
lea eax, [ecx + 0x200]
shl eax, 6
cmp ax, 0x4000
ja 0x4b7719
and eax, 0xffff
fld dword [eax*4 + 0x6e9ec8]
jmp 0x4b7763
cmp ax, 0x8000
ja 0x4b7738
fld dword [0x5dc0b0]
and eax, 0xffff
mov ebx, 0x709ec8
shl eax, 2
sub ebx, eax
fsub dword [ebx]
jmp 0x4b7763
cmp ax, 0xc000
ja 0x4b7752
fld dword [0x5dc0b0]
and eax, 0xffff
fsub dword [eax*4 + 0x6c9ec8]
jmp 0x4b7763
and eax, 0xffff
mov ebx, 0x729ec8
shl eax, 2
sub ebx, eax
fld dword [ebx]
fmul dword [edx]
inc ecx
add edx, 4
add edi, 4
cmp ecx, 0x600
fadd st(0), st(0)
fstp dword [edi - 4]
jl 0x4b76fc
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x1838]
rep stosd dword es:[edi], eax
jmp 0x4b7873
mov ecx, 0x300
xor eax, eax
lea edi, [esp + 0x38]
lea edx, [esp + 0xc38]
rep stosd dword es:[edi], eax
mov eax, 0x300
lea ecx, [esi + 0x72f78]
lea edi, [eax*4 + 0xf800]
add ecx, 4
and edi, 0xffff
inc eax
add edx, 4
cmp eax, 0x500
fld dword [edi*4 + 0x6e7ec4]
fmul dword [ecx - 4]
fmul dword [0x5e3ba8]
fstp dword [edx - 4]
jl 0x4b77ad
mov ecx, 0x300
xor eax, eax
lea edi, [esp + 0x1438]
rep stosd dword es:[edi], eax
jmp 0x4b7873
xor ecx, ecx
lea edi, [esp + 0x38]
lea edx, [esi + 0x72378]
mov eax, ecx
shl eax, 5
cmp ax, 0x4000
ja 0x4b7815
and eax, 0xffff
fld dword [eax*4 + 0x6e9ec8]
jmp 0x4b785f
cmp ax, 0x8000
ja 0x4b7834
fld dword [0x5dc0b0]
and eax, 0xffff
mov ebx, 0x709ec8
shl eax, 2
sub ebx, eax
fsub dword [ebx]
jmp 0x4b785f
cmp ax, 0xc000
ja 0x4b784e
fld dword [0x5dc0b0]
and eax, 0xffff
fsub dword [eax*4 + 0x6c9ec8]
jmp 0x4b785f
and eax, 0xffff
mov ebx, 0x729ec8
shl eax, 2
sub ebx, eax
fld dword [ebx]
fmul dword [edx]
inc ecx
add edx, 4
add edi, 4
cmp ecx, 0x800
fstp dword [edi - 4]
jl 0x4b77fc
lea edi, [esi + 0x75384]
lea eax, [esp + 0x38]
push edi
push 1
push 0x3f000000
push 0x3ff
push 0
push eax
lea ecx, [esi + 0x6435c]
call fcn.004cda80
mov ecx, dword [esi + 0x7e384]
mov edx, 0x400
lea eax, [esi + ecx*4 + 0x7a384]
mov ecx, edi
mov ebx, dword [ecx]
add ecx, 4
mov dword [eax], ebx
add eax, 4
dec edx
jne 0x4b78ac
lea ebx, [esi + 0x7e3e4]
mov ebp, 0x28
mov ecx, dword [ebx]
test ecx, ecx
je 0x4b78db
mov eax, dword [esi + 0x74380]
mov edx, dword [ecx]
push 1
push eax
push edi
push 0x59
call dword [edx + 4]
add ebx, 4
dec ebp
jne 0x4b78c4
mov eax, dword [0x6643e4]
inc eax
cmp eax, 0xc8
mov dword [0x6643e4], eax
jle 0x4b790e
mov eax, dword [esi + 0x74380]
xor edx, edx
cmp eax, edx
jle 0x4b7906
dec eax
mov dword [esi + 0x74380], eax
mov dword [0x6643e4], edx
jmp 0x4b7910
xor edx, edx
mov ecx, dword [esi + 0x74380]
cmp ecx, 0xa
ja case.default.0x4b791f
jmp dword [ecx*4 + 0x4b7d74]
mov dword [esi + 0x7437c], 0xfffff800
mov dword [esi + 0x30e78], 0x400
jmp 0x4b7a26
mov dword [esi + 0x7437c], edx
mov dword [esi + 0x30e78], 0x400
jmp 0x4b7a26
mov dword [esi + 0x7437c], 0x2ab
mov dword [esi + 0x30e78], 0x400
jmp 0x4b7a26
mov eax, 0x400
mov dword [esi + 0x7437c], eax
mov dword [esi + 0x30e78], eax
jmp 0x4b7a26
mov dword [esi + 0x7437c], 0x555
mov dword [esi + 0x30e78], 0x2ab
jmp 0x4b7a26
mov dword [esi + 0x7437c], 0x600
mov dword [esi + 0x30e78], 0x200
jmp 0x4b7a26
mov dword [esi + 0x7437c], 0x680
mov dword [esi + 0x30e78], 0x180
jmp 0x4b7a26
mov dword [esi + 0x7437c], 0x700
mov dword [esi + 0x30e78], 0x100
jmp 0x4b7a26
mov dword [esi + 0x7437c], 0x756
mov dword [esi + 0x30e78], 0xaa
jmp 0x4b7a26
mov dword [esi + 0x7437c], 0x780
mov dword [esi + 0x30e78], 0x80
jmp 0x4b7a26
mov dword [esi + 0x7437c], 0x7ab
mov dword [esi + 0x30e78], 0x55
jmp 0x4b7a26
mov dword [esi + 0x7437c], edx
mov ebx, dword [esi + 0x7437c]
xor eax, eax
add ebx, 0x1800
cmp ecx, 4
setg al
mov dword [esi + 0x7437c], ebx
mov dword [0x63fd78], eax
mov eax, dword [esi + 0x7437c]
cmp eax, edx
jle 0x4b7a7f
mov ecx, 0x2000
sub ecx, eax
cmp ecx, 0x2000
jge 0x4b7a7f
mov eax, 0x2000
lea edx, [esi + 0x6c378]
lea edi, [esi + ecx*4 + 0x6c378]
sub eax, ecx
mov ecx, dword [edi]
add edi, 4
mov dword [edx], ecx
add edx, 4
dec eax
jne 0x4b7a72
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x2040]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x4b744a
mov eax, dword [esi + 0x7e48c]
test eax, eax
je 0x4b7ac1
mov eax, dword [0x66440c]
test eax, eax
je 0x4b7ac1
mov dword [esi + 0x7e48c], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2028
ret 8
lea ebp, [esi + 0x7e3e4]
mov dword [esp + 0x18], 0x28
mov dword [esp + 0x14], ebp
mov ecx, dword [ebp]
test ecx, ecx
je 0x4b7d0f
cmp dword [ecx + 0x1c], 1
jne 0x4b7d0f
mov edx, dword [ecx]
push 0
push 0
push 0
push 0x56
call dword [edx + 4]
test eax, eax
je 0x4b7cc7
mov edi, dword [ebp]
mov eax, dword [esi + 0x7e498]
add edi, 0x44
test eax, eax
je 0x4b7c9a
cmp dword [edi], 0
jl 0x4b7c9a
mov ebx, dword [sym.imp.USER32.dll_PeekMessageA]
push 0
push 0x201
push 0x201
lea eax, [esp + 0x28]
push 0
push eax
call ebx
test eax, eax
jne 0x4b7b5d
push eax
push 0x202
push 0x202
lea ecx, [esp + 0x28]
push eax
push ecx
call ebx
test eax, eax
jne 0x4b7b5d
push 0x1b
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ah, 0x80
je 0x4b7b63
mov dword [edi], 0xffffffff
cmp dword [edi], 0xffffffff
je 0x4b7c9a
mov ecx, dword [esi + 0x7e498]
mov ebx, 0x2000
mov edx, dword [ecx]
mov eax, edx
sub eax, dword [edi]
test eax, eax
jg 0x4b7b84
add eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
cmp eax, ecx
jle 0x4b7ba0
mov eax, ecx
sub edx, eax
mov dword [edi], edx
jns 0x4b7ba0
mov ecx, dword [esi + 0x7e498]
mov ecx, dword [ecx + 8]
add ecx, edx
mov dword [edi], ecx
mov edx, dword [esi + 0x7e498]
mov ecx, dword [edx + 8]
sub ecx, dword [edi]
cmp eax, 0x2000
jge 0x4b7bb4
mov ebx, eax
cmp ecx, ebx
jge 0x4b7bba
mov ebx, ecx
mov ecx, dword [ebp]
mov ebp, dword [edi]
mov edx, dword [edx + 4]
mov eax, dword [esi + 0xf8]
test eax, eax
mov eax, dword [ecx]
lea edx, [edx + ebp*2]
push ebx
push edx
jne 0x4b7bd8
call dword [eax + 0x24]
jmp 0x4b7bdb
call dword [eax + 0x28]
mov edx, dword [edi]
mov ebp, dword [esp + 0x14]
add edx, ebx
mov eax, edx
mov dword [edi], edx
mov ecx, dword [esi + 0x7e498]
cdq
idiv dword [ecx + 8]
mov dword [edi], edx
mov eax, dword [esi + 0x7e498]
cmp edx, dword [eax]
je 0x4b7c94
mov ebx, dword [sym.imp.USER32.dll_PeekMessageA]
push 1
push 0xf
push 0xf
lea ecx, [esp + 0x28]
push 0
push ecx
call ebx
test eax, eax
je 0x4b7c44
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
push edx
push eax
push 0xf
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push 1
push 0xf
push 0xf
lea edx, [esp + 0x28]
push 0
push edx
call ebx
test eax, eax
jne 0x4b7c1a
push 0
push 0x3c0
push 0x3c0
lea eax, [esp + 0x28]
push 0
push eax
call ebx
test eax, eax
jne 0x4b7c9a
mov eax, dword [0x66440c]
test eax, eax
je 0x4b7b1a
mov ecx, dword [esi + 0x30e70]
mov eax, 0x186a0
sub eax, ecx
mov edx, dword [esi + 0x30e6c]
add eax, edx
mov ecx, 0x186a0
cdq
idiv ecx
cmp edx, 0x1f4
jg 0x4b7c9a
jmp 0x4b7b1a
mov dword [edi], 0xffffffff
mov ecx, dword [ebp]
mov eax, dword [ecx + 0x44]
test eax, eax
jge 0x4b7d0f
mov eax, dword [esi + 0xf8]
mov edx, dword [ecx]
test eax, eax
mov eax, dword [esp + 0x2040]
push eax
mov eax, dword [esp + 0x14]
push eax
jne 0x4b7cc2
call dword [edx + 0x24]
jmp 0x4b7d0f
call dword [edx + 0x28]
jmp 0x4b7d0f
mov eax, dword [esi + 0xf8]
test eax, eax
je 0x4b7cf2
mov eax, dword [esi + 0x7e48c]
test eax, eax
jg 0x4b7cf2
mov eax, dword [esp + 0x2040]
mov ecx, dword [ebp]
push eax
mov eax, dword [esp + 0x14]
mov edx, dword [ecx]
push eax
call dword [edx + 0x28]
jmp 0x4b7d07
mov eax, dword [esp + 0x2040]
mov ecx, dword [ebp]
push eax
mov eax, dword [esp + 0x14]
mov edx, dword [ecx]
push eax
call dword [edx + 0x24]
mov ecx, dword [ebp]
mov edx, dword [ecx]
call dword [edx + 0x20]
mov eax, dword [esp + 0x18]
add ebp, 4
dec eax
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], eax
jne 0x4b7ad3
mov esi, dword [esi + 0x7e498]
test esi, esi
je 0x4b7d43
mov eax, dword [esp + 0x2040]
mov ecx, dword [esp + 0x10]
push eax
push ecx
mov ecx, esi
call fcn.00501d10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2028
ret 8