Function at 0x51f690
Capabilities:
Open clipboard

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 0x18]
mov dword [esp + 0x10], esi
xor esi, esi
push edi
mov edi, dword [ebp + 8]
inc esi
mov dword [edi + 0x1c], eax
cmp ecx, esi
jne 0x51f6d2
test eax, eax
je 0x51f6c9
mov ecx, edi
call fcn.0051fad1
jmp 0x51f6cb
mov eax, esi
mov dword [ebx], eax
jmp 0x51f8cb
cmp ecx, 0x100
jne 0x51f70d
and dword [esp + 0x10], 0
cmp dword [edi + 0x20], 0
je 0x51f6f7
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x18]
push edx
push edi
call fcn.0051fefb
jmp 0x51f6f9
mov eax, esi
cmp dword [esp + 0x10], 0
mov dword [ebx], eax
je 0x51f8cb
mov eax, esi
jmp 0x51f950
cmp ecx, 0x104
je 0x51f6da
cmp ecx, 0x102
jne 0x51f742
xor ecx, ecx
cmp edx, 0xd
je 0x51f73a
cmp edx, 9
je 0x51f73a
cmp edx, 0x1b
je 0x51f73a
cmp edx, 0xa
jbe 0x51f736
mov dword [edi + 0x34], esi
mov eax, esi
jmp 0x51f73e
mov ecx, esi
xor eax, eax
test ecx, ecx
jmp 0x51f6fe
cmp ecx, 7
jne 0x51f78b
mov eax, dword [edi + 0x28]
cmp dword [eax - 0xc], 0
lea esi, [edi + 0x18]
mov eax, dword [esi]
push 0xffffffffffffffff
jle 0x51f75b
push 0
jmp 0x51f75d
push 0xffffffffffffffff
push esi
call dword [eax + 0x30]
mov ecx, dword [edi + 0x20]
test ecx, ecx
je 0x51f775
push dword [esp + 0x14]
mov eax, dword [ecx]
push dword [ebp + 0x14]
push edi
call dword [eax + 4]
mov eax, dword [esi]
push 1
push esi
call dword [eax + 0x48]
mov dword [ebx], 1
xor esi, esi
inc esi
jmp 0x51f8cb
cmp ecx, 8
jne 0x51f7ce
mov ecx, dword [edi + 0x20]
test ecx, ecx
je 0x51f7a2
push dword [esp + 0x14]
mov eax, dword [ecx]
push edx
push edi
call dword [eax + 8]
mov eax, dword [edi + 0xc]
push dword [0x6d4564]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x94]
test al, al
je 0x51f7c2
mov esi, edi
call fcn.00520178
xor esi, esi
inc esi
call fcn.004bca58
mov dword [ebx], esi
jmp 0x51f8cb
cmp ecx, 0x14
jne 0x51f7da
mov dword [ebx], esi
jmp 0x51f706
cmp ecx, 0x7b
jne 0x51f7ea
add edi, 0x18
mov eax, dword [edi]
push edi
call dword [eax + 0x50]
jmp 0x51f7d3
cmp ecx, 0x205
jne 0x51f815
call dword [sym.imp.USER32.dll_GetFocus]
cmp dword [edi + 0x1c], eax
je 0x51f7c7
lea esi, [edi + 0x18]
mov eax, dword [esi]
push esi
call dword [eax + 0x20]
mov eax, dword [esi]
push 0xffffffffffffffff
push 0
push esi
call dword [eax + 0x30]
xor esi, esi
inc esi
jmp 0x51f7c7
cmp ecx, 0x201
jne 0x51f834
push dword [esp + 0x14]
lea eax, [esp + 0x14]
push edx
mov dword [esp + 0x18], esi
call fcn.0051ffe8
jmp 0x51f6f9
cmp ecx, 0x202
jne 0x51f882
call fcn.004626fc
mov esi, eax
call fcn.0046996a
test eax, eax
je 0x51f861
xor eax, eax
push eax
push eax
push 0x48f
push dword [edi + 0x1c]
mov dword [edi + 0x68], eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [edi + 0x20]
test ecx, ecx
je 0x51f87a
push dword [esp + 0x14]
mov eax, dword [ecx]
push dword [ebp + 0x14]
push 0x202
push edi
call dword [eax + 0x14]
and dword [ebx], 0
jmp 0x51f783
cmp ecx, 0x200
jne 0x51f8b3
call fcn.004626fc
mov esi, eax
call fcn.0046996a
test eax, eax
je 0x51f87a
xor eax, eax
cmp dword [edi + 0x68], eax
je 0x51f87a
push eax
push eax
push 0x48f
push dword [edi + 0x1c]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x51f87a
cmp ecx, 5
jne 0x51f8cb
cmp dword [edi + 0x6c], 0
jne 0x51f8c8
lea eax, [edi + 0x18]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x48]
and dword [ebx], 0
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [0x6d0ff0]
jne 0x51f8e5
push dword [ebp + 0x14]
call fcn.0051fd7a
mov dword [ebx], eax
jmp 0x51f706
cmp ecx, dword [0x6d0ff4]
jne 0x51f8f7
push dword [ebp + 0x14]
call fcn.0051fdf6
jmp 0x51f8de
cmp ecx, 0x48f
jne 0x51f92d
call fcn.004626fc
mov esi, eax
call fcn.0046996a
test eax, eax
je 0x51f925
push 0
push 0
push dword [edi + 0x1c]
call dword [sym.imp.USER32.dll_InvalidateRect]
push dword [edi + 0x1c]
call dword [sym.imp.USER32.dll_UpdateWindow]
and dword [ebx], 0
xor eax, eax
inc eax
jmp 0x51f950
cmp ecx, 0x302
jne 0x51f959
push dword [edi + 0x1c]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x51f94a
push edi
call fcn.0052005b
jmp 0x51f94c
xor eax, eax
mov dword [ebx], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp ecx, 0x240
jne 0x51f985
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x18]
mov dword [esp + 0x18], esi
push dword [ebp + 0x14]
push edi
call fcn.0051fc6a
cmp dword [esp + 0x10], 0
mov dword [ebx], eax
je 0x51f94e
jmp 0x51f706
cmp ecx, 2
jne 0x51f9b8
call fcn.00411377
cmp dword [eax], 5
jl 0x51f9b4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.UnregisterTouchWindow
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x51f9b4
push dword [edi + 0x1c]
call eax
mov dword [ebx], esi
jmp 0x51f94e
cmp ecx, 0x203
jne 0x51f9ce
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 0x40], eax
and dword [ebx], 0
jmp 0x51f94e
mov eax, 0x10d
cmp ecx, eax
jne 0x51fa05
lea ecx, [esp + 0x10]
push ecx
push dword [esp + 0x18]
mov esi, edi
push dword [ebp + 0x14]
mov dword [esp + 0x1c], 1
push eax
call fcn.00520979
cmp dword [esp + 0x10], 0
mov dword [ebx], eax
je 0x51f94e
jmp 0x51f928
cmp ecx, 0x2111
jne 0x51f94e
mov eax, dword [ebp + 0x14]
shr eax, 0x10
mov ecx, 0x300
cmp cx, ax
jne 0x51f94e
xor eax, eax
cmp dword [edi + 0x30], eax
jne 0x51f8de
mov esi, edi
call fcn.0051fe4f
xor esi, esi
inc esi
jmp 0x51f8de