Function at 0x4722de
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x1c
call fcn.004afa00
add esp, 4
mov dword [ebp - 4], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 7
rep stosd dword es:[edi], eax
add ebx, 0x10
push ebx
push 0x38
call fcn.004afa00
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x540258
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
push ebx
mov ebx, edi
mov ecx, 0xc
push ecx
push ebx
push 8
call fcn.004afa00
add esp, 4
pop ebx
push ebx
mov dword [ebx], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push ebx
push 0xc
call fcn.004afa00
add esp, 4
pop ebx
push ebx
mov dword [ebx], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
pop ebx
pop ebx
pop ecx
add ebx, 4
dec ecx
jne 0x47232b
pop ebx
mov dword [ebp - 8], 0
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 0x24
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebx]
and eax, 1
xor eax, 1
test eax, eax
je 0x472447
mov ebx, dword [ebp + 0x14]
cmp dword [ebx], 7
je 0x472433
mov ebx, dword [ebp + 0x14]
cmp dword [ebx], 8
je 0x472433
mov ebx, dword [ebp + 0x14]
cmp dword [ebx], 0x20a
je 0x472433
mov ebx, dword [ebp + 0x14]
cmp dword [ebx], 0x200
jl 0x4723f0
mov ebx, dword [ebp + 0x14]
cmp dword [ebx], 0x205
jg 0x4723f0
mov eax, 1
jmp 0x4723f5
mov eax, 0
test eax, eax
jne 0x472433
mov ebx, dword [ebp + 0x14]
cmp dword [ebx], 0x100
jl 0x472422
mov ebx, dword [ebp + 0x14]
cmp dword [ebx], 0x102
jg 0x472422
mov eax, 1
jmp 0x472427
mov eax, 0
test eax, eax
jne 0x472433
xor eax, eax
jmp 0x472438
mov eax, 1
test eax, eax
je 0x472447
mov eax, 1
jmp 0x47244c
mov eax, 0
test eax, eax
je 0x472b64
mov ebx, dword [ebp - 4]
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 0x18
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0xc]
mov dword [ebx], eax
mov ebx, dword [ebp - 4]
add ebx, 4
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 0x1c
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0xc]
mov dword [ebx], eax
mov ebx, dword [ebp + 0x14]
cmp dword [ebx], 0x102
je 0x4724bb
mov ebx, dword [ebp + 0x14]
cmp dword [ebx], 7
je 0x4724bb
mov ebx, dword [ebp + 0x14]
cmp dword [ebx], 8
je 0x4724bb
mov eax, 1
jmp 0x4724c0
mov eax, 0
test eax, eax
je 0x47263f
mov dword [ebp - 0xc], esp
push 0x11
call dword [sym.imp.user32.dll_GetKeyState]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x4724ec
push 6
call fcn.004afa0c
add esp, 4
mov dword [ebp - 0x10], eax
push 0x80000301
push 0
push 0x4000
mov eax, dword [ebp - 0x10]
cwde
push 0x80000301
push 0
push eax
push 2
mov ebx, 0xc4
call fcn.004b1ec0
add esp, 0x1c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x47252d
mov dword [ebp - 8], 1
mov dword [ebp - 0xc], esp
push 0x10
call dword [sym.imp.user32.dll_GetKeyState]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x472551
push 6
call fcn.004afa0c
add esp, 4
mov dword [ebp - 0x10], eax
push 0x80000301
push 0
push 0x4000
mov eax, dword [ebp - 0x10]
cwde
push 0x80000301
push 0
push eax
push 2
mov ebx, 0xc4
call fcn.004b1ec0
add esp, 0x1c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4725b6
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push dword [ebp - 8]
push 2
mov ebx, 0xc8
call fcn.004b1ea0
add esp, 0x1c
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push 0x12
call dword [sym.imp.user32.dll_GetKeyState]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x4725da
push 6
call fcn.004afa0c
add esp, 4
mov dword [ebp - 0x10], eax
push 0x80000301
push 0
push 0x4000
mov eax, dword [ebp - 0x10]
cwde
push 0x80000301
push 0
push eax
push 2
mov ebx, 0xc4
call fcn.004b1ec0
add esp, 0x1c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x47263f
push 0x80000301
push 0
push 4
push 0x80000301
push 0
push dword [ebp - 8]
push 2
mov ebx, 0xc8
call fcn.004b1ea0
add esp, 0x1c
mov dword [ebp - 8], eax
mov ebx, dword [ebp + 0x14]
cmp dword [ebx], 0x200
jl 0x472664
mov ebx, dword [ebp + 0x14]
cmp dword [ebx], 0x205
jg 0x472664
mov eax, 1
jmp 0x472669
mov eax, 0
test eax, eax
je 0x4727d1
mov ebx, dword [ebp + 0x14]
cmp dword [ebx], 0x200
jne 0x472697
mov ebx, dword [ebp - 4]
add ebx, 8
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
mov dword [ebx], 0xfffffffa
jmp 0x4726c1
mov ebx, dword [ebp - 4]
add ebx, 8
mov dword [ebp - 0xc], ebx
fld qword [0x5404cd]
mov ebx, dword [ebp + 0x14]
fild dword [ebx]
fstp qword [ebp - 0x14]
fsub qword [ebp - 0x14]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
call fcn.0046951a
mov ebx, dword [ebp - 0xc]
mov dword [ebx], eax
mov ebx, dword [ebp - 4]
add ebx, 0xc
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
mov dword [ebx], 3
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx + 0x10]
call fcn.00468e9b
mov eax, 0
cmp eax, ecx
jl 0x4726f4
push 1
call fcn.004afa0c
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
mov ebx, dword [ebx]
mov dword [ebp - 0xc], ebx
push 0x80000301
push 0
push 0xffff
push 0x80000301
push 0
mov ebx, dword [ebp + 0x1c]
push dword [ebx]
push 2
mov ebx, 0xc4
call fcn.004b1ec0
add esp, 0x1c
cdq
mov ebx, dword [ebp - 0xc]
mov dword [ebx], eax
mov dword [ebx + 4], edx
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx + 0x10]
call fcn.00468e9b
mov eax, 1
cmp eax, ecx
jl 0x472754
push 1
call fcn.004afa0c
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
mov ebx, dword [ebx]
mov dword [ebp - 0xc], ebx
push 0x80000301
push 0
push 0x10
push 0x80000301
push 0
mov ebx, dword [ebp + 0x1c]
push dword [ebx]
push 2
mov ebx, 0x9fc
call fcn.004b2280
add esp, 0x1c
cdq
mov ebx, dword [ebp - 0xc]
mov dword [ebx], eax
mov dword [ebx + 4], edx
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx + 0x10]
call fcn.00468e9b
mov eax, 2
cmp eax, ecx
jl 0x4727b4
push 1
call fcn.004afa0c
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
mov ebx, dword [ebx]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 8]
cdq
mov ebx, dword [ebp - 0xc]
mov dword [ebx], eax
mov dword [ebx + 4], edx
jmp 0x472aad
mov ebx, dword [ebp + 0x14]
cmp dword [ebx], 7
je 0x4727ed
mov ebx, dword [ebp + 0x14]
cmp dword [ebx], 8
je 0x4727ed
xor eax, eax
jmp 0x4727f2
mov eax, 1
test eax, eax
je 0x472864
mov ebx, dword [ebp - 4]
add ebx, 8
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp + 0x14]
fild dword [ebx]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
fchs
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
call fcn.0046951a
mov ebx, dword [ebp - 0xc]
mov dword [ebx], eax
push dword [ebp + 0xc]
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x88]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x44]
mov ebx, dword [ebp - 0xc]
push ebx
mov eax, dword [ebx]
call dword [eax]
call fcn.004afa06
add esp, 4
mov eax, 1
jmp 0x472b6e
mov ebx, dword [ebp + 0x14]
cmp dword [ebx], 0x100
je 0x472886
mov ebx, dword [ebp + 0x14]
cmp dword [ebx], 0x101
je 0x472886
xor eax, eax
jmp 0x47288b
mov eax, 1
test eax, eax
je 0x472948
mov ebx, dword [ebp - 4]
add ebx, 8
mov dword [ebp - 0xc], ebx
fld qword [0x5404d5]
mov ebx, dword [ebp + 0x14]
fild dword [ebx]
fstp qword [ebp - 0x14]
fsub qword [ebp - 0x14]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
call fcn.0046951a
mov ebx, dword [ebp - 0xc]
mov dword [ebx], eax
mov ebx, dword [ebp - 4]
add ebx, 0xc
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
mov dword [ebx], 2
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx + 0x10]
call fcn.00468e9b
mov eax, 0
cmp eax, ecx
jl 0x4728f0
push 1
call fcn.004afa0c
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
mov ebx, dword [ebx]
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp + 0x18]
mov eax, dword [ebx]
cdq
mov ebx, dword [ebp - 0xc]
mov dword [ebx], eax
mov dword [ebx + 4], edx
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx + 0x10]
call fcn.00468e9b
mov eax, 1
cmp eax, ecx
jl 0x47292b
push 1
call fcn.004afa0c
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
mov ebx, dword [ebx]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 8]
cdq
mov ebx, dword [ebp - 0xc]
mov dword [ebx], eax
mov dword [ebx + 4], edx
jmp 0x472aad
mov ebx, dword [ebp + 0x14]
cmp dword [ebx], 0x102
jne 0x4729bb
mov ebx, dword [ebp - 4]
add ebx, 8
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
mov dword [ebx], 0xfffffff5
mov ebx, dword [ebp - 4]
add ebx, 0xc
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
mov dword [ebx], 1
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx + 0x10]
call fcn.00468e9b
mov eax, 0
cmp eax, ecx
jl 0x47299c
push 1
call fcn.004afa0c
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
mov ebx, dword [ebx]
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp + 0x18]
mov eax, dword [ebx]
cdq
mov ebx, dword [ebp - 0xc]
mov dword [ebx], eax
mov dword [ebx + 4], edx
jmp 0x472aad
mov ebx, dword [ebp + 0x14]
cmp dword [ebx], 0x20a
jne 0x472aad
mov ebx, dword [ebp - 4]
add ebx, 8
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
mov dword [ebx], 0xfffffff4
mov ebx, dword [ebp - 4]
add ebx, 0xc
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
mov dword [ebx], 2
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx + 0x10]
call fcn.00468e9b
mov eax, 0
cmp eax, ecx
jl 0x472a0f
push 1
call fcn.004afa0c
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
mov ebx, dword [ebx]
mov dword [ebp - 0xc], ebx
push 0x80000301
push 0
push 0x10
push 0x80000301
push 0
mov ebx, dword [ebp + 0x18]
push dword [ebx]
push 2
mov ebx, 0x9fc
call fcn.004b2280
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
mov eax, 0
setg al
test eax, eax
je 0x472a66
mov eax, 1
jmp 0x472a6b
mov eax, 0xffffffff
cdq
mov ebx, dword [ebp - 0xc]
mov dword [ebx], eax
mov dword [ebx + 4], edx
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx + 0x10]
call fcn.00468e9b
mov eax, 1
cmp eax, ecx
jl 0x472a95
push 1
call fcn.004afa0c
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
mov ebx, dword [ebx]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 8]
cdq
mov ebx, dword [ebp - 0xc]
mov dword [ebx], eax
mov dword [ebx + 4], edx
push dword [ebp + 0xc]
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x88]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x44]
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
push ebx
mov eax, dword [ebx]
call dword [eax]
call fcn.004afa06
add esp, 4
cmp dword [ebp - 0x10], 0
je 0x472b0f
mov ebx, dword [ebp - 4]
add ebx, 0x14
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebx]
and eax, 1
xor eax, 1
test eax, eax
jne 0x472b0f
xor eax, eax
jmp 0x472b14
mov eax, 1
test eax, eax
je 0x472b26
mov eax, 1
jmp 0x472b6e
mov ebx, dword [ebp + 0x14]
cmp dword [ebx], 0x102
jne 0x472b48
mov ebx, dword [ebp - 4]
add ebx, 0x18
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebx]
mov ebx, dword [ebp + 0x18]
mov dword [ebx], eax
mov ebx, dword [ebp - 4]
add ebx, 0x18
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
cmp dword [ebx], 0
mov eax, 0
setne al
jmp 0x472b6e
mov eax, 1
jmp 0x472b6e
push eax
mov ebx, dword [ebp - 4]
push ebx
add ebx, 0x10
push ebx
mov ebx, dword [ebx]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x472b94
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x472b90
imul eax, dword [ebx]
jmp 0x472b85
mov ecx, eax
test ecx, ecx
je 0x472bbc
push ecx
push ebx
mov ebx, dword [ebx]
push ebx
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.004afa06
add esp, 4
pop ebx
call fcn.004afa06
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x472b9a
call fcn.004afa06
add esp, 4
pop ebx
call fcn.004afa06
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x18