Function at 0x484b50
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d89ab
mov eax, dword fs:[0]
push eax
mov eax, 0x294c
mov dword fs:[0], esp
call fcn.004ca2e0
push ebx
push esi
xor eax, eax
cmp byte [ebp + 0x20], 0xff
push edi
mov edi, ecx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], eax
jne 0x484b97
mov ecx, dword [0x52fe30]
mov dl, byte [ecx + 0x1257]
mov byte [ebp + 0x20], dl
cmp dword [edi], 1
jne 0x484c22
mov eax, dword [edi + 0x1b3c]
mov edx, dword [ebp + 0x14]
mov esi, dword [edi + 0x1b38]
mov ecx, dword [edi + 0x1b48]
mov ebx, dword [edi + 0x1b44]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x10]
push edx
push eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x34], ecx
call fcn.00425040
add esp, 8
push 0
push 1
push eax
lea ecx, [ebp + 0x14]
push ecx
mov ecx, edi
call fcn.0047ba40
movsx edx, word [ebp + 0x14]
mov ecx, dword [ebp + 0x1c]
movsx eax, word [ebp + 0x16]
mov dword [ebp + 0x10], edx
mov edx, dword [ebp + 0x18]
push ecx
push edx
mov dword [ebp + 0x14], eax
call fcn.00425040
add esp, 8
push 0
push 1
push eax
lea eax, [ebp + 0x18]
push eax
mov ecx, edi
call fcn.0047ba40
mov eax, dword [eax]
movsx ecx, ax
shr eax, 0x10
movsx edx, ax
mov dword [ebp + 0x18], ecx
mov dword [ebp + 0x1c], edx
jmp 0x484c4d
mov esi, dword [edi + 0x1bb4]
cmp esi, eax
je 0x485613
movsx eax, word [edi + 0x1baa]
mov ecx, dword [edi + 0x1bb8]
movsx ebx, word [edi + 0x1ba8]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x28], ecx
test esi, esi
je 0x485613
test ebx, ebx
je 0x48562c
cmp dword [ebp - 0x34], 0
je 0x48562c
mov ecx, dword [edi + 0x50]
push 0
call fcn.0048f6a0
mov ecx, dword [0x52fe30]
push eax
call fcn.0044e860
mov esi, eax
test esi, esi
jne 0x484c98
push eax
push 0x1045
push str.RealBuffer.cpp
push str.pApp_NULL
jmp 0x485624
mov ecx, esi
call fcn.0047adc0
mov ecx, esi
mov byte [ebp - 0x15], al
call fcn.0047ad90
mov ecx, esi
mov byte [ebp - 0xd], al
call fcn.0047ad30
mov ecx, esi
mov byte [ebp - 0x21], al
call fcn.0047ad60
mov byte [ebp - 0x16], al
mov edx, 0x2591
mov word [ebp - 0x94], dx
mov eax, 0x2592
mov word [ebp - 0x92], ax
mov ecx, 0x2593
mov word [ebp - 0x90], cx
mov edx, 0x2588
mov word [ebp - 0x8e], dx
mov eax, 0x25b2
mov word [ebp - 0x8c], ax
mov ecx, 0x25bc
mov word [ebp - 0x8a], cx
mov edx, 0x25c4
mov word [ebp - 0x88], dx
mov eax, 0x25ba
mov word [ebp - 0x86], ax
mov ecx, 0x2191
mov word [ebp - 0x84], cx
mov edx, 0x2193
mov word [ebp - 0x82], dx
mov eax, 0x2551
mov word [ebp - 0x80], ax
mov ecx, 0x2502
mov word [ebp - 0x7e], cx
mov edx, 0x2554
mov word [ebp - 0x7c], dx
mov eax, 0x2557
mov word [ebp - 0x7a], ax
mov ecx, 0x255a
mov word [ebp - 0x78], cx
mov edx, 0x255d
mov word [ebp - 0x76], dx
mov eax, 0x250c
mov word [ebp - 0x74], ax
mov ecx, 0x2510
mov word [ebp - 0x72], cx
mov edx, 0x2514
mov word [ebp - 0x70], dx
mov eax, 0x2518
mov word [ebp - 0x6e], ax
mov ecx, 0x2564
mov word [ebp - 0x6c], cx
mov edx, 0x2567
mov word [ebp - 0x6a], dx
mov eax, 0x2566
mov word [ebp - 0x68], ax
mov ecx, 0x2569
mov edx, 0x252c
mov word [ebp - 0x66], cx
mov word [ebp - 0x64], dx
mov eax, 0x2534
mov word [ebp - 0x62], ax
mov ecx, 0x2565
mov edx, 0x2568
mov word [ebp - 0x60], cx
mov word [ebp - 0x5e], dx
mov eax, 0x2560
mov ecx, 0x2563
mov edx, 0x255f
mov word [ebp - 0x5c], ax
mov eax, 0x2562
mov word [ebp - 0x5a], cx
mov word [ebp - 0x58], dx
mov ecx, 0x251c
mov edx, 0x2524
mov word [ebp - 0x56], ax
mov word [ebp - 0x54], cx
mov word [ebp - 0x52], dx
mov eax, 0x2550
mov ecx, 0x2500
mov word [ebp - 0x4e], cx
mov ecx, dword [ebp + 0x1c]
sub ecx, dword [ebp + 0x14]
mov word [ebp - 0x50], ax
imul ecx, ebx
add ecx, dword [ebp + 0x18]
xor eax, eax
cmp dword [ebp + 0x10], ecx
mov edx, 0x256c
mov word [ebp - 0x4c], dx
mov word [ebp - 0x4a], ax
jle 0x484e57
push eax
push 0x105d
push str.RealBuffer.cpp
push str.srSelection_X1____srSelection_X2_srSelection_Y2_srSelection_Y1_nTextWidth_
jmp 0x485624
mov ecx, dword [ebp + 0x1c]
push 2
lea edx, [ebp - 0x14]
push edx
mov edx, dword [ebp + 0x18]
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp + 0xc]
push eax
push ecx
xor esi, esi
push edx
mov ecx, edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], esi
call fcn.0047bc30
lea eax, [eax + eax + 2]
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x44], eax
cmp eax, esi
jne 0x484ead
push esi
push 0x106f
push str.RealBuffer.cpp
push str.hUnicode___NULL
jmp 0x485624
mov ecx, dword [ebp - 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
jne 0x484edf
push eax
push 0x1077
push str.RealBuffer.cpp
push str.pch___NULL
call fcn.00428c10
mov edx, dword [ebp - 0x44]
add esp, 0x10
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x1c]
add ecx, eax
cmp ecx, ebx
jle 0x484f0a
push 0
push 0x107e
push str.RealBuffer.cpp
push str._srSelection_X1__nSelWidth____nTextWidth
call fcn.00428c10
add esp, 0x10
sub ebx, dword [ebp + 0x10]
mov dword [ebp - 0x1c], ebx
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x14]
add eax, edx
cmp eax, dword [ebp - 0x34]
jle 0x484f3d
push 0
push 0x1084
push str.RealBuffer.cpp
push str._srSelection_Y1__nSelHeight____nTextHeight
call fcn.00428c10
mov eax, dword [ebp - 0x34]
mov ebx, dword [ebp + 0x14]
add esp, 0x10
sub eax, ebx
mov dword [ebp - 0x14], eax
jmp 0x484f40
mov ebx, dword [ebp + 0x14]
mov ecx, dword [edi + 0x50]
dec dword [ebp - 0x14]
call fcn.00486bb0
mov ecx, eax
call fcn.004be380
cmp byte [ebp + 0x20], 0
lea ecx, [ebp - 0x2958]
mov dword [ebp - 0x40], eax
setne byte [ebp + 0x1f]
call fcn.0047f8c0
cmp byte [ebp + 0x1f], 0
mov dword [ebp - 4], 0
je 0x485018
xor eax, eax
cmp dword [edi], 1
mov ecx, 0xc0c0c0
jne 0x484fb4
mov edx, dword [ebp - 0x30]
test edx, edx
je 0x484fb4
mov ecx, dword [edi + 0x1b44]
imul ecx, ebx
add ecx, dword [ebp + 0x10]
lea eax, [edx + ecx*2]
movzx eax, word [eax]
mov edx, dword [ebp - 0x40]
mov ecx, eax
shr eax, 4
and ecx, 0xf
mov ecx, dword [edx + ecx*4]
and eax, 0xf
mov eax, dword [edx + eax*4]
jmp 0x484fd9
mov edx, dword [ebp - 0x28]
test edx, edx
je 0x484fd9
mov eax, dword [edi + 0x1b44]
imul eax, ebx
add eax, dword [ebp + 0x10]
lea eax, [eax + eax*2]
mov ecx, dword [edx + eax*8]
lea eax, [edx + eax*8]
mov eax, dword [eax + 4]
and ecx, 0xffffff
push eax
push ecx
mov ecx, dword [0x52fe34]
push 1
call fcn.0045c5e0
mov ecx, dword [0x52fe34]
push eax
call fcn.0045c590
mov ecx, dword [0x52fe2c]
add ecx, 0x194
cmp byte [ebp + 0x20], 2
push eax
sete dl
movzx eax, dl
push ecx
push eax
lea ecx, [ebp - 0x2958]
call fcn.00482760
cmp byte [ebp + 0xc], 0
jne 0x485161
xor ecx, ecx
cmp dword [ebp - 0x14], ecx
mov dword [ebp + 0x18], ecx
jl 0x4853e3
mov edx, dword [ebp - 0x20]
mov ebx, dword [ebp + 0x14]
xor eax, eax
cmp dword [edi], 1
jne 0x48504e
add ecx, ebx
imul ecx, dword [edi + 0x1b44]
add ecx, dword [ebp + 0x10]
lea eax, [edx + ecx*2]
jmp 0x485065
cmp ecx, dword [ebp - 0x34]
jge 0x485065
movsx eax, word [edi + 0x1ba8]
add ecx, ebx
imul eax, ecx
add eax, dword [ebp + 0x10]
lea eax, [edx + eax*2]
mov ebx, eax
mov dword [ebp + 0xc], ebx
test eax, eax
je 0x48510a
mov ecx, dword [ebp - 0x1c]
add ecx, 0xffffffff
mov edx, esi
js 0x485094
inc ecx
lea ecx, [ecx]
mov bx, word [eax]
mov word [esi], bx
add esi, 2
add eax, 2
sub ecx, 1
jne 0x485080
mov ebx, dword [ebp + 0xc]
cmp byte [ebp - 0xd], 1
jne 0x4850b3
cmp esi, edx
jbe 0x4850b3
mov edi, edi
cmp word [esi - 2], 0x20
jne 0x4850b3
add esi, 0xfffffffe
xor ecx, ecx
mov word [esi], cx
cmp esi, edx
ja 0x4850a0
cmp byte [ebp + 0x1f], 0
je 0x485122
mov eax, ebx
sub eax, dword [ebp - 0x20]
sar eax, 1
cmp dword [edi], 1
jne 0x4850e8
cmp dword [ebp - 0x30], 0
je 0x4850e8
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x40]
push edx
mov edx, dword [ebp - 0x30]
push ecx
lea eax, [edx + eax*2]
push eax
push ebx
lea ecx, [ebp - 0x2958]
call fcn.00484420
jmp 0x485122
cmp dword [ebp - 0x28], 0
je 0x485122
mov ecx, dword [ebp - 0x1c]
push ecx
lea edx, [eax + eax*2]
mov eax, dword [ebp - 0x28]
lea ecx, [eax + edx*8]
push ecx
push ebx
lea ecx, [ebp - 0x2958]
call fcn.004844e0
jmp 0x485122
cmp byte [ebp - 0xd], 1
je 0x485122
mov ebx, dword [ebp - 0x1c]
push ebx
push 0x20
push esi
call fcn.00458740
add esp, 0xc
lea esi, [esi + ebx*2]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 0x14]
cmp ecx, edx
jge 0x485150
movzx eax, byte [ebp - 0x15]
sub eax, 1
je 0x485145
sub eax, 1
mov eax, 0xd
mov word [esi], ax
je 0x48514d
add esi, 2
mov eax, 0xa
mov word [esi], ax
add esi, 2
inc ecx
cmp ecx, edx
mov dword [ebp + 0x18], ecx
jle 0x485030
jmp 0x4853e3
xor ebx, ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp + 0xc], ebx
jl 0x4853e3
nop
mov ecx, ebx
neg ecx
sbb ecx, ecx
not ecx
and ecx, dword [ebp + 0x10]
cmp ebx, dword [ebp - 0x14]
jne 0x485188
mov edx, dword [ebp + 0x18]
mov dword [ebp - 0x48], edx
jmp 0x485192
mov eax, dword [edi + 0x1b44]
dec eax
mov dword [ebp - 0x48], eax
xor eax, eax
cmp dword [edi], 1
mov dword [ebp - 0x2c], eax
jne 0x4851d4
mov edi, dword [edi + 0x1b44]
mov eax, dword [ebp + 0x14]
lea edx, [ebx + 1]
mov ebx, dword [ebp - 0x20]
lea eax, [edx + eax - 1]
imul eax, edi
add eax, ecx
cmp edx, dword [ebp - 0x14]
lea eax, [ebx + eax*2]
mov ebx, dword [ebp + 0xc]
jg 0x4851e2
mov edx, dword [ebp + 0x14]
lea edx, [ebx + edx + 1]
imul edx, edi
mov edi, dword [ebp - 0x20]
lea edx, [edi + edx*2]
mov dword [ebp - 0x2c], edx
jmp 0x4851e9
cmp ebx, dword [ebp - 0x34]
jge 0x4851ec
movsx edi, word [edi + 0x1ba8]
jmp 0x4851a2
mov dword [ebp - 0x2c], 0
mov edi, dword [ebp - 0x38]
mov dword [ebp - 0x98], esi
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x3c], esi
test eax, eax
je 0x485279
mov edx, dword [ebp - 0x48]
cmp ecx, edx
jg 0x485217
sub edx, ecx
inc edx
mov cx, word [eax]
mov word [esi], cx
add esi, 2
add eax, 2
sub edx, 1
jne 0x485206
cmp byte [ebp + 0x1f], 0
je 0x48528e
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 0x20]
mov ecx, esi
sub ecx, dword [ebp - 0x98]
sar eax, 1
sar ecx, 1
cmp dword [edi], 1
jne 0x485257
cmp dword [ebp - 0x30], 0
je 0x485257
mov edx, dword [ebp - 0x40]
push ecx
mov ecx, dword [ebp - 0x30]
push edx
lea edx, [ecx + eax*2]
mov eax, dword [ebp + 0xc]
push edx
push eax
lea ecx, [ebp - 0x2958]
call fcn.00484420
jmp 0x48528e
cmp dword [ebp - 0x28], 0
je 0x48528e
mov edx, dword [ebp - 0x28]
push ecx
lea ecx, [eax + eax*2]
lea eax, [edx + ecx*8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
lea ecx, [ebp - 0x2958]
call fcn.004844e0
jmp 0x48528e
mov edx, dword [ebp - 0x1c]
push edx
push 0x20
push esi
call fcn.00458740
mov eax, dword [ebp - 0x1c]
add esp, 0xc
lea esi, [esi + eax*2]
cmp ebx, dword [ebp - 0x14]
jge 0x4853b2
cmp byte [ebp - 0x21], 0
mov byte [ebp + 0xf], 0
je 0x48534d
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x48534d
cmp word [eax], 0x20
jne 0x4852c1
cmp word [eax + 2], 0x20
je 0x48534d
movzx eax, word [esi - 2]
push eax
lea ecx, [ebp - 0x94]
push ecx
call fcn.004c9bca
add esp, 8
test eax, eax
jne 0x48534d
mov edx, dword [ebp - 0x2c]
movzx eax, word [edx]
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.004c9bca
add esp, 8
test eax, eax
jne 0x48534d
movzx ecx, word [esi - 2]
cmp cx, 0x20
jne 0x48532a
lea edx, [esi - 2]
cmp edx, dword [ebp - 0x3c]
jbe 0x48530b
cmp word [esi - 4], cx
jne 0x48532a
cmp byte [ebp - 0x16], 0
je 0x48534d
lea eax, [esi - 4]
cmp eax, dword [ebp - 0x3c]
jbe 0x48532e
mov eax, 0x20
cmp word [esi - 4], ax
jne 0x48532e
cmp word [esi - 6], ax
je 0x48532e
mov al, 1
jmp 0x485331
mov al, byte [ebp + 0xf]
cmp byte [ebp - 0x16], 0
je 0x485345
cmp cx, 0x20
jne 0x485345
add esi, 0xfffffffe
xor ecx, ecx
mov word [esi], cx
test al, al
jne 0x4853d6
cmp byte [ebp - 0xd], 0
je 0x485372
mov eax, dword [ebp - 0x3c]
cmp esi, eax
jbe 0x485372
mov ecx, 0x20
nop
cmp word [esi - 2], cx
jne 0x485372
add esi, 0xfffffffe
xor edx, edx
mov word [esi], dx
cmp esi, eax
ja 0x485360
movzx eax, byte [ebp - 0x15]
sub eax, 1
je 0x4853a5
sub eax, 1
je 0x485398
mov eax, 0xd
mov word [esi], ax
add esi, 2
mov ecx, 0xa
mov word [esi], cx
add esi, 2
jmp 0x4853d6
mov edx, 0xd
mov word [esi], dx
add esi, 2
jmp 0x4853d6
mov eax, 0xa
mov word [esi], ax
add esi, 2
jmp 0x4853d6
cmp byte [ebp - 0xd], 0
je 0x4853d6
mov eax, dword [ebp - 0x3c]
cmp esi, eax
jbe 0x4853d6
mov ecx, 0x20
cmp word [esi - 2], cx
jne 0x4853d6
add esi, 0xfffffffe
xor edx, edx
mov word [esi], dx
cmp esi, eax
ja 0x4853c4
inc ebx
cmp ebx, dword [ebp - 0x14]
mov dword [ebp + 0xc], ebx
jle 0x485170
mov esi, dword [ebp - 0x44]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor edi, edi
cmp byte [ebp + 0x1f], 0
je 0x48543c
lea ecx, [ebp - 0x2958]
call fcn.00482c60
mov edi, eax
test edi, edi
jne 0x48543c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
push edi
push 0x10
push eax
push str.Creating_HTML_format_failed_
call fcn.004263e0
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea ecx, [ebp - 0x2958]
mov dword [ebp - 4], 0xffffffff
call fcn.0047f8f0
jmp 0x48562c
cmp byte [ebp + 0x20], 2
jne 0x485455
test edi, edi
je 0x485455
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov esi, edi
xor edi, edi
mov byte [ebp + 0x1f], 0
mov ebx, dword [ebp + 0x24]
test ebx, ebx
je 0x485510
push esi
or edi, 0xffffffff
mov dword [ebp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x485494
lea ecx, [ebp + 0x20]
push ecx
push 0
push 0xfde9
push edi
push eax
push ebx
call fcn.004c7280
add esp, 0x18
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test edi, edi
jge 0x4854e9
push 0
push 0
push 0
push ebx
push str.Failed_to_create_file_n
call fcn.0044c5d0
mov edx, dword [ebp + 0x20]
push 0
push 0
push 0
mov esi, eax
push edx
push esi
call fcn.004263e0
add esp, 0x28
test esi, esi
je 0x4854d2
push esi
call fcn.0044c4f0
add esp, 4
lea ecx, [ebp - 0x2958]
mov dword [ebp - 4], 0xffffffff
call fcn.0047f8f0
jmp 0x48562c
lea ecx, [ebp - 0x2958]
mov dword [ebp - 4], 0xffffffff
call fcn.0047f8f0
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x20
push str.SetClipboard
call fcn.00426620
movzx eax, al
add esp, 4
test eax, eax
jne 0x48554b
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
call esi
test edi, edi
je 0x485534
push edi
call esi
lea ecx, [ebp - 0x2958]
mov dword [ebp - 4], 0xffffffff
call fcn.0047f8f0
jmp 0x48562c
cmp byte [ebp + 0x1f], 0
je 0x485561
push str.HTML_Format
call dword [sym.imp.USER32.dll_RegisterClipboardFormatW]
mov dword [ebp + 0x14], eax
jmp 0x485568
mov dword [ebp + 0x14], 0
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov ebx, dword [sym.imp.USER32.dll_SetClipboardData]
push esi
push 0xd
call ebx
test eax, eax
je 0x485594
cmp dword [ebp + 0x14], 0
je 0x4855d1
mov eax, dword [ebp + 0x14]
push edi
push eax
call ebx
test eax, eax
je 0x485594
mov byte [ebp + 0x23], 1
jmp 0x4855e6
mov byte [ebp + 0x23], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
push 0x15
push eax
push str.SetClipboardData_CF_UNICODETEXT__...__failed_
call fcn.004263e0
add esp, 0x14
push esi
cmp eax, 4
jne 0x4855d7
push 0xd
call ebx
test eax, eax
je 0x485594
cmp dword [ebp + 0x14], 0
je 0x4855d1
mov ecx, dword [ebp + 0x14]
push edi
push ecx
call ebx
test eax, eax
je 0x485594
mov byte [ebp + 0x23], 1
jmp 0x4855e6
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
call esi
test edi, edi
je 0x4855e6
push edi
call esi
call fcn.004266c0
lea ecx, [ebp - 0x2958]
mov dword [ebp - 4], 0xffffffff
call fcn.0047f8f0
mov al, byte [ebp + 0x23]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x20
push 0
push 0x103e
push str.RealBuffer.cpp
push str.pszDataStart___NULL
call fcn.00428c10
add esp, 0x10
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor al, al
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x20