Function at 0x40aeb0
Capabilities:
Get graphical window text
Log keystrokes via polling

Disassembly:
sub esp, 0x108
push ebx
mov bl, byte [esp + 0x114]
test bl, bl
push esi
mov esi, dword [esp + 0x11c]
jne 0x40aee9
test esi, esi
jne 0x40aed9
pop esi
xor eax, eax
pop ebx
add esp, 0x108
ret
mov bl, byte [esi*2 + 0x45df68]
mov byte [esp + 0x118], bl
jmp 0x40aef7
test esi, esi
jne 0x40aef7
movzx eax, bl
mov esi, dword [eax*8 + 0x45e368]
mov al, byte [0x45f111]
test al, al
je case.default.0x40af0d
movzx eax, bl
add eax, 0xffffff60
cmp eax, 5
ja case.default.0x40af0d
jmp dword [eax*4 + 0x40b364]
mov bl, 0x11
jmp 0x40af1e
mov bl, 0x10
jmp 0x40af1e
mov bl, 0x12
mov byte [esp + 0x118], bl
mov eax, dword [esp + 0x120]
test eax, eax
push ebp
push edi
je 0x40b055
mov ecx, dword [esp + 0x120]
push 0
push esi
push ecx
call fcn.0040a2f0
mov ebp, dword [esp + 0x128]
add esp, 0xc
test al, al
je 0x40b007
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.USER32.dll_GetKeyboardState]
test ebp, ebp
mov cl, 0x80
mov dl, 0x7f
jne 0x40af78
movzx eax, bl
or byte [esp + eax + 0x18], cl
lea eax, [esp + eax + 0x18]
jmp 0x40af88
cmp ebp, 1
jne 0x40af88
movzx eax, bl
and byte [esp + eax + 0x18], dl
lea eax, [esp + eax + 0x18]
movzx eax, bl
add eax, 0xffffff60
cmp eax, 5
ja case.default.0x40af95
jmp dword [eax*4 + 0x40b37c]
test byte [esp + 0xba], cl
jne 0x40afb4
test byte [esp + 0xbb], cl
jne 0x40afb4
and byte [esp + 0x29], dl
jmp case.default.0x40af95
or byte [esp + 0x29], cl
jmp case.default.0x40af95
test byte [esp + 0xb8], cl
jne 0x40afd2
test byte [esp + 0xb9], cl
jne 0x40afd2
and byte [esp + 0x28], dl
jmp case.default.0x40af95
or byte [esp + 0x28], cl
jmp case.default.0x40af95
test byte [esp + 0xbc], cl
jne 0x40aff2
test byte [esp + 0xbd], cl
jne 0x40aff2
mov al, byte [esp + 0x2a]
and al, dl
jmp 0x40aff8
mov al, byte [esp + 0x2a]
or al, cl
mov byte [esp + 0x2a], al
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
mov edi, dword [sym.imp.USER32.dll_PostMessageA]
shl esi, 0x10
cmp ebp, 1
je 0x40b02e
mov eax, dword [esp + 0x128]
mov ecx, esi
or ecx, 1
push ecx
movzx edx, bl
push edx
push 0x100
push eax
call edi
test ebp, ebp
je 0x40b307
mov edx, dword [esp + 0x128]
or esi, 0xc0000001
push esi
movzx ecx, bl
push ecx
push 0x101
push edx
call edi
jmp 0x40b307
mov al, byte [0x45df61]
test al, al
je 0x40b1a2
cmp bl, 0x12
je 0x40b075
cmp bl, 0xa4
je 0x40b075
cmp bl, 0xa5
jne 0x40b1a2
mov al, byte [0x45f113]
test al, al
je 0x40b1a2
push 0
mov byte [esp + 0x17], 1
call fcn.004154f0
add esp, 4
cmp dword [esp + 0x11c], 1
mov edi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov ebp, dword [sym.imp.USER32.dll_GetForegroundWindow]
je 0x40b1d3
mov eax, dword [esp + 0x130]
mov edx, dword [esp + 0x120]
mov ecx, esi
shr ecx, 8
neg cl
push eax
sbb ecx, ecx
neg ecx
push ecx
push esi
push edx
call dword [sym.imp.USER32.dll_keybd_event]
cmp bl, 0x90
jne 0x40b0e1
mov al, byte [0x45f111]
test al, al
je 0x40b0e1
call fcn.0040a050
mov eax, dword [0x45d800]
test eax, eax
jne 0x40b1d3
mov eax, dword [0x45eb6c]
mov ecx, dword [0x45eb68]
imul eax, eax, 0x74
mov byte [eax + ecx], bl
mov edx, dword [0x45eb6c]
mov eax, dword [0x45eb68]
imul edx, edx, 0x74
mov dword [edx + eax + 4], esi
mov ecx, dword [0x45eb6c]
mov edx, dword [0x45eb68]
imul ecx, ecx, 0x74
mov byte [ecx + edx + 9], 0
mov eax, dword [0x45eb6c]
mov ecx, dword [0x45eb68]
imul eax, eax, 0x74
mov byte [eax + ecx + 8], 0x69
call edi
mov edx, dword [0x45f128]
mov dword [0x45eb70], eax
sub eax, edx
test eax, eax
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
jge 0x40b159
fadd dword [0x450748]
mov edx, dword [0x45eb6c]
fmul dword [0x450744]
mov eax, dword [0x45eb68]
imul edx, edx, 0x74
fstp dword [edx + eax + 0xc]
mov ecx, dword [0x45eb70]
mov dword [0x45f128], ecx
call ebp
test eax, eax
mov ecx, dword [0x45eb68]
je 0x40b1ac
mov edx, dword [0x45eb6c]
imul edx, edx, 0x74
push 0x64
lea edx, [edx + ecx + 0x10]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x40b1b9
mov byte [esp + 0x13], 0
jmp 0x40b091
mov eax, dword [0x45eb6c]
imul eax, eax, 0x74
mov byte [eax + ecx + 0x10], 0
mov eax, dword [0x45eb6c]
inc eax
cmp eax, 0x28
mov dword [0x45eb6c], eax
jl 0x40b1d3
mov dword [0x45eb6c], 0
mov eax, dword [esp + 0x11c]
test eax, eax
je 0x40b2f5
mov edx, dword [esp + 0x130]
mov ecx, dword [esp + 0x120]
mov eax, esi
shr eax, 8
neg al
push edx
sbb eax, eax
neg eax
or eax, 2
push eax
push esi
push ecx
call dword [sym.imp.USER32.dll_keybd_event]
mov eax, dword [0x45d800]
test eax, eax
jne 0x40b2f5
mov edx, dword [0x45eb6c]
mov eax, dword [0x45eb68]
imul edx, edx, 0x74
mov byte [edx + eax], bl
mov ecx, dword [0x45eb6c]
mov edx, dword [0x45eb68]
imul ecx, ecx, 0x74
mov dword [ecx + edx + 4], esi
mov eax, dword [0x45eb6c]
mov ecx, dword [0x45eb68]
imul eax, eax, 0x74
mov byte [eax + ecx + 9], 1
mov edx, dword [0x45eb6c]
mov eax, dword [0x45eb68]
imul edx, edx, 0x74
mov byte [edx + eax + 8], 0x69
call edi
mov edx, dword [0x45f128]
mov dword [0x45eb70], eax
sub eax, edx
test eax, eax
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
jge 0x40b280
fadd dword [0x450748]
mov ecx, dword [0x45eb6c]
fmul dword [0x450744]
mov edx, dword [0x45eb68]
imul ecx, ecx, 0x74
fstp dword [ecx + edx + 0xc]
mov eax, dword [0x45eb70]
mov dword [0x45f128], eax
call ebp
test eax, eax
je 0x40b2c8
mov ecx, dword [0x45eb6c]
mov edx, dword [0x45eb68]
imul ecx, ecx, 0x74
push 0x64
lea ecx, [ecx + edx + 0x10]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x40b2db
mov edx, dword [0x45eb6c]
mov eax, dword [0x45eb68]
imul edx, edx, 0x74
mov byte [edx + eax + 0x10], 0
mov eax, dword [0x45eb6c]
inc eax
cmp eax, 0x28
mov dword [0x45eb6c], eax
jl 0x40b2f5
mov dword [0x45eb6c], 0
mov al, byte [esp + 0x13]
test al, al
je 0x40b307
push 1
call fcn.004154f0
add esp, 4
mov al, byte [esp + 0x12c]
test al, al
pop edi
pop ebp
je 0x40b355
mov eax, dword [0x45d620]
test eax, eax
jl 0x40b355
mov cl, byte [0x45f111]
test cl, cl
je 0x40b33c
push eax
call dword [sym.imp.KERNEL32.DLL_Sleep]
pop esi
mov eax, 1
pop ebx
add esp, 0x108
ret
push 0
push eax
mov byte [0x45b056], 0
call fcn.00401650
add esp, 8
mov byte [0x45b056], 1
pop esi
mov eax, 1
pop ebx
add esp, 0x108
ret