Function at 0x401ebb
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov eax, 0x4381e8
call fcn.00437bf0
sub esp, 0x20
test byte [0x4561d8], 1
push ebx
push esi
push edi
mov dword [ebp - 0x14], ecx
jne 0x401eee
or byte [0x4561d8], 1
push str.HTML_Format
call dword [sym.imp.USER32.dll_RegisterClipboardFormatW]
mov dword [0x4561d4], eax
xor ebx, ebx
xor esi, esi
push ebx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x401f8d
push dword [0x4561d4]
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x10], edi
je 0x401f87
push edi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x401f87
push eax
lea ecx, [ebp - 0x24]
call fcn.00402cdf
lea eax, [esi + 2]
lea ecx, [ebp - 0x24]
push eax
mov dword [ebp - 4], ebx
call fcn.00403003
mov edi, eax
cmp edi, ebx
je 0x401f6b
push esi
push dword [ebp - 0x18]
push edi
call sub.MSVCRT.dll_memcpy
mov ecx, dword [ebp + 0xc]
add esp, 0xc
mov byte [edi + esi], bl
mov byte [edi + esi + 1], bl
push edi
call fcn.00402ee2
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x20], 1
call fcn.00402cb3
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [0x444130]
mov dword [ebp - 0x1c], eax
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 1
push dword [edi]
push esi
push 0x4442f8
push eax
call fcn.004030fb
add esp, 0x10
push ebx
push ebx
push dword [ebp - 0x1c]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp dword [ebp - 0x20], ebx
je 0x402226
push ecx
mov esi, 0x4442f4
mov ecx, esp
mov dword [ebp - 0x28], esp
push esi
call fcn.00402cdf
push ecx
mov byte [ebp - 4], 2
mov ecx, esp
mov dword [ebp - 0x24], esp
push str.StartFragment:
call fcn.00402cdf
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push edi
push eax
mov byte [ebp - 4], 1
call fcn.00402246
push ecx
mov byte [ebp - 4], 3
mov ecx, esp
mov dword [ebp - 0x28], esp
push esi
call fcn.00402cdf
push ecx
mov edi, 0x4442b8
mov ecx, esp
mov dword [ebp - 0x24], esp
push edi
mov byte [ebp - 4], 4
call fcn.00402cdf
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 3
push eax
call fcn.00402246
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 5
cmp dword [eax - 8], 2
jge 0x4020e3
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push 0x4442b4
call fcn.00402cdf
push ecx
mov byte [ebp - 4], 6
mov ecx, esp
mov dword [ebp - 0x2c], esp
push str.StartFragment:
call fcn.00402cdf
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 5
push eax
call fcn.00402246
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 7
call fcn.00402e92
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 5
call fcn.00402cb3
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
push 0x4442b4
call fcn.00402cdf
push ecx
mov byte [ebp - 4], 8
mov ecx, esp
mov dword [ebp - 0x24], esp
push edi
call fcn.00402cdf
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 5
push eax
call fcn.00402246
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 9
call fcn.00402e92
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call fcn.00402cb3
mov eax, dword [ebp - 0x10]
cmp dword [eax - 8], 1
jle 0x40220e
mov edi, 0x4561e8
lea ecx, [ebp - 0x10]
push edi
push esi
call fcn.0040348c
push edi
push esi
lea ecx, [ebp - 0x18]
call fcn.0040348c
push dword [ebp - 0x10]
call sub.MSVCRT.dll__wtoi
push dword [ebp - 0x18]
mov esi, eax
call sub.MSVCRT.dll__wtoi
pop ecx
mov edi, eax
pop ecx
mov ecx, dword [ebp + 0xc]
push ebx
call fcn.00403003
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
mov ecx, dword [ecx - 8]
cmp esi, ecx
jge 0x40220e
cmp edi, ecx
jge 0x40220e
mov cx, word [eax + edi*2]
lea edi, [eax + edi*2]
lea esi, [eax + esi*2]
mov word [ebp + 0xc], cx
cmp esi, ebx
mov word [edi], bx
jne 0x402159
xor eax, eax
jmp 0x402160
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
mov esi, dword [ebp + 8]
push eax
mov ecx, esi
call fcn.00402dfd
mov ax, word [ebp + 0xc]
mov word [edi], ax
mov eax, dword [esi]
mov eax, dword [eax - 8]
add eax, eax
push eax
call sub.MSVCRT.dll_malloc
mov dword [ebp + 0xc], eax
mov eax, dword [esi]
pop ecx
mov eax, dword [eax - 8]
push ebx
add eax, eax
push ebx
push eax
mov ecx, esi
push dword [ebp + 0xc]
push 0xffffffffffffffff
push ebx
call fcn.00403003
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push ebx
call edi
mov dword [ebp + 8], eax
mov eax, dword [esi]
mov eax, dword [eax - 8]
add eax, eax
push eax
call sub.MSVCRT.dll_malloc
pop ecx
mov dword [ebp - 0x24], eax
push dword [ebp + 8]
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push 0xfde9
call edi
mov edi, dword [ebp - 0x24]
cmp edi, ebx
jne 0x4021e5
xor eax, eax
jmp 0x4021ec
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
push eax
mov ecx, esi
call fcn.00402dfd
cmp edi, ebx
je 0x402200
push edi
call sub.MSVCRT.dll_free
pop ecx
cmp dword [ebp + 0xc], ebx
je 0x40220e
push dword [ebp + 0xc]
call sub.MSVCRT.dll_free
pop ecx
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.00402cb3
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00402cb3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00402cb3
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8