Function at 0x41b740
Capabilities:
Get common file path
Open clipboard
Write clipboard data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5c972f
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x168
test eax, eax
push ebx
push ebp
mov ebp, dword [esp + 0x184]
push esi
push edi
mov ebx, ebp
je 0x41b84e
push eax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.user32.dll_CopyRect]
xor esi, esi
push 0x480
mov si, word [ebp + 0x2e]
call fcn.00596900
add esp, 4
mov dword [esp + 0x28], eax
test eax, eax
mov dword [esp + 0x180], 0
je 0x41b7b1
mov ecx, eax
call fcn.004e5b80
mov ebp, eax
jmp 0x41b7b3
xor ebp, ebp
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
xor ecx, ecx
push 0
mov cx, word [ebx + 0x2c]
push 0
push esi
sub edx, eax
mov eax, dword [esp + 0x40]
push ecx
push edx
mov edx, dword [esp + 0x40]
sub eax, edx
mov ecx, ebp
push eax
mov dword [esp + 0x198], 0xffffffff
call fcn.004e6670
lea ecx, [ebx + 0x454]
push ecx
mov ecx, ebp
call fcn.004e7610
mov eax, dword [ebx + 0x450]
lea edx, [ebx + 0x48]
push edx
push eax
mov ecx, ebp
call fcn.004e6c10
push 1
push 0
mov ecx, ebp
call fcn.004e70d0
xor edx, edx
lea edi, [esp + 0x2c]
push edx
xor ecx, ecx
push edi
push edx
push ecx
push eax
mov ecx, ebx
call fcn.004e6d20
push 0
mov ecx, ebp
call fcn.004e71a0
mov eax, dword [0x64855c]
test eax, eax
je 0x41b84e
mov ecx, dword [esp + 0x194]
test ecx, ecx
je 0x41b84e
cmp ecx, esi
je 0x41b84e
push ecx
push ebp
call eax
add esp, 8
lea eax, [esp + 0x70]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
lea ecx, [esp + 0x70]
push ecx
lea ecx, [esp + 0x18]
call fcn.005980a0
lea edx, [esp + 0x1c]
push 1
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x188], 1
call fcn.0058f5a1
mov eax, dword [eax]
push 0x61e354
push eax
call fcn.004f59f0
add esp, 8
lea ecx, [esp + 0x1c]
test eax, eax
setne byte [esp + 0x1b]
call fcn.00598032
mov al, byte [esp + 0x1b]
test al, al
je 0x41b8bd
push 0x61e354
lea ecx, [esp + 0x18]
call fcn.0059840e
lea eax, [esp + 0x70]
push 0x10
push eax
push 0
call fcn.004f68de
add esp, 4
push eax
call fcn.004f62e8
add esp, 0xc
lea ecx, [esp + 0x24]
push eax
call fcn.005980a0
push eax
lea ecx, [esp + 0x20]
push str.HS6ClipImage_
push ecx
mov byte [esp + 0x18c], 2
call fcn.0059833b
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x184], 3
call fcn.0059844a
lea ecx, [esp + 0x1c]
mov byte [esp + 0x180], 2
call fcn.00598032
lea ecx, [esp + 0x24]
mov byte [esp + 0x180], 1
call fcn.00598032
mov ecx, 0xd
mov esi, 0x63f860
lea edi, [esp + 0x3c]
rep movsd dword es:[edi], dword [esi]
mov edi, 1
mov esi, 2
mov dword [0x63f86c], edi
mov dword [0x63f860], 0
mov dword [0x63f888], esi
cmp word [ebp + 0x2e], 8
ja 0x41b97a
push str..gif
lea ecx, [esp + 0x18]
call fcn.0059840e
mov dword [0x63f878], esi
jmp 0x41b992
push str..jpg
lea ecx, [esp + 0x18]
call fcn.0059840e
mov dword [0x63f878], 0xa
mov esi, dword [0x63e6f8]
mov ecx, dword [esp + 0x14]
mov dword [0x63e6f8], edi
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push edx
push eax
push ecx
push ebp
call fcn.0043cf70
mov eax, dword [0x63094c]
mov dword [0x63e6f8], esi
mov ecx, 0xd
lea esi, [esp + 0x4c]
mov edi, 0x63f860
add esp, 0x10
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
lea edx, [esp + 0x14]
lea ecx, [esp + 0x10]
push edx
mov byte [esp + 0x184], 5
call fcn.0059816b
push 0x2f
push 0x5c
lea ecx, [esp + 0x18]
call fcn.0058f2f7
mov eax, dword [ebp + 0x28]
mov ecx, dword [ebp + 0x24]
push eax
mov eax, dword [esp + 0x14]
push ecx
push eax
lea ecx, [esp + 0x2c]
push str._img_border_0__src_file:____s__width__d__height__d___n____EndFragment____n__BODY__n__HTML_
push ecx
call fcn.0058fa68
add esp, 0x14
lea edx, [esp + 0x20]
lea eax, [esp + 0x24]
push edx
push str.Version:0.9_nStartHTML:_04d_nEndHTML:_04d_nStartFragment:_04d_nEndFragment:_04d_n__DOCTYPE_HTML_PUBLIC_____W3C__DTD_HTML_4.0_Transitional__EN___n_HTML__n_BODY__n____StartFragment____n
push eax
call fcn.0059833b
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x184], 6
call fcn.0059816b
lea ecx, [esp + 0x24]
mov byte [esp + 0x180], 5
call fcn.00598032
mov eax, dword [esp + 0x10]
push str.____EndFragment
lea ecx, [esp + 0x14]
mov edi, eax
mov esi, dword [eax - 8]
call fcn.0058f6e2
push eax
push str._img_border
lea ecx, [esp + 0x18]
call fcn.0058f6e2
push eax
push esi
push str.__DOCTYPE
lea ecx, [esp + 0x20]
call fcn.0058f6e2
push eax
lea ecx, [esp + 0x30]
push edi
push ecx
call fcn.0058fa68
add esp, 0x18
mov dword [esp + 0x1c], 1
push 0
call dword [sym.imp.user32.dll_OpenClipboard]
mov eax, dword [esp + 0x190]
test eax, eax
je 0x41bab6
call dword [sym.imp.user32.dll_EmptyClipboard]
mov edx, dword [esp + 0x20]
mov eax, dword [edx - 8]
inc eax
push eax
push 0x2002
call dword [sym.imp.kernel32.dll_GlobalAlloc]
test eax, eax
mov dword [esp + 0x28], eax
je 0x41bb2d
push eax
call dword [sym.imp.kernel32.dll_GlobalLock]
mov edi, dword [esp + 0x20]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x28]
push esi
call dword [sym.imp.kernel32.dll_GlobalUnlock]
push esi
push str.HTML_Format
call dword [sym.imp.user32.dll_RegisterClipboardFormatA_1]
push eax
call dword [sym.imp.user32.dll_SetClipboardData]
test eax, eax
jne 0x41bb2d
push esi
call dword [sym.imp.kernel32.dll_GlobalFree]
mov dword [esp + 0x1c], 0
call dword [sym.imp.user32.dll_CloseClipboard]
cmp ebp, ebx
je 0x41bb45
test ebp, ebp
je 0x41bb45
mov edx, dword [ebp]
push 1
mov ecx, ebp
call dword [edx + 4]
lea ecx, [esp + 0x20]
mov byte [esp + 0x180], 4
call fcn.00598032
lea ecx, [esp + 0x10]
mov byte [esp + 0x180], 1
call fcn.00598032
lea ecx, [esp + 0x14]
mov dword [esp + 0x180], 0xffffffff
call fcn.00598032
mov ecx, dword [esp + 0x178]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x174
ret 0x10