Function at 0x518c98
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 0x518cda
test eax, eax
je 0x518cd1
mov ecx, edi
call fcn.005190d9
jmp 0x518cd3
mov eax, esi
mov dword [ebx], eax
jmp 0x518ed3
cmp ecx, 0x100
jne 0x518d15
and dword [esp + 0x10], 0
cmp dword [edi + 0x20], 0
je 0x518cff
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x18]
push edx
push edi
call fcn.00519503
jmp 0x518d01
mov eax, esi
cmp dword [esp + 0x10], 0
mov dword [ebx], eax
je 0x518ed3
mov eax, esi
jmp 0x518f58
cmp ecx, 0x104
je 0x518ce2
cmp ecx, 0x102
jne 0x518d4a
xor ecx, ecx
cmp edx, 0xd
je 0x518d42
cmp edx, 9
je 0x518d42
cmp edx, 0x1b
je 0x518d42
cmp edx, 0xa
jbe 0x518d3e
mov dword [edi + 0x34], esi
mov eax, esi
jmp 0x518d46
mov ecx, esi
xor eax, eax
test ecx, ecx
jmp 0x518d06
cmp ecx, 7
jne 0x518d93
mov eax, dword [edi + 0x28]
cmp dword [eax - 0xc], 0
lea esi, [edi + 0x18]
mov eax, dword [esi]
push 0xffffffffffffffff
jle 0x518d63
push 0
jmp 0x518d65
push 0xffffffffffffffff
push esi
call dword [eax + 0x30]
mov ecx, dword [edi + 0x20]
test ecx, ecx
je 0x518d7d
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 0x518ed3
cmp ecx, 8
jne 0x518dd6
mov ecx, dword [edi + 0x20]
test ecx, ecx
je 0x518daa
push dword [esp + 0x14]
mov eax, dword [ecx]
push edx
push edi
call dword [eax + 8]
mov eax, dword [edi + 0xc]
push dword [0x6bee14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x94]
test al, al
je 0x518dca
mov esi, edi
call fcn.00519780
xor esi, esi
inc esi
call fcn.004b8dc2
mov dword [ebx], esi
jmp 0x518ed3
cmp ecx, 0x14
jne 0x518de2
mov dword [ebx], esi
jmp 0x518d0e
cmp ecx, 0x7b
jne 0x518df2
add edi, 0x18
mov eax, dword [edi]
push edi
call dword [eax + 0x50]
jmp 0x518ddb
cmp ecx, 0x205
jne 0x518e1d
call dword [sym.imp.USER32.dll_GetFocus]
cmp dword [edi + 0x1c], eax
je 0x518dcf
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 0x518dcf
cmp ecx, 0x201
jne 0x518e3c
push dword [esp + 0x14]
lea eax, [esp + 0x14]
push edx
mov dword [esp + 0x18], esi
call fcn.005195f0
jmp 0x518d01
cmp ecx, 0x202
jne 0x518e8a
call fcn.00461215
mov esi, eax
call fcn.004684ba
test eax, eax
je 0x518e69
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 0x518e82
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 0x518d8b
cmp ecx, 0x200
jne 0x518ebb
call fcn.00461215
mov esi, eax
call fcn.004684ba
test eax, eax
je 0x518e82
xor eax, eax
cmp dword [edi + 0x68], eax
je 0x518e82
push eax
push eax
push 0x48f
push dword [edi + 0x1c]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x518e82
cmp ecx, 5
jne 0x518ed3
cmp dword [edi + 0x6c], 0
jne 0x518ed0
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 [0x6bbe40]
jne 0x518eed
push dword [ebp + 0x14]
call fcn.00519382
mov dword [ebx], eax
jmp 0x518d0e
cmp ecx, dword [0x6bbe44]
jne 0x518eff
push dword [ebp + 0x14]
call fcn.005193fe
jmp 0x518ee6
cmp ecx, 0x48f
jne 0x518f35
call fcn.00461215
mov esi, eax
call fcn.004684ba
test eax, eax
je 0x518f2d
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 0x518f58
cmp ecx, 0x302
jne 0x518f61
push dword [edi + 0x1c]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x518f52
push edi
call fcn.00519663
jmp 0x518f54
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 0x518f8d
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x18]
mov dword [esp + 0x18], esi
push dword [ebp + 0x14]
push edi
call fcn.00519272
cmp dword [esp + 0x10], 0
mov dword [ebx], eax
je 0x518f56
jmp 0x518d0e
cmp ecx, 2
jne 0x518fc0
call fcn.00411356
cmp dword [eax], 5
jl 0x518fbc
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 0x518fbc
push dword [edi + 0x1c]
call eax
mov dword [ebx], esi
jmp 0x518f56
cmp ecx, 0x203
jne 0x518fd6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 0x40], eax
and dword [ebx], 0
jmp 0x518f56
mov eax, 0x10d
cmp ecx, eax
jne 0x51900d
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.00519fec
cmp dword [esp + 0x10], 0
mov dword [ebx], eax
je 0x518f56
jmp 0x518f30
cmp ecx, 0x2111
jne 0x518f56
mov eax, dword [ebp + 0x14]
shr eax, 0x10
mov ecx, 0x300
cmp cx, ax
jne 0x518f56
xor eax, eax
cmp dword [edi + 0x30], eax
jne 0x518ee6
mov esi, edi
call fcn.00519457
xor esi, esi
inc esi
jmp 0x518ee6