Function at 0x401060
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf4
mov eax, dword [0x47f228]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x47fe78], 0
mov eax, dword [0x47f190]
mov dword [ebp - 0xc], eax
mov eax, dword [0x47f194]
mov dword [ebp - 0x14], 0x40
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], eax
jne 0x4016c2
push esi
lea eax, [ebp - 0xf4]
mov ecx, 0x482aa0
push eax
lea eax, [ebp - 0xf0]
push eax
call fcn.004132d0
lea eax, [ebp - 0xe4]
mov ecx, 0x4838b8
push eax
call fcn.0040c720
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x12
mov dword [0x47e018], 0xfffe7961
mov dword [0x47e008], 0xfffe7961
call esi
test ax, ax
jns 0x4010f2
mov ecx, 1
jmp 0x401103
push 0x5d
call esi
xor ecx, ecx
mov edx, 2
test ax, ax
cmovs ecx, edx
push edi
push 9
mov dword [0x47fc2c], ecx
call esi
xor ecx, ecx
test ax, ax
lea eax, [ebp - 0xe8]
sets cl
push eax
lea eax, [ebp - 0xec]
mov dword [0x47e01c], ecx
push eax
mov ecx, 0x482ac8
call fcn.0040c4f0
cmp dword [0x47e01c], 1
mov edi, dword [0x47f194]
mov esi, dword [ebp - 0xe8]
jne 0x401159
lea eax, [edi - 0x10]
cmp esi, eax
jge 0x401159
lea esi, [edi - 8]
mov dword [ebp - 0xe8], esi
mov ecx, dword [ebp - 0xec]
cmp ecx, 0x40
jge 0x4012a3
test ecx, ecx
js 0x4016c0
test esi, esi
js 0x4011b8
lea eax, [edi - 0xa0]
cmp esi, eax
jge 0x4011b8
mov eax, 0x2aaaaaab
imul esi
mov al, 0x5f
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub al, cl
mov ecx, 0x4838b8
sub al, byte [ebp - 0xf4]
movzx eax, al
push eax
call fcn.0040dd30
mov esi, dword [ebp - 0xe8]
mov ecx, dword [ebp - 0xec]
mov edi, dword [0x47f194]
test ecx, ecx
js 0x4016c0
lea edx, [edi - 0x10]
cmp esi, edx
jl 0x4011f0
cmp esi, edi
jge 0x4011f0
push 0xffffffffffffffff
call fcn.00411d40
add esp, 4
mov ecx, 0x4838b8
call fcn.0040b230
mov ecx, dword [0x47f194]
mov dword [ebp - 8], ecx
lea eax, [ecx - 0x10]
mov dword [ebp - 0x10], eax
jmp 0x40126e
lea eax, [edi - 0xa0]
cmp esi, eax
jl 0x40122f
lea eax, [edi - 0x58]
cmp esi, eax
jge 0x40122f
mov eax, 1
mov ecx, 0x4838b8
sub eax, dword [0x4815ac]
mov dword [0x4815ac], eax
call fcn.0040b230
mov ecx, dword [0x47f194]
lea eax, [ecx - 0xa0]
mov dword [ebp - 0x10], eax
lea eax, [ecx - 0x58]
jmp 0x40126b
lea eax, [edi - 0x58]
cmp esi, eax
jl 0x4016c0
cmp esi, edx
jge 0x4016c0
mov eax, 1
mov ecx, 0x4838b8
sub eax, dword [0x4815b0]
mov dword [0x4815b0], eax
call fcn.0040b230
mov ecx, dword [0x47f194]
lea eax, [ecx - 0x58]
mov dword [ebp - 0x10], eax
lea eax, [ecx - 0x10]
mov dword [ebp - 8], eax
push 0x201
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push dword [0x482a94]
mov dword [ebp - 0xc], 0x40
call dword [sym.imp.USER32.dll_RedrawWindow]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418a55
mov esp, ebp
pop ebp
ret
test esi, esi
js 0x4013c3
lea eax, [edi - 0xa0]
cmp esi, eax
jge 0x4013c3
lea eax, [ecx - 0x40]
mov ecx, 0x5f
cdq
idiv dword [0x481fe0]
add eax, dword [ebp - 0xf0]
mov dword [ebp - 0xec], eax
mov eax, 0x2aaaaaab
imul esi
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, eax
sub ecx, dword [ebp - 0xf4]
mov dword [ebp - 0xe8], ecx
js 0x4016c0
call fcn.00412de0
cmp dword [0x47fc28], 0
mov ecx, dword [ebp - 0xec]
je 0x401320
mov eax, dword [0x47e018]
cmp byte [0x2485398], 8
cmovl eax, ecx
mov dword [0x47e018], eax
mov esi, dword [0x481fe0]
cmp esi, 0x10
je 0x40135f
mov eax, 0x10
cdq
idiv esi
push edx
push eax
push dword [ebp - 0xe8]
push ecx
mov ecx, 0x4838b8
call fcn.0040cfe0
mov ecx, dword [ebp - 0xec]
mov dword [0x47fc30], eax
test eax, eax
jle 0x401369
sub ecx, eax
mov dword [ebp - 0xec], ecx
jmp 0x401369
mov dword [0x47fc30], 0
push dword [0x47fc28]
push dword [ebp - 0xe8]
push ecx
mov ecx, 0x4838b8
call fcn.0040d2b0
test eax, eax
jne 0x401389
call fcn.00412a20
mov ecx, 0x4838b8
call fcn.0040b230
push 0x201
push 0
lea eax, [ebp - 0x14]
push eax
push dword [0x482a94]
call dword [sym.imp.USER32.dll_RedrawWindow]
mov dword [0x47e010], 0xfffe7961
mov dword [0x47e014], 0xfffe7961
jmp 0x4016a8
lea eax, [edi - 0x9c]
cmp esi, eax
jl 0x401476
lea eax, [edi - 0x5a]
cmp esi, eax
jge 0x401476
lea eax, [ecx - 0x40]
sub edi, esi
cdq
sub edi, 0x5c
idiv dword [0x481fe0]
mov ecx, dword [ebp - 0xf0]
add ecx, eax
mov eax, 0x66666667
imul edi
mov dword [ebp - 0xec], ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0xe8], eax
cmp ecx, dword [section..data]
jne 0x40141f
cmp eax, dword [0x47e004]
je 0x401430
call fcn.00412de0
mov eax, dword [ebp - 0xe8]
mov ecx, dword [ebp - 0xec]
push eax
push ecx
mov ecx, 0x4838b8
call fcn.0040d7b0
mov ecx, 0x4838b8
call fcn.0040b230
push 0x201
push 0
lea eax, [ebp - 0x14]
push eax
push dword [0x482a94]
call dword [sym.imp.USER32.dll_RedrawWindow]
mov dword [0x47e010], 0xfffe7961
mov dword [0x47e014], 0xfffe7961
jmp 0x4016a8
lea eax, [edi - 0x53]
cmp esi, eax
jl 0x401530
lea eax, [edi - 0x14]
cmp esi, eax
jge 0x401530
lea eax, [ecx - 0x40]
sub edi, esi
cdq
idiv dword [0x481fe0]
lea edi, [edi*4 - 0x50]
add eax, dword [ebp - 0xf0]
mov dword [ebp - 0xec], eax
mov dword [ebp - 0xe8], edi
cmp eax, dword [section..data]
jne 0x4014c1
cmp edi, dword [0x47e004]
je 0x4014d2
call fcn.00412de0
mov edi, dword [ebp - 0xe8]
mov eax, dword [ebp - 0xec]
push edi
push eax
mov ecx, 0x4838b8
call fcn.0040dc30
mov ecx, 0x4838b8
call fcn.0040b230
push 0x201
push 0
lea eax, [ebp - 0x14]
push eax
push dword [0x482a94]
call dword [sym.imp.USER32.dll_RedrawWindow]
mov ecx, dword [ebp - 0xec]
mov esi, dword [ebp - 0xe8]
mov dword [0x47e008], ecx
mov dword [0x47e00c], esi
mov dword [0x47e010], 0xfffe7961
mov dword [0x47e014], 0xfffe7961
jmp 0x4016b4
lea eax, [edi - 0xd]
cmp esi, eax
jl 0x4016b4
lea eax, [edi - 2]
cmp esi, eax
jg 0x4016b4
push ebx
mov ebx, dword [ebp + 8]
test bl, 4
je 0x4015f6
cmp dword [0x47e0d4], 0
jl 0x4015f6
lea eax, [ecx - 0x40]
cdq
idiv dword [0x481fe0]
add eax, dword [ebp - 0xf0]
cmp eax, dword [0x47fc40]
jle 0x4015b7
cmp dword [0x47fc5c], 0
jne 0x4015a4
mov ecx, dword [0x47fc2c]
cmp ecx, 1
je 0x4015a4
cmp ecx, 2
jne 0x40159a
push eax
call fcn.004125f0
add esp, 4
mov dword [0x47fc44], eax
jmp 0x401681
push eax
call fcn.004125a0
add esp, 4
mov dword [0x47fc44], eax
jmp 0x401681
cmp dword [0x47fc5c], 0
jne 0x4015e3
mov ecx, dword [0x47fc2c]
cmp ecx, 1
je 0x4015e3
cmp ecx, 2
jne 0x4015ec
push eax
call fcn.004126a0
add esp, 4
mov dword [0x47fc40], eax
jmp 0x401681
push eax
call fcn.00412650
add esp, 4
mov dword [0x47fc40], eax
jmp 0x401681
lea eax, [ecx - 0x40]
mov dword [0x47e010], ecx
cdq
idiv dword [0x481fe0]
add eax, dword [ebp - 0xf0]
cmp dword [0x47fc5c], 0
mov dword [0x47e014], eax
jne 0x401649
mov ecx, dword [0x47fc2c]
cmp ecx, 1
je 0x401649
cmp ecx, 2
jne 0x401642
push eax
call fcn.004126a0
push dword [0x47e014]
mov dword [0x47fc40], eax
call fcn.004125f0
jmp 0x40165f
mov dword [0x47fc40], eax
jmp 0x401662
push eax
call fcn.00412650
push dword [0x47e014]
mov dword [0x47fc40], eax
call fcn.004125a0
add esp, 8
mov dword [0x47fc44], eax
movsx eax, byte [0x2485398]
mov dword [0x47e0d4], eax
movzx eax, bl
shr eax, 3
and eax, 1
mov dword [0x47fc54], eax
mov ecx, 0x4838b8
call fcn.0040b230
push 0x201
push 0
lea eax, [ebp - 0x14]
push eax
push dword [0x482a94]
call dword [sym.imp.USER32.dll_RedrawWindow]
call fcn.004052c0
pop ebx
mov esi, dword [ebp - 0xe8]
mov ecx, dword [ebp - 0xec]
mov dword [section..data], ecx
mov dword [0x47e004], esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418a55
mov esp, ebp
pop ebp
ret