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

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
call sub.MFC42.DLL_CWnd::FromHandle
mov ecx, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0xba
push ecx
mov ebx, eax
call edi
mov ebp, eax
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
push edx
push eax
mov ecx, esi
mov dword [esp + 0x20], ebp
call fcn.00539a10
mov ecx, dword [esp + 0x10]
cmp ecx, ebp
jg 0x53a0a2
mov eax, dword [esi + 0x70]
dec ecx
push eax
push ecx
mov word [eax], 0xc8
mov ecx, dword [esi + 0x20]
push 0xc4
push ecx
call edi
test ebx, ebx
mov dword [esp + 0x1c], eax
je 0x539b54
mov ebx, dword [ebx + 0x20]
mov ebp, dword [esp + 0x24]
cmp dword [ebp + 4], 0x100
jne 0x539cc1
cmp dword [ebp + 8], 0x70
jne 0x539ba1
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x539ba1
mov eax, dword [esi + 0x40]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
mov eax, dword [esi + 0x44]
lea ecx, [eax + edx*4]
push ecx
push 0x70
push 0x100
push ebx
call edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret 4
cmp dword [ebp + 4], 0x100
jne 0x539cc1
cmp dword [ebp + 8], 0x59
jne 0x539bea
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x539bea
mov eax, dword [esi + 0x40]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
mov eax, dword [esi + 0x44]
lea ecx, [eax + edx*4]
push ecx
push 0x59
push 0x100
push ebx
call edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret 4
cmp dword [ebp + 4], 0x100
jne 0x539cc1
cmp dword [ebp + 8], 0x4e
jne 0x539c33
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x539c33
mov eax, dword [esi + 0x40]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
mov eax, dword [esi + 0x44]
lea ecx, [eax + edx*4]
push ecx
push 0x4e
push 0x100
push ebx
call edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret 4
cmp dword [ebp + 4], 0x100
jne 0x539cc1
cmp dword [ebp + 8], 0x53
jne 0x539c7c
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x539c7c
mov eax, dword [esi + 0x40]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
mov eax, dword [esi + 0x44]
lea ecx, [eax + edx*4]
push ecx
push 0x53
push 0x100
push ebx
call edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret 4
cmp dword [ebp + 4], 0x100
jne 0x539cc1
cmp dword [ebp + 8], 0x57
jne 0x539cc1
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x539cc1
mov eax, dword [esi + 0x40]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
mov eax, dword [esi + 0x44]
lea ecx, [eax + edx*4]
push ecx
push 0x57
push 0x100
push ebx
call edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret 4
mov eax, dword [ebp + 4]
cmp eax, 0x100
jne 0x539e2c
cmp dword [ebp + 8], 0x73
jne 0x539cfe
mov eax, dword [esi + 0x40]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
mov eax, dword [esi + 0x44]
lea ecx, [eax + edx*4]
push ecx
push 0x73
push 0x100
push ebx
call edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret 4
cmp eax, 0x100
jne 0x539e2c
cmp dword [ebp + 8], 0x75
jne 0x539d3f
cmp dword [esi + 0x44], 2
jne 0x539d3f
mov esi, dword [esi + 0x40]
lea eax, [esi + esi*4]
lea edx, [eax + eax*4]
lea eax, [edx*4 + 2]
push eax
push 0x75
push 0x100
push ebx
call edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret 4
cmp eax, 0x100
jne 0x539e2c
cmp dword [ebp + 8], 9
jne 0x539d79
mov eax, dword [esi + 0x40]
mov edx, dword [esi + 0x44]
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*4]
push eax
push 9
push 0x100
push ebx
call edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret 4
cmp eax, 0x100
jne 0x539e2c
cmp dword [ebp + 8], 0x76
jne 0x539db3
mov eax, dword [esi + 0x40]
mov edx, dword [esi + 0x44]
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*4]
push eax
push 0x76
push 0x100
push ebx
call edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret 4
cmp eax, 0x100
jne 0x539e2c
cmp dword [ebp + 8], 0x72
jne 0x539de9
mov eax, dword [esi + 0x40]
mov edx, dword [esi + 0x44]
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*4]
push eax
push 0x72
push 0x100
push ebx
call edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret 4
cmp eax, 0x100
jne 0x539e2c
cmp dword [ebp + 8], 0x42
jne 0x539e2c
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x539e2c
mov eax, dword [esi + 0x40]
mov edx, dword [esi + 0x44]
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*4]
push eax
push 0x42
push 0x100
push ebx
call edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret 4
cmp dword [ebp + 4], 0x100
jne 0x539eba
cmp dword [ebp + 8], 0x24
jne 0x539e75
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x539e75
mov eax, dword [esi + 0x40]
mov edx, dword [esi + 0x44]
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*4]
push eax
push 0x24
push 0x100
push ebx
call edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret 4
cmp dword [ebp + 4], 0x100
jne 0x539eba
cmp dword [ebp + 8], 0x23
jne 0x539eba
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x539eba
mov eax, dword [esi + 0x40]
mov edx, dword [esi + 0x44]
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*4]
push eax
push 0x23
push 0x100
push ebx
call edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret 4
mov eax, dword [ebp + 4]
cmp eax, 0x100
jne 0x53a0a2
cmp dword [ebp + 8], 0xd
jne 0x539ef7
mov eax, dword [esi + 0x40]
mov edx, dword [esi + 0x44]
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*4]
push eax
push 0xd
push 0x100
push ebx
call edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret 4
cmp eax, 0x100
jne 0x53a0a2
cmp dword [ebp + 8], 0x27
jne 0x539f52
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
dec ecx
cmp ecx, eax
jl 0x53a0a2
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
cmp eax, edx
jl 0x53a0a2
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x44]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea edx, [ecx + eax*4]
push edx
push 0x27
push 0x100
push ebx
call edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret 4
cmp eax, 0x100
jne 0x53a0a2
cmp dword [ebp + 8], 0x25
jne 0x539fa4
mov eax, dword [esp + 0x14]
mov ebp, 1
cmp eax, ebp
jne 0x53a0a2
cmp dword [esp + 0x10], ebp
jne 0x53a0a2
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x44]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea edx, [ecx + eax*4]
push edx
push 0x25
push 0x100
push ebx
call edi
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
cmp eax, 0x100
jne 0x53a0a2
cmp dword [ebp + 8], 0x26
jne 0x539fec
mov eax, dword [esp + 0x10]
mov ebp, 1
cmp eax, ebp
jne 0x53a0a2
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x44]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea edx, [ecx + eax*4]
push edx
push 0x26
push 0x100
push ebx
call edi
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
cmp eax, 0x100
jne 0x53a0a2
cmp dword [ebp + 8], 0x28
jne 0x53a036
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
cmp ecx, eax
jl 0x53a0a2
mov eax, dword [esi + 0x40]
mov edx, dword [esi + 0x44]
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*4]
push eax
push 0x28
push 0x100
push ebx
call edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret 4
cmp eax, 0x100
jne 0x53a0a2
cmp dword [ebp + 8], 0x22
jne 0x53a06c
mov eax, dword [esi + 0x40]
mov edx, dword [esi + 0x44]
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*4]
push eax
push 0x22
push 0x100
push ebx
call edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret 4
cmp eax, 0x100
jne 0x53a0a2
cmp dword [ebp + 8], 0x21
jne 0x53a0a2
mov eax, dword [esi + 0x40]
mov edx, dword [esi + 0x44]
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*4]
push eax
push 0x21
push 0x100
push ebx
call edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 4