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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffff780
push ebx
xor ebx, ebx
mov dword [ebp - 0x187c], ebx
mov dword [ebp - 0x1880], ebx
mov dword [ebp - 0x1874], ebx
mov dword [ebp - 0x1878], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1860]
mov edx, dword [0x4def00]
call fcn.00405a70
xor eax, eax
push ebp
push 0x4ecad1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.004054b0
cmp dword [ebp - 8], 0
jne 0x4ec3ed
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.004ebbac
jmp 0x4ecaa2
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004ea0ec
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
call sub.user32.dll_IsWindow
test eax, eax
je 0x4ecaa2
cmp dword [ebp - 0xc], 0
jne 0x4ec428
cmp dword [ebp + 0x14], 1
jne 0x4ec428
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x24]
call fcn.0056d9c4
jmp 0x4ecaa2
cmp dword [ebp + 0x14], 3
je 0x4ec434
cmp dword [ebp + 0x14], 4
jne 0x4ec49f
mov dword [ebp - 0x34], 0x20000
cmp dword [ebp - 0xc], 0
jge 0x4ec446
xor eax, eax
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0x14], 4
jne 0x4ec460
mov dword [ebp - 0x34], 0x40000
cmp dword [ebp - 0xc], 0
jne 0x4ec460
mov dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 0
jne 0x4ec475
mov eax, dword [0x57438c]
mov eax, dword [eax]
mov edx, dword [ebp - 0x24]
call fcn.00560ac0
push 0
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
add eax, 0x6b0
push eax
mov al, byte [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.00501578
jmp 0x4ecaa2
cmp dword [ebp + 0x14], 2
jne 0x4ec8b1
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x40]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.004ecae0
xor eax, eax
push ebp
push 0x4ec8aa
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0xc], 0
jg 0x4ec4db
mov dword [ebp - 0xc], 1
push 0
lea eax, [ebp - 0x1860]
push eax
mov ecx, 0x80000
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.004eafc4
mov eax, dword [0x574604]
cmp byte [eax], 0
je 0x4ec6d4
mov eax, dword [ebp - 0x1858]
call fcn.004063e0
sub eax, 1
jno 0x4ec517
call fcn.00403c1c
test eax, eax
jl 0x4ec6c7
inc eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x14], 0
push 0
push 0
push 0x406
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1858]
test edx, edx
je 0x4ec545
cmp eax, dword [edx - 4]
jb 0x4ec54a
call fcn.00403c14
mov eax, dword [edx + eax*4]
push eax
call sub.user32.dll_SendMessageA
sub eax, 1
jno 0x4ec55d
call fcn.00403c1c
test eax, eax
jl 0x4ec6bb
inc eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x10], 0
add dword [ebp - 0x18], 1
jno 0x4ec57b
call fcn.00403c1c
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0xc]
jl 0x4ec6af
mov eax, dword [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 0x40d
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1858]
test edx, edx
je 0x4ec5a6
cmp eax, dword [edx - 4]
jb 0x4ec5ab
call fcn.00403c14
mov eax, dword [edx + eax*4]
push eax
call sub.user32.dll_SendMessageW
lea eax, [ebp - 0x34]
push eax
push 0x400
lea eax, [ebp - 0x184c]
push eax
mov eax, dword [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x40]
push eax
call sub.kernel32.dll_ReadProcessMemory
lea eax, [ebp - 0x1878]
lea edx, [ebp - 0x184c]
mov ecx, 0x800
call fcn.00404f10
mov eax, dword [ebp - 0x1878]
lea edx, [ebp - 0x1874]
call fcn.0040a138
mov edx, dword [ebp - 0x1874]
mov eax, dword [ebp + 8]
call fcn.0040567c
cmp byte [ebp + 0x10], 0
je 0x4ec6a5
mov eax, dword [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 0x40a
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1858]
test edx, edx
je 0x4ec62f
cmp eax, dword [edx - 4]
jb 0x4ec634
call fcn.00403c14
mov eax, dword [edx + eax*4]
push eax
call sub.user32.dll_SendMessageW
lea eax, [ebp - 0x34]
push eax
push 0x10
lea eax, [ebp - 0x1870]
push eax
mov eax, dword [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x40]
push eax
call sub.kernel32.dll_ReadProcessMemory
lea eax, [ebp - 0x1870]
push eax
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1858]
test edx, edx
je 0x4ec670
cmp eax, dword [edx - 4]
jb 0x4ec675
call fcn.00403c14
mov eax, dword [edx + eax*4]
push eax
call sub.user32.dll_ClientToScreen
mov eax, dword [ebp - 0x186c]
add eax, 4
jno 0x4ec68e
call fcn.00403c1c
push eax
mov eax, dword [ebp - 0x1870]
add eax, 4
jno 0x4ec69f
call fcn.00403c1c
push eax
call sub.user32.dll_SetCursorPos
call fcn.004046ac
jmp 0x4ecaa2
inc dword [ebp - 0x10]
dec dword [ebp - 0x4c]
jne 0x4ec570
inc dword [ebp - 0x14]
dec dword [ebp - 0x48]
jne 0x4ec52a
mov eax, dword [ebp + 8]
call fcn.004054b0
jmp 0x4ec88b
mov eax, dword [ebp - 0x1858]
call fcn.004063e0
sub eax, 1
jno 0x4ec6e9
call fcn.00403c1c
test eax, eax
jl 0x4ec883
inc eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x14], 0
push 0
push 0
push 0x406
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1858]
test edx, edx
je 0x4ec717
cmp eax, dword [edx - 4]
jb 0x4ec71c
call fcn.00403c14
mov eax, dword [edx + eax*4]
push eax
call sub.user32.dll_SendMessageA
sub eax, 1
jno 0x4ec72f
call fcn.00403c1c
test eax, eax
jl 0x4ec877
inc eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x10], 0
add dword [ebp - 0x18], 1
jno 0x4ec74d
call fcn.00403c1c
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0xc]
jl 0x4ec86b
mov eax, dword [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 0x402
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1858]
test edx, edx
je 0x4ec778
cmp eax, dword [edx - 4]
jb 0x4ec77d
call fcn.00403c14
mov eax, dword [edx + eax*4]
push eax
call sub.user32.dll_SendMessageA
lea eax, [ebp - 0x84c]
mov edx, dword [ebp - 0x44]
call fcn.0040ad1c
lea eax, [ebp - 0x1880]
lea edx, [ebp - 0x84c]
mov ecx, 0x800
call fcn.00404ef8
mov eax, dword [ebp - 0x1880]
lea edx, [ebp - 0x187c]
call fcn.0040a138
mov edx, dword [ebp - 0x187c]
mov eax, dword [ebp + 8]
call fcn.0040567c
cmp byte [ebp + 0x10], 0
je 0x4ec861
mov eax, dword [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 0x40a
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1858]
test edx, edx
je 0x4ec7f2
cmp eax, dword [edx - 4]
jb 0x4ec7f7
call fcn.00403c14
mov eax, dword [edx + eax*4]
push eax
call sub.user32.dll_SendMessageA
lea edx, [ebp - 0x1870]
mov eax, dword [ebp - 0x44]
mov ecx, 0x10
call fcn.00402fc8
lea eax, [ebp - 0x1870]
push eax
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1858]
test edx, edx
je 0x4ec82c
cmp eax, dword [edx - 4]
jb 0x4ec831
call fcn.00403c14
mov eax, dword [edx + eax*4]
push eax
call sub.user32.dll_ClientToScreen
mov eax, dword [ebp - 0x186c]
add eax, 4
jno 0x4ec84a
call fcn.00403c1c
push eax
mov eax, dword [ebp - 0x1870]
add eax, 4
jno 0x4ec85b
call fcn.00403c1c
push eax
call sub.user32.dll_SetCursorPos
call fcn.004046ac
jmp 0x4ecaa2
inc dword [ebp - 0x10]
dec dword [ebp - 0x4c]
jne 0x4ec742
inc dword [ebp - 0x14]
dec dword [ebp - 0x48]
jne 0x4ec6fc
mov eax, dword [ebp + 8]
call fcn.004054b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ecaa2
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x40]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004ecae0
ret
mov dword [ebp - 0x1c], 0x20000
cmp dword [ebp + 0x14], 1
jne 0x4ec8c5
mov dword [ebp - 0x1c], 0x40000
call sub.kernel32.dll_GetCurrentThreadId_1
mov dword [ebp - 0x30], eax
push 0
mov eax, dword [ebp - 0x24]
push eax
call sub.user32.dll_GetWindowThreadProcessId
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x2c]
jne 0x4ec923
cmp dword [ebp - 0xc], 0
jle 0x4ec910
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x1860]
push eax
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
jns 0x4ec900
call fcn.00403c14
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.004eafc4
mov dword [ebp - 0x28], eax
jmp 0x4ec987
mov eax, dword [ebp - 0x24]
push eax
call sub.user32.dll_SetForegroundWindow
call sub.user32.dll_GetFocus
mov dword [ebp - 0x28], eax
jmp 0x4ec987
cmp dword [ebp - 0xc], 0
jle 0x4ec950
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x1860]
push eax
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
jns 0x4ec940
call fcn.00403c14
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.004eafc4
mov dword [ebp - 0x28], eax
jmp 0x4ec987
push 0xffffffffffffffff
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x2c]
push eax
call sub.user32.dll_AttachThreadInput
test eax, eax
je 0x4ecaa2
mov eax, dword [ebp - 0x24]
push eax
call sub.user32.dll_SetForegroundWindow
call sub.user32.dll_GetFocus
mov dword [ebp - 0x28], eax
push 0
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x2c]
push eax
call sub.user32.dll_AttachThreadInput
cmp dword [ebp - 0x28], 0
je 0x4ecaa2
mov eax, dword [0x574604]
cmp byte [eax], 0
je 0x4eca05
push 0
push 0
push 0xe
mov eax, dword [ebp - 0x28]
push eax
call sub.user32.dll_SendMessageW
mov dword [ebp - 0x20], eax
imul eax, dword [ebp - 0x20], 2
jno 0x4ec9b8
call fcn.00403c1c
add eax, 2
jno 0x4ec9c2
call fcn.00403c1c
test eax, eax
jns 0x4ec9cb
call fcn.00403c14
call fcn.00402dc0
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x20]
add eax, 1
jno 0x4ec9e4
call fcn.00403c1c
push eax
push 0xd
mov eax, dword [ebp - 0x28]
push eax
call sub.user32.dll_SendMessageW
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x3c]
call fcn.0040560c
mov eax, dword [ebp - 0x3c]
call fcn.00402df4
jmp 0x4eca65
push 0
push 0
push 0xe
mov eax, dword [ebp - 0x28]
push eax
call sub.user32.dll_SendMessageA
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
add eax, 1
jno 0x4eca24
call fcn.00403c1c
test eax, eax
jns 0x4eca2d
call fcn.00403c14
call fcn.00402dc0
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x20]
add eax, 1
jno 0x4eca46
call fcn.00403c1c
push eax
push 0xd
mov eax, dword [ebp - 0x28]
push eax
call sub.user32.dll_SendMessageA
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x38]
call fcn.004055dc
mov eax, dword [ebp - 0x38]
call fcn.00402df4
cmp byte [ebp + 0x10], 0
je 0x4ecaa2
lea eax, [ebp - 0x1870]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.user32.dll_GetWindowRect
mov eax, dword [ebp - 0x186c]
add eax, 4
jno 0x4eca8b
call fcn.00403c1c
push eax
mov eax, dword [ebp - 0x1870]
add eax, 4
jno 0x4eca9c
call fcn.00403c1c
push eax
call sub.user32.dll_SetCursorPos
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ecad8
lea eax, [ebp - 0x1880]
mov edx, 4
call fcn.00404cac
lea eax, [ebp - 0x1860]
mov edx, dword [0x4def00]
call fcn.00405b40
ret