Function at 0x51e420
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a3b7e
mov eax, dword fs:[0]
push eax
sub esp, 0x1d8
mov eax, dword [0x6340c4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x140], ebx
lea ecx, [ebp - 0x114]
call fcn.005734f0
mov dword [ebp - 4], 0
mov esi, dword [0x634ba0]
mov dword [ebp - 0x144], esi
push 0x670f88
mov byte [ebp - 4], 1
call fcn.00443fb0
mov edx, eax
mov dword [ebp - 0xd4], 0
mov ecx, edx
mov dword [ebp - 0xd0], 7
xor eax, eax
mov word [ebp - 0xe4], ax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x51e4a6
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xe4]
call fcn.004459d0
lea eax, [ebx + 0x44]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x114]
call fcn.00443fb0
mov edx, eax
mov dword [ebp - 0xbc], 0
mov ecx, edx
mov dword [ebp - 0xb8], 7
xor eax, eax
mov word [ebp - 0xcc], ax
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x51e500
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xcc]
call fcn.004459d0
lea eax, [ebx + 0x5c]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x114]
call fcn.00443fb0
mov edx, eax
mov dword [ebp - 0xa4], 0
mov ecx, edx
mov dword [ebp - 0xa0], 7
xor eax, eax
mov word [ebp - 0xb4], ax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x51e553
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xb4]
call fcn.004459d0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x84]
push 0xa
xor eax, eax
mov dword [ebp - 0x74], 0
push 0x5e4ba4
mov dword [ebp - 0x70], 7
mov word [ebp - 0x84], ax
call fcn.004459d0
xor eax, eax
mov byte [ebp - 4], 5
push eax
push 0x5d90f0
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 7
mov word [ebp - 0x9c], ax
call fcn.004459d0
mov byte [ebp - 4], 6
cmp dword [ebp - 0x8c], 0
je 0x51e634
push 2
push 0x5e289c
lea ecx, [ebp - 0x84]
call fcn.00447e80
cmp dword [ebp - 0x88], 8
lea edx, [ebp - 0x9c]
cmovae edx, dword [ebp - 0x9c]
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x51e606
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x84]
call fcn.00447e80
push 1
push 0x5e2898
lea ecx, [ebp - 0x84]
call fcn.00447e80
push 0
call fcn.004d6eec
mov dword [ebp - 0x16c], eax
lea eax, [ebp - 0x16c]
push eax
lea eax, [ebp - 0x138]
mov dword [ebp - 0x168], edx
push eax
call fcn.004d52f1
add esp, 0xc
or ebx, 0xffffffff
test eax, eax
jne 0x51ed68
push 0x40
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.004c76f0
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x54]
push 0x40
push eax
call fcn.004d8b19
add esp, 0x18
test eax, eax
jne 0x51ed68
lea eax, [ebp - 0x54]
push eax
call fcn.004d40c0
add esp, 4
lea edi, [eax + 1]
cmp edi, 0x3fffffff
jg 0x51e6d5
lea eax, [edi + edi]
call fcn.004c6740
mov esi, esp
test esi, esi
je 0x51e6d5
push edi
push esi
xor eax, eax
push ebx
mov word [esi], ax
lea eax, [ebp - 0x54]
push eax
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ecx, ecx
test eax, eax
cmove esi, ecx
jmp 0x51e6d7
xor esi, esi
mov ecx, esi
mov dword [ebp - 0x5c], 0
xor eax, eax
mov dword [ebp - 0x58], 7
mov word [ebp - 0x6c], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x51e6f0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x6c]
call fcn.004459d0
mov byte [ebp - 4], 7
xor edx, edx
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0xec], 0
mov dword [ebp - 0xe8], 7
mov word [ebp - 0xfc], dx
lea ecx, [eax - 1]
cmp eax, ecx
cmovb ecx, eax
cmp dword [ebp - 0x58], 8
lea eax, [ebp - 0x6c]
cmovae eax, dword [ebp - 0x6c]
push ecx
push eax
lea ecx, [ebp - 0xfc]
call fcn.004459d0
mov eax, dword [ebp - 0x58]
cmp eax, 8
jb 0x51e768
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x6c]
call fcn.00446620
add esp, 8
xor eax, eax
mov dword [ebp - 0x5c], 0
mov word [ebp - 0x6c], ax
lea eax, [ebp - 0xfc]
push 0x18
push eax
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x58], 7
push eax
call fcn.004c7170
cmp dword [ebp - 0x58], 8
lea edi, [ebp - 0x6c]
lea esi, [ebp - 0xb4]
cmovae edi, dword [ebp - 0x6c]
lea edx, [ebp - 0xcc]
cmp dword [ebp - 0xa0], 8
lea ecx, [ebp - 0x84]
push edi
cmovae esi, dword [ebp - 0xb4]
lea eax, [ebp - 0xe4]
cmp dword [ebp - 0xb8], 8
push esi
cmovae edx, dword [ebp - 0xcc]
cmp dword [ebp - 0x70], 8
push edx
cmovae ecx, dword [ebp - 0x84]
cmp dword [ebp - 0xd0], 8
push ecx
cmovae eax, dword [ebp - 0xe4]
push eax
lea eax, [ebp - 0x144]
push str._s__s__s__s_r_n__s__r_n_r_n
push eax
call fcn.00477f10
mov esi, dword [ebp - 0x140]
add esp, 0x28
push 0
push 0
push 0x101f
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x1200
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x160], eax
test eax, eax
jle 0x51ed30
xor edi, edi
mov dword [ebp - 0x15c], 0xffffffff
push edi
push edi
push 0x1004
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 2
push 0xffffffffffffffff
push 0x100c
push dword [esi + 4]
mov dword [ebp - 0x14c], eax
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
push edi
push 0x10af
push dword [esi + 4]
mov ebx, eax
mov dword [ebp - 0x148], ebx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp ebx, 0xffffffff
je 0x51e891
mov cl, byte [ebp + 8]
test cl, cl
je 0x51e8a0
test eax, eax
jne 0x51e8a0
mov byte [ebp + 8], 1
xor ebx, ebx
mov cl, byte [ebp + 8]
mov dword [ebp - 0x148], ebx
mov eax, dword [ebp - 0x14c]
inc edi
mov dword [ebp - 0x158], edi
cmp ebx, eax
jge 0x51ec90
lea eax, [ebp - 0x1e4]
mov dword [ebp - 0x1ac], 0
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x1e0], ebx
push 0
push 0x104b
push dword [esi + 4]
movlpd qword [ebp - 0x1dc], xmm0
movlpd qword [ebp - 0x1d4], xmm0
movlpd qword [ebp - 0x1cc], xmm0
movlpd qword [ebp - 0x1c4], xmm0
movlpd qword [ebp - 0x1bc], xmm0
movlpd qword [ebp - 0x1b4], xmm0
mov dword [ebp - 0x1e4], 4
call dword [sym.imp.USER32.dll_SendMessageW]
xor edi, edi
test eax, eax
cmovne edi, dword [ebp - 0x1c4]
cmp dword [ebp - 0x15c], edi
je 0x51e9be
lea ecx, [ebp - 0x154]
mov eax, edi
push ecx
lea ecx, [ebp - 0xf0]
mov dword [ebp - 0x15c], eax
push ecx
lea ecx, [esi + 0x24]
mov dword [ebp - 0x154], eax
call fcn.004469b0
mov esi, dword [ebp - 0xe8]
cmp byte [esi + 0xd], 0
jne 0x51e96d
cmp edi, dword [esi + 0x10]
jl 0x51e96d
mov eax, dword [ebp - 0x140]
jmp 0x51e976
mov eax, dword [ebp - 0x140]
mov esi, dword [eax + 0x24]
cmp esi, dword [eax + 0x24]
je 0x51e9be
add esi, 0x14
cmp dword [esi + 0x14], 8
jb 0x51e986
mov esi, dword [esi]
test esi, esi
jne 0x51e98e
xor eax, eax
jmp 0x51e995
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push eax
lea ecx, [ebp - 0x144]
call fcn.004784d0
push 0x5e49a4
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x5e49a4
push eax
lea ecx, [ebp - 0x144]
call fcn.004784d0
mov esi, dword [0x634ba0]
mov dword [ebp - 0x13c], esi
mov dword [ebp - 0x150], esi
xor eax, eax
mov byte [ebp - 4], 9
mov dword [ebp - 0x154], eax
nop dword [eax]
xorps xmm0, xmm0
mov dword [ebp - 0x1a0], eax
movlpd qword [ebp - 0x1a8], xmm0
movlpd qword [ebp - 0x19c], xmm0
movlpd qword [ebp - 0x194], xmm0
movlpd qword [ebp - 0x18c], xmm0
movlpd qword [ebp - 0x184], xmm0
movlpd qword [ebp - 0x17c], xmm0
movlpd qword [ebp - 0x174], xmm0
cmp dword [esi - 8], 0
je 0x51ea6d
cmp dword [esi - 0xc], 0
lea ecx, [esi - 0xc]
jl 0x51ea5d
add esi, 0xfffffff4
cmp esi, 0x634ba4
je 0x51ea6d
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x51ea50
push ecx
call fcn.004c59d6
add esp, 4
mov eax, dword [0x634ba0]
mov dword [ebp - 0x13c], eax
jmp 0x51ea6d
push 0x5d90f0
lea ecx, [ebp - 0x13c]
call fcn.004435e0
mov esi, 0x100
push esi
lea ecx, [ebp - 0x13c]
mov dword [ebp - 0x190], esi
call fcn.00443930
test eax, eax
je 0x51eac5
mov eax, dword [ebp - 0x13c]
lea edi, [esi + esi]
xor ecx, ecx
mov dword [eax - 8], esi
mov word [edi + eax], cx
mov dword [ebp - 0x194], eax
lea eax, [ebp - 0x1a8]
push eax
mov eax, dword [ebp - 0x140]
push ebx
push 0x1073
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
dec esi
cmp eax, esi
jl 0x51eacf
mov esi, edi
jmp 0x51ea72
mov dword [ebp - 0x194], 0
push ecx
lea ecx, [ebp - 0x13c]
call fcn.00443a40
mov esi, dword [ebp - 0x13c]
cmp dword [esi - 8], 0
jne 0x51ebbe
push 0x5e4b9c
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp dword [esi - 0xc], 1
lea ecx, [esi - 0xc]
mov ebx, eax
jg 0x51eb06
cmp ebx, dword [esi - 4]
jle 0x51eb47
add esi, 0xfffffff4
cmp esi, 0x634ba4
je 0x51eb31
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x51eb26
push ecx
call fcn.004c59d6
add esp, 4
mov eax, dword [0x634ba0]
mov dword [ebp - 0x13c], eax
push ebx
lea ecx, [ebp - 0x13c]
call fcn.00443b60
mov esi, dword [ebp - 0x13c]
test eax, eax
je 0x51ebb8
lea edi, [ebx + ebx]
lea eax, [edi + 2]
test edi, edi
jne 0x51eb55
xor eax, eax
jmp 0x51eba6
test esi, esi
jne 0x51eb6e
call fcn.004d1078
mov dword [eax], 0x16
call fcn.004d0f8f
lea eax, [esi + 0x16]
jmp 0x51eba6
cmp eax, edi
jb 0x51eb85
push edi
push 0x5e4b9c
push esi
call fcn.004c7170
add esp, 0xc
xor eax, eax
jmp 0x51eba6
push eax
push 0
push esi
call fcn.004c76f0
add esp, 0xc
call fcn.004d1078
mov dword [eax], 0x22
call fcn.004d0f8f
mov eax, 0x22
push eax
call fcn.00443050
add esp, 4
mov dword [esi - 8], ebx
xor eax, eax
mov word [edi + esi], ax
mov ebx, dword [ebp - 0x148]
push 0x5e4bbc
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x5e4bbc
push eax
lea ecx, [ebp - 0x150]
call fcn.004784d0
push esi
push dword [esi - 8]
lea ecx, [ebp - 0x150]
call fcn.004784d0
mov eax, dword [ebp - 0x154]
inc eax
mov dword [ebp - 0x154], eax
cmp eax, dword [ebp - 0x160]
jl 0x51e9e0
push 0x5e49a4
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x5e49a4
push eax
lea ecx, [ebp - 0x150]
call fcn.004784d0
mov edi, dword [ebp - 0x150]
lea ecx, [ebp - 0x144]
push edi
push dword [edi - 8]
call fcn.004784d0
lea eax, [edi - 0xc]
cmp eax, 0x634ba4
je 0x51ec55
add edi, 0xfffffff4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x51ec55
push edi
call fcn.004c59d6
add esp, 4
lea eax, [esi - 0xc]
mov byte [ebp - 4], 7
cmp eax, 0x634ba4
je 0x51ec7b
add esi, 0xfffffff4
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x51ec7b
push esi
call fcn.004c59d6
add esp, 4
mov esi, dword [ebp - 0x140]
mov edi, dword [ebp - 0x158]
mov eax, dword [ebp - 0x14c]
mov cl, byte [ebp + 8]
test cl, cl
je 0x51ec97
inc ebx
jmp 0x51ecb3
push 2
push ebx
push 0x100c
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov cl, byte [ebp + 8]
mov ebx, eax
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x148], ebx
cmp ebx, eax
jge 0x51ecc5
test ebx, ebx
jns 0x51e8a6
test edi, edi
je 0x51ed30
push dword [esi + 4]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x51ed30
mov esi, dword [ebp - 0x144]
mov eax, dword [esi - 8]
lea edi, [eax*2 + 2]
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
push esi
push eax
call fcn.004c7170
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x140]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_OpenClipboard]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push ebx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x51ed36
mov esi, dword [ebp - 0x144]
mov eax, dword [ebp - 0x58]
cmp eax, 8
jb 0x51ed51
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x6c]
call fcn.00446620
add esp, 8
xor eax, eax
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 7
or ebx, 0xffffffff
mov word [ebp - 0x6c], ax
mov eax, dword [ebp - 0x88]
cmp eax, 8
jb 0x51ed89
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x9c]
call fcn.00446620
add esp, 8
xor eax, eax
mov dword [ebp - 0x8c], 0
mov word [ebp - 0x9c], ax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x88], 7
cmp eax, 8
jb 0x51edc4
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x84]
call fcn.00446620
add esp, 8
xor eax, eax
mov dword [ebp - 0x74], 0
mov word [ebp - 0x84], ax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x70], 7
cmp eax, 8
jb 0x51edfc
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0xb4]
call fcn.00446620
add esp, 8
xor eax, eax
mov dword [ebp - 0xa4], 0
mov word [ebp - 0xb4], ax
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0xa0], 7
cmp eax, 8
jb 0x51ee3a
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0xcc]
call fcn.00446620
add esp, 8
xor eax, eax
mov dword [ebp - 0xbc], 0
mov word [ebp - 0xcc], ax
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0xb8], 7
cmp eax, 8
jb 0x51ee78
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0xe4]
call fcn.00446620
add esp, 8
xor eax, eax
mov dword [ebp - 0xd4], 0
mov word [ebp - 0xe4], ax
lea eax, [esi - 0xc]
mov dword [ebp - 0xd0], 7
cmp eax, 0x634ba4
je 0x51eeb4
add esi, 0xfffffff4
lock xadd dword [esi], ebx
dec ebx
test ebx, ebx
jg 0x51eeb4
push esi
call fcn.004c59d6
add esp, 4
lea ecx, [ebp - 0x114]
call fcn.005734b0
lea esp, [ebp - 0x1f4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004c59c5
mov esp, ebp
pop ebp
ret 4