Function at 0x50bb6c
Capabilities:
Log keystrokes via polling
Open clipboard

Disassembly:
mov eax, 0x57d6d4
call fcn.00570e3c
sub esp, 0x24
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x40]
mov ecx, ebx
call fcn.004ed05c
mov ecx, ebx
call fcn.00526c47
test eax, eax
je 0x50be92
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
test eax, eax
je 0x50be92
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x13c]
test eax, eax
jne 0x50be92
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetStyle
test ah, 8
jne 0x50be92
cmp dword [ebp + 8], 8
je 0x50bbd6
cmp dword [ebp + 0xc], 0
jne 0x50bbd6
push 0x29
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x50be92
push 0x11
mov dword [ebp - 0x14], 1
call dword [sym.imp.USER32.dll_GetKeyState]
push 0
push 0
push 0xb0
mov di, ax
push dword [esi + 0x20]
and edi, 0x8000
call dword [sym.imp.USER32.dll_SendMessageA]
movzx ecx, ax
mov dword [ebp - 0x20], ecx
mov ecx, ebx
shr eax, 0x10
mov dword [ebp - 0x1c], eax
call fcn.00569f97
mov edx, dword [eax]
push 0
push 2
mov ecx, eax
push dword [esi + 0x50]
push dword [esi + 0x4c]
call dword [edx + 0x2c8]
cmp dword [esi + 0xb8], 0
jne 0x50bc3b
lea ecx, [esi + 0xb4]
call sub.MFC42.DLL_CString::Empty
test edi, edi
je 0x50bce2
mov edi, dword [ebp + 8]
mov eax, edi
sub eax, 3
je 0x50bcc1
sub eax, 0x13
je 0x50bcb5
dec eax
dec eax
jne 0x50bc79
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
call dword [sym.imp.USER32.dll_EmptyClipboard]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x100]
and dword [ebp - 0x14], 0
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetStyle
test ah, 0x10
je 0x50bc8a
cmp edi, 0xd
je 0x50bca0
cmp edi, 0xa
jne 0x50be67
mov eax, dword [esi + 0x54]
test byte [eax + 0x18], 0x10
je 0x50be6c
push 0x5d3a6c
lea ecx, [esi + 0xb4]
call fcn.004ea8a0
jmp 0x50be7b
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xfc]
jmp 0x50bc75
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
call dword [sym.imp.USER32.dll_EmptyClipboard]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xf8]
jmp 0x50bc75
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_4
mov eax, dword [esi + 0x64]
and dword [ebp - 4], 0
mov dword [ebp - 0x18], eax
mov al, byte [esi + 0x68]
mov byte [ebp + 0xf], al
lea eax, [ebp + 0xf]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call fcn.004ec8eb
test eax, eax
je 0x50bd50
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
and ax, 0x3ff
cmp ax, 0x12
mov eax, dword [ebp - 0x18]
jne 0x50bd2d
test eax, eax
jne 0x50be59
mov dword [esi + 0x64], eax
mov al, byte [ebp + 0xf]
mov byte [esi + 0x68], al
mov eax, dword [ebp - 0x10]
cmp dword [eax - 8], 0
jne 0x50bd65
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
jmp 0x50be9d
cmp dword [ebp + 8], 0x20
jb 0x50be59
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::operator
lea edi, [esi + 0xb4]
lea eax, [ebp - 0x10]
push eax
mov ecx, edi
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString_4
lea eax, [ebp + 8]
mov ecx, esi
push eax
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CWnd::GetWindowTextA
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x50bda1
push edi
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::operator_1
jmp 0x50be23
push dword [ebp - 0x1c]
lea eax, [ebp - 0x30]
lea ecx, [ebp + 8]
push eax
call sub.MFC42.DLL_CString::Mid_1
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x20]
lea eax, [ebp - 0x2c]
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
push eax
call sub.MFC42.DLL_CString::Left
push edi
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
call sub.MFC42.DLL_operator
push dword [ebp - 0x1c]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x24]
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebx]
lea ecx, [ebp + 8]
push ecx
mov ecx, ebx
call dword [eax + 0x174]
test eax, eax
jne 0x50be49
mov eax, dword [edi]
mov edx, dword [ebx]
push eax
mov ecx, ebx
call dword [edx + 0x17c]
mov ecx, edi
call sub.MFC42.DLL_CString::Empty
and dword [ebp - 0x14], 0
and byte [ebp - 4], 0
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
jmp 0x50be7b
cmp edi, 0xd
jne 0x50be7b
lea ecx, [esi + 0xb4]
call sub.MFC42.DLL_CString::Empty
and dword [ebp - 0x14], 0
xor eax, eax
cmp dword [ebp - 0x14], eax
je 0x50be9f
mov ecx, dword [esi + 0xb4]
cmp dword [ecx - 8], eax
jne 0x50be9f
push 1
pop eax
jmp 0x50be9f
lea ecx, [esi + 0xb4]
call sub.MFC42.DLL_CString::Empty
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc