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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov dword [ebp - 0x10c], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 8
ja 0x42198d
cmp dword [ebp - 0x114], 8
je 0x421ca5
cmp dword [ebp - 0x114], 1
je 0x4219a2
cmp dword [ebp - 0x114], 7
je 0x421c19
jmp 0x421ce9
cmp dword [ebp - 0x114], 0x100
je 0x421b93
jmp 0x421ce9
push 0x88
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x110], eax
mov ecx, dword [ebp - 0x110]
fld qword [0x4f2c68]
fstp qword [ecx + 8]
mov edx, dword [ebp - 0x110]
fld qword [0x4f2c60]
fstp qword [edx + 0x10]
mov eax, dword [ebp - 0x110]
fld qword [0x4f2c78]
fstp qword [eax + 0x18]
mov ecx, dword [ebp - 0x110]
fld qword [0x4f2c70]
fstp qword [ecx + 0x20]
mov edx, dword [ebp - 0x110]
mov dword [edx + 0x28], 0
mov eax, dword [ebp - 0x110]
mov dword [eax + 0x30], 0
mov ecx, dword [ebp - 0x110]
mov dword [ecx + 0x3c], 0xffffffff
mov edx, dword [ebp - 0x110]
mov dword [edx + 0x40], 0xffffffff
mov eax, dword [ebp - 0x110]
mov dword [eax + 0x44], 0
mov ecx, dword [ebp - 0x110]
mov dword [ecx + 0x48], 0
mov edx, dword [ebp - 0x110]
mov dword [edx + 0x58], 0
mov eax, dword [ebp - 0x110]
mov dword [eax + 0x5c], 0
mov ecx, dword [ebp - 0x110]
mov edx, dword [0x513fa8]
mov dword [ecx + 0x60], edx
mov eax, dword [ebp - 0x110]
mov dword [eax + 0x64], 0
mov ecx, dword [ebp - 0x110]
mov dword [ecx + 0x68], 0
mov edx, dword [ebp - 0x110]
mov dword [edx + 0x6c], 0
mov eax, dword [ebp - 0x110]
mov dword [eax + 0x70], 0
mov ecx, dword [ebp - 0x110]
mov dword [ecx + 0x7c], 0
mov edx, dword [ebp - 0x110]
push edx
push 0xffffffffffffffeb
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [0x521444]
push edx
call dword [sym.imp.USER32.dll_CallWindowProcA]
mov dword [ebp - 0x10c], eax
push 0xff
lea eax, [ebp - 0x108]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [ebp - 0x108]
mov dword [ebp - 4], edx
cmp dword [0x515424], 0
je 0x421b32
mov eax, dword [ebp - 4]
movsx ecx, byte [eax]
test ecx, ecx
je 0x421b32
mov edx, dword [ebp - 4]
movsx eax, byte [edx]
cmp eax, 0x2e
jne 0x421b27
mov ecx, dword [ebp - 4]
mov dl, byte [0x5222b0]
mov byte [ecx], dl
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
jmp 0x421b07
lea ecx, [ebp - 0x108]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 0xff
lea eax, [ebp - 0x108]
push eax
mov ecx, dword [ebp - 0x110]
push ecx
call fcn.00436fa0
add esp, 0xc
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
xor ecx, ecx
test eax, eax
setg cl
mov edx, dword [ebp - 0x110]
mov dword [edx + 0x2c], ecx
push 0
push 0
push 0xb9
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x421ce9
cmp dword [ebp + 0x10], 9
jne 0x421bba
push 0xffffffffffffffeb
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov dword [ebp - 0x110], eax
mov edx, dword [ebp - 0x110]
mov dword [edx + 0x44], 1
jmp 0x421bf1
cmp dword [ebp + 0x10], 0xd
jne 0x421bf1
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
movsx eax, ax
test eax, eax
jl 0x421bf1
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
test ecx, ecx
jl 0x421bf1
mov edx, dword [ebp + 8]
push edx
call fcn.0041fe20
add esp, 4
xor eax, eax
jmp 0x421cef
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [0x521444]
push ecx
call dword [sym.imp.USER32.dll_CallWindowProcA]
mov dword [ebp - 0x10c], eax
jmp 0x421ce9
push 0xffffffffffffffeb
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov dword [ebp - 0x110], eax
cmp dword [0x522884], 0
je 0x421c60
mov dword [0x522884], 0
push 0xff
push 0x515f20
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp - 0x110]
fld qword [ecx]
fstp qword [0x515f18]
mov edx, dword [ebp - 0x110]
mov dword [edx + 0x44], 0
push 0
push 0
push 0xb9
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [0x521444]
push edx
call dword [sym.imp.USER32.dll_CallWindowProcA]
mov dword [ebp - 0x10c], eax
jmp 0x421ce9
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004215f0
add esp, 0xc
test eax, eax
je 0x421cc7
mov dword [ebp - 0x10c], 0
jmp 0x421ce9
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [0x521444]
push eax
call dword [sym.imp.USER32.dll_CallWindowProcA]
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp - 0x10c]
mov esp, ebp
pop ebp
ret 0x10