Function at 0x4e8438
Capabilities:
Get graphical window text
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffff78c
push ebx
xor ebx, ebx
mov dword [ebp - 0x1870], ebx
mov dword [ebp - 0x1874], ebx
mov dword [ebp - 0x1868], ebx
mov dword [ebp - 0x186c], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1864]
mov edx, dword [0x4dc4f8]
call fcn.00405a40
xor eax, eax
push ebp
push 0x4e8a58
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00405480
cmp dword [ebp - 8], 0
jne 0x4e84ac
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.004e7e48
jmp 0x4e8a21
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004e62e8
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0xc], 0
jne 0x4e84d6
cmp dword [ebp + 0xc], 1
jne 0x4e84d6
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x28]
call fcn.0054a658
jmp 0x4e8a21
cmp dword [ebp + 0xc], 3
je 0x4e84e2
cmp dword [ebp + 0xc], 4
jne 0x4e8529
mov dword [ebp - 0x38], 0x20000
cmp dword [ebp + 0xc], 4
jne 0x4e84f6
mov dword [ebp - 0x38], 0x40000
cmp dword [ebp - 0xc], 0
jg 0x4e8503
mov dword [ebp - 0xc], 1
push 0
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
add eax, 0x500
push eax
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.004f8960
jmp 0x4e8a21
cmp dword [ebp + 0xc], 2
jne 0x4e87fc
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x44]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.004e8ae4
xor eax, eax
push ebp
push 0x4e87f5
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0xc], 0
jg 0x4e8565
mov dword [ebp - 0xc], 1
push 0
lea eax, [ebp - 0x1864]
push eax
mov ecx, 0x80000
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.004e72c4
mov eax, dword [0x5504b0]
cmp byte [eax], 0
je 0x4e86bb
mov eax, dword [ebp - 0x185c]
call fcn.004063b0
sub eax, 1
jno 0x4e85a1
call fcn.00403bec
test eax, eax
jl 0x4e86ae
inc eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x18], 0
push 0
push 0
push 0x406
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x185c]
test edx, edx
je 0x4e85cf
cmp eax, dword [edx - 4]
jb 0x4e85d4
call fcn.00403be4
mov eax, dword [edx + eax*4]
push eax
call sub.user32.dll_SendMessageA
sub eax, 1
jno 0x4e85e7
call fcn.00403bec
test eax, eax
jl 0x4e86a2
inc eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x14]
push eax
push 0x40d
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x185c]
test edx, edx
je 0x4e8619
cmp eax, dword [edx - 4]
jb 0x4e861e
call fcn.00403be4
mov eax, dword [edx + eax*4]
push eax
call sub.user32.dll_SendMessageW
lea eax, [ebp - 0x38]
push eax
push 0x400
lea eax, [ebp - 0x1850]
push eax
mov eax, dword [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x44]
push eax
call sub.kernel32.dll_ReadProcessMemory
lea eax, [ebp - 0x186c]
lea edx, [ebp - 0x1850]
mov ecx, 0x800
call fcn.00404ee0
mov eax, dword [ebp - 0x186c]
lea edx, [ebp - 0x1868]
call fcn.0040a004
mov edx, dword [ebp - 0x1868]
mov eax, dword [ebp + 8]
call fcn.0040564c
add dword [ebp - 0x1c], 1
jno 0x4e8684
call fcn.00403bec
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0xc]
jl 0x4e8696
call fcn.0040467c
jmp 0x4e8a21
inc dword [ebp - 0x14]
dec dword [ebp - 0x50]
jne 0x4e85fa
inc dword [ebp - 0x18]
dec dword [ebp - 0x4c]
jne 0x4e85b4
mov eax, dword [ebp + 8]
call fcn.00405480
jmp 0x4e87d6
mov eax, dword [ebp - 0x185c]
call fcn.004063b0
sub eax, 1
jno 0x4e86d0
call fcn.00403bec
test eax, eax
jl 0x4e87ce
inc eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x18], 0
push 0
push 0
push 0x406
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x185c]
test edx, edx
je 0x4e86fe
cmp eax, dword [edx - 4]
jb 0x4e8703
call fcn.00403be4
mov eax, dword [edx + eax*4]
push eax
call sub.user32.dll_SendMessageA
sub eax, 1
jno 0x4e8716
call fcn.00403bec
test eax, eax
jl 0x4e87c2
inc eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x14]
push eax
push 0x402
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x185c]
test edx, edx
je 0x4e8748
cmp eax, dword [edx - 4]
jb 0x4e874d
call fcn.00403be4
mov eax, dword [edx + eax*4]
push eax
call sub.user32.dll_SendMessageA
lea eax, [ebp - 0x850]
mov edx, dword [ebp - 0x48]
call fcn.0040abd4
lea eax, [ebp - 0x1874]
lea edx, [ebp - 0x850]
mov ecx, 0x800
call fcn.00404ec8
mov eax, dword [ebp - 0x1874]
lea edx, [ebp - 0x1870]
call fcn.0040a004
mov edx, dword [ebp - 0x1870]
mov eax, dword [ebp + 8]
call fcn.0040564c
add dword [ebp - 0x1c], 1
jno 0x4e87a4
call fcn.00403bec
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0xc]
jl 0x4e87b6
call fcn.0040467c
jmp 0x4e8a21
inc dword [ebp - 0x14]
dec dword [ebp - 0x50]
jne 0x4e8729
inc dword [ebp - 0x18]
dec dword [ebp - 0x4c]
jne 0x4e86e3
mov eax, dword [ebp + 8]
call fcn.00405480
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e8a21
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x44]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004e8ae4
ret
mov dword [ebp - 0x20], 0x20000
cmp dword [ebp + 0xc], 1
jne 0x4e8810
mov dword [ebp - 0x20], 0x40000
call sub.kernel32.dll_GetCurrentThreadId_1
mov dword [ebp - 0x34], eax
push 0
mov eax, dword [ebp - 0x28]
push eax
call sub.user32.dll_GetWindowThreadProcessId
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x30]
jne 0x4e886e
cmp dword [ebp - 0xc], 0
jle 0x4e885b
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x1864]
push eax
mov ecx, dword [ebp - 0x20]
test ecx, ecx
jns 0x4e884b
call fcn.00403be4
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.004e72c4
mov dword [ebp - 0x2c], eax
jmp 0x4e88d2
mov eax, dword [ebp - 0x28]
push eax
call sub.user32.dll_SetForegroundWindow
call sub.user32.dll_GetFocus
mov dword [ebp - 0x2c], eax
jmp 0x4e88d2
cmp dword [ebp - 0xc], 0
jle 0x4e889b
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x1864]
push eax
mov ecx, dword [ebp - 0x20]
test ecx, ecx
jns 0x4e888b
call fcn.00403be4
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.004e72c4
mov dword [ebp - 0x2c], eax
jmp 0x4e88d2
push 0xffffffffffffffff
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x30]
push eax
call sub.user32.dll_AttachThreadInput
test eax, eax
je 0x4e8a21
mov eax, dword [ebp - 0x28]
push eax
call sub.user32.dll_SetForegroundWindow
call sub.user32.dll_GetFocus
mov dword [ebp - 0x2c], eax
push 0
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x30]
push eax
call sub.user32.dll_AttachThreadInput
cmp dword [ebp - 0x2c], 0
je 0x4e8a21
mov eax, dword [0x5504b0]
cmp byte [eax], 0
je 0x4e898c
push 0
push 0
push 0xe
mov eax, dword [ebp - 0x2c]
push eax
call sub.user32.dll_SendMessageW
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x1e8480
jle 0x4e8931
lea eax, [ebp - 0x10]
mov edx, 0x4e8a6c
call fcn.004054e4
push 0
mov eax, dword [0x550240]
mov eax, dword [eax]
call fcn.0045f5d4
xor ecx, ecx
mov edx, dword [ebp - 0x10]
call fcn.0054ac10
mov dword [ebp - 0x24], 0x1e8480
imul eax, dword [ebp - 0x24], 2
jno 0x4e893c
call fcn.00403bec
add eax, 2
jno 0x4e8946
call fcn.00403bec
test eax, eax
jns 0x4e894f
call fcn.00403be4
call fcn.00402d90
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x24]
add eax, 1
jno 0x4e8968
call fcn.00403bec
push eax
push 0xd
mov eax, dword [ebp - 0x2c]
push eax
call sub.user32.dll_SendMessageW
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x40]
call fcn.004055dc
mov eax, dword [ebp - 0x40]
call fcn.00402dc4
jmp 0x4e8a21
push 0
push 0
push 0xe
mov eax, dword [ebp - 0x2c]
push eax
call sub.user32.dll_SendMessageA
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xfa00
jle 0x4e89d3
lea eax, [ebp - 0x10]
mov edx, 0x4e8aa8
call fcn.004054e4
push 0
mov eax, dword [0x550240]
mov eax, dword [eax]
call fcn.0045f5d4
xor ecx, ecx
mov edx, dword [ebp - 0x10]
call fcn.0054ac10
mov dword [ebp - 0x24], 0xfa00
mov eax, dword [ebp - 0x24]
add eax, 1
jno 0x4e89e0
call fcn.00403bec
test eax, eax
jns 0x4e89e9
call fcn.00403be4
call fcn.00402d90
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x24]
add eax, 1
jno 0x4e8a02
call fcn.00403bec
push eax
push 0xd
mov eax, dword [ebp - 0x2c]
push eax
call sub.user32.dll_SendMessageA
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x3c]
call fcn.004055ac
mov eax, dword [ebp - 0x3c]
call fcn.00402dc4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e8a5f
lea eax, [ebp - 0x1874]
mov edx, 4
call fcn.00404c7c
lea eax, [ebp - 0x1864]
mov edx, dword [0x4dc4f8]
call fcn.00405b10
lea eax, [ebp - 0x10]
call fcn.00405480
ret