Function at 0x4620e0
Capabilities:
Write clipboard data

Disassembly:
sub esp, 0x1c
push ebx
push ebp
mov bp, word [esp + 0x28]
movzx eax, bp
xor ebx, ebx
dec eax
cmp eax, 0x1d
push esi
push edi
ja case.0x462102.3
movzx eax, byte [eax + 0x462524]
jmp dword [eax*4 + 0x462508]
mov esi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 0
call esi
push 0
mov edi, eax
call esi
mov ebx, dword [esp + 0x34]
mov esi, eax
mov eax, dword [ebx + 4]
test eax, eax
je 0x462129
mov eax, dword [eax + 0x14]
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push esi
call ebp
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 4]
test eax, eax
jne 0x462142
xor ecx, ecx
jmp 0x462145
mov ecx, dword [eax + 0xc]
test eax, eax
je 0x46214c
mov eax, dword [eax + 8]
push ecx
push eax
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ebx, eax
test ebx, ebx
jne 0x462179
mov ecx, dword [esp + 0x30]
push ecx
push esi
call ebp
push edi
mov edi, dword [sym.imp.GDI32.dll_DeleteDC]
call edi
push esi
call edi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x1c
ret
push ebx
push edi
call ebp
mov edx, dword [esp + 0x34]
mov dword [esp + 0x10], eax
mov eax, dword [edx + 4]
test eax, eax
jne 0x462190
xor ecx, ecx
jmp 0x462193
mov ecx, dword [eax + 0xc]
test eax, eax
je 0x46219a
mov eax, dword [eax + 8]
push 0xcc0020
push 0
push 0
push esi
push ecx
push eax
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x10]
push eax
push edi
call ebp
push ebx
push 2
call dword [sym.imp.USER32.dll_SetClipboardData]
mov ecx, dword [esp + 0x30]
push ecx
push esi
mov ebx, eax
call ebp
push esi
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
call esi
push edi
call esi
jmp 0x462474
mov esi, dword [esp + 0x34]
test esi, esi
je 0x462478
mov ecx, esi
call fcn.0040f790
test al, al
je 0x462478
push esi
lea ecx, [esp + 0x18]
call fcn.00420070
mov eax, dword [esp + 0x14]
test eax, eax
je 0x46221d
push eax
push 8
mov dword [esp + 0x1c], 0
call dword [sym.imp.USER32.dll_SetClipboardData]
mov ebx, eax
lea ecx, [esp + 0x14]
call fcn.004200a0
jmp 0x462474
mov edx, dword [esp + 0x34]
push edx
lea ecx, [esp + 0x18]
call fcn.00461fe0
mov eax, dword [esp + 0x20]
push eax
push 0xe
call dword [sym.imp.USER32.dll_SetClipboardData]
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.00462040
jmp 0x462474
mov bp, 1
mov edi, dword [esp + 0x34]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x462263
sub eax, edx
lea esi, [eax + 1]
push esi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x4622a0
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, esi
mov edx, ecx
shr ecx, 2
mov esi, edi
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
movzx eax, bp
push ebx
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
mov ebx, eax
jmp 0x462474
mov ebx, dword [esp + 0x34]
mov eax, ebx
lea edx, [eax + 1]
jmp 0x4622c0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4622c0
sub eax, edx
add eax, 0x190
push eax
call sub.MSVCR71.dll_void____cdecl_operator_new_unsigned_int_
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x4624fc
mov eax, dword [0x515c20]
test eax, eax
jne 0x4622fa
push str.HTML_Format
call dword [sym.imp.USER32.dll_RegisterClipboardFormatA]
mov dword [0x515c20], eax
mov ecx, 0x21
mov esi, str.Version:0.9_r_nStartHTML:00000000_r_nEndHTML:00000000_r_nStartFragment:00000000_r_nEndFragment:00000000_r_n_html__body__r_n____StartFragment_____r_n
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov eax, ebx
movsb byte es:[edi], byte [esi]
mov ecx, eax
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x462310
mov edi, ebp
sub eax, ecx
mov esi, ecx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x462320
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x462340
mov cx, word [0x4dbc90]
mov word [edi], cx
mov dl, byte [0x4dbc92]
mov byte [edi + 2], dl
mov edi, ebp
dec edi
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x462360
mov ecx, 9
mov esi, str.____EndFragment____r_n__body__r_n__html_
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.MSVCR71.dll_strstr]
push str.StartHTML
push ebp
call esi
push str._html_
push ebp
mov ebx, eax
call esi
mov edi, dword [sym.imp.MSVCR71.dll_sprintf]
sub eax, ebp
push eax
lea eax, [ebx + 0xa]
push str._08u
push eax
call edi
push str.EndHTML
push ebp
mov byte [ebx + 0x12], 0xd
call esi
mov ebx, eax
mov eax, ebp
add esp, 0x24
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4623b7
sub eax, ecx
push eax
lea ecx, [ebx + 8]
push str._08u
push ecx
call edi
push str.StartFragment
push ebp
mov byte [ebx + 0x10], 0xd
call esi
push str.____StartFrag
push ebp
mov ebx, eax
call esi
sub eax, ebp
push eax
lea edx, [ebx + 0xe]
push str._08u
push edx
call edi
push str.EndFragment
push ebp
mov byte [ebx + 0x16], 0xd
call esi
push str.____EndFrag
push ebp
mov ebx, eax
call esi
sub eax, ebp
push eax
lea eax, [ebx + 0xc]
push str._08u
push eax
call edi
mov eax, ebp
add esp, 0x44
mov byte [ebx + 0x14], 0xd
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x462420
sub eax, ecx
add eax, 4
push eax
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
mov esi, ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov cl, byte [esi]
inc esi
mov byte [eax], cl
inc eax
test cl, cl
jne 0x462443
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [0x515c20]
push edi
push ecx
call dword [sym.imp.USER32.dll_SetClipboardData]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
add esp, 4
test ebx, ebx
jne 0x4624ba
call fcn.004758f0
test eax, eax
je 0x4624a2
push 0
push str.Failed_to_set_clipboard_data.
mov ecx, eax
call fcn.00475d60
push eax
call fcn.00476a00
add esp, 4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x1c
ret
mov eax, str.Failed_to_set_clipboard_data.
push eax
call fcn.00476a00
add esp, 4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x1c
ret
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x1c
ret
call fcn.004758f0
test eax, eax
je 0x4624ee
push 0
push str.Unsupported_clipboard_format.
mov ecx, eax
call fcn.00475d60
push eax
call fcn.00476670
add esp, 4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x1c
ret
mov eax, str.Unsupported_clipboard_format.
push eax
call fcn.00476670
add esp, 4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x1c
ret