Function at 0x5a970f
Capabilities:
Write clipboard data

Disassembly:
movzx eax, word [esp + 4]
sub esp, 0x20
push ebx
push ebp
dec eax
push esi
xor ebx, ebx
push edi
cmp eax, 0x1d
ja case.0x5a95bf.3
movzx eax, byte [eax + 0x5a99ec]
jmp dword [eax*4 + 0x5a99d0]
mov esi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 0
call esi
push 0
mov edi, eax
call esi
mov ebx, dword [esp + 0x38]
mov esi, eax
mov eax, dword [ebx + 4]
test eax, eax
je 0x5a95e6
mov eax, dword [eax + 0x14]
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push esi
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 4]
test eax, eax
jne 0x5a95ff
xor ecx, ecx
jmp 0x5a9602
mov ecx, dword [eax + 0xc]
test eax, eax
je 0x5a9609
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 0x5a9636
mov ecx, dword [esp + 0x10]
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, 0x20
ret
push ebx
push edi
call ebp
mov edx, dword [esp + 0x38]
mov dword [esp + 0x14], eax
mov eax, dword [edx + 4]
test eax, eax
jne 0x5a964d
xor ecx, ecx
jmp 0x5a9650
mov ecx, dword [eax + 0xc]
test eax, eax
je 0x5a9657
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 + 0x14]
push eax
push edi
call ebp
push ebx
push 2
call dword [sym.imp.USER32.dll_SetClipboardData]
mov ecx, dword [esp + 0x10]
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 0x5a9937
mov esi, dword [esp + 0x38]
test esi, esi
je 0x5a993b
mov ecx, esi
call fcn.005393b0
test al, al
je 0x5a993b
push esi
lea ecx, [esp + 0x1c]
call fcn.00555020
mov eax, dword [esp + 0x18]
test eax, eax
je 0x5a96d6
push eax
push 8
mov dword [esp + 0x20], ebx
call dword [sym.imp.USER32.dll_SetClipboardData]
mov ebx, eax
lea ecx, [esp + 0x18]
call fcn.00555050
jmp 0x5a9937
mov edx, dword [esp + 0x38]
push edx
lea ecx, [esp + 0x1c]
call fcn.005a92b0
mov eax, dword [esp + 0x24]
push eax
push 0xe
call dword [sym.imp.USER32.dll_SetClipboardData]
lea ecx, [esp + 0x18]
mov ebx, eax
call fcn.005a9320
jmp 0x5a9937
mov ecx, 1
mov word [esp + 0x34], cx
mov ebx, dword [esp + 0x38]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5a9722
sub eax, edx
lea edi, [eax + 1]
push edi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x5a9756
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
push ebx
push eax
call fcn.005b74a0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
movzx edx, word [esp + 0x34]
push esi
push edx
call dword [sym.imp.USER32.dll_SetClipboardData]
mov ebx, eax
jmp 0x5a9937
mov ebx, dword [esp + 0x38]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5a9773
sub eax, edx
add eax, 0x190
push eax
call fcn.005b3e2c
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x5a99c3
cmp dword [0x6f7ddc], 0
jne 0x5a97ad
push str.HTML_Format
call dword [sym.imp.USER32.dll_RegisterClipboardFormatW]
mov dword [0x6f7ddc], 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
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x5a97c2
mov edi, ebp
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x5a97d0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
mov eax, ebp
rep movsb byte es:[edi], byte [esi]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x5a97f0
mov cx, word [0x683770]
mov word [eax], cx
mov dl, byte [0x683772]
mov edi, ebp
mov byte [eax + 2], dl
dec edi
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x5a9810
mov ecx, 9
mov esi, str.____EndFragment____r_n__body__r_n__html_
rep movsd dword es:[edi], dword [esi]
push str.StartHTML
push ebp
movsb byte es:[edi], byte [esi]
call fcn.005c3070
push str._html_
push ebp
mov esi, eax
call fcn.005c3070
sub eax, ebp
push eax
lea eax, [esi + 0xa]
push str._08u
push eax
call fcn.005bab72
push str.EndHTML
mov bl, 0xd
push ebp
mov byte [esi + 0x12], bl
call fcn.005c3070
mov esi, eax
mov eax, ebp
add esp, 0x24
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5a9868
sub eax, edi
push eax
lea ecx, [esi + 8]
push str._08u
push ecx
call fcn.005bab72
push str.StartFragment
push ebp
mov byte [esi + 0x10], bl
call fcn.005c3070
push str.____StartFrag
push ebp
mov esi, eax
call fcn.005c3070
sub eax, ebp
push eax
lea edx, [esi + 0xe]
push str._08u
push edx
call fcn.005bab72
push str.EndFragment
push ebp
mov byte [esi + 0x16], bl
call fcn.005c3070
push str.____EndFrag
push ebp
mov esi, eax
call fcn.005c3070
sub eax, ebp
push eax
lea eax, [esi + 0xc]
push str._08u
push eax
call fcn.005bab72
mov eax, ebp
add esp, 0x44
mov byte [esi + 0x14], bl
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x5a98e3
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]
mov byte [eax], cl
inc esi
inc eax
test cl, cl
jne 0x5a9906
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [0x6f7ddc]
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 fcn.005b4dc6
add esp, 4
test ebx, ebx
jne 0x5a997f
call fcn.00519760
test eax, eax
je 0x5a9967
mov edx, dword [eax]
push 0
mov ecx, eax
mov eax, dword [edx + 8]
push str.Failed_to_set_clipboard_data.
call eax
push eax
call fcn.00527960
add esp, 4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x20
ret
mov eax, str.Failed_to_set_clipboard_data.
push eax
call fcn.00527960
add esp, 4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x20
ret
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x20
ret
call fcn.00519760
test eax, eax
je 0x5a99b5
mov edx, dword [eax]
push 0
mov ecx, eax
mov eax, dword [edx + 8]
push 0x65fd18
call eax
push eax
call fcn.00527670
add esp, 4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x20
ret
mov eax, 0x65fd18
push eax
call fcn.00527670
add esp, 4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x20
ret