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

Disassembly:
push 0xffffffffffffffff
push 0x61d0af
mov eax, dword fs:[0]
push eax
sub esp, 0x178
mov eax, dword [0x69e3d4]
xor eax, esp
mov dword [esp + 0x170], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x69e3d4]
xor eax, esp
push eax
lea eax, [esp + 0x18c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x1a0]
mov eax, dword [esp + 0x19c]
xor edi, edi
cmp eax, edi
mov esi, ebp
mov dword [esp + 0x28], esi
je 0x412c37
push eax
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.user32.dll_CopyRect]
movzx ebx, word [ebp + 0x2e]
push 0x480
mov dword [esp + 0x1c], ebx
call fcn.005655ab
add esp, 4
mov dword [esp + 0x2c], eax
cmp eax, edi
mov dword [esp + 0x194], edi
je 0x412ba1
push eax
call fcn.004e6580
mov edi, eax
push 0
mov dword [esp + 0x198], 0xffffffff
movzx ecx, word [esi + 0x2c]
mov edx, dword [esp + 0x44]
sub edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x38]
push 0
push ebx
push ecx
push edx
push eax
push edi
mov ebp, edi
call fcn.004e6fe0
add esi, 0x454
mov ebx, edi
call fcn.004e7f30
mov esi, dword [esp + 0x28]
mov ebx, dword [esi + 0x450]
lea ecx, [esi + 0x48]
push ecx
mov ecx, edi
call fcn.004e75b0
push 1
xor eax, eax
mov ecx, edi
call fcn.004e7a20
xor edx, edx
push edx
xor ecx, ecx
push ecx
push eax
xor eax, eax
lea edx, [esp + 0x40]
mov ecx, esi
call fcn.004e76b0
call fcn.004e7af0
mov eax, dword [0x6bd094]
test eax, eax
je 0x412c37
mov ecx, dword [esp + 0x1a4]
test ecx, ecx
je 0x412c37
cmp ecx, dword [esp + 0x18]
je 0x412c37
push ecx
push edi
call eax
add esp, 8
lea edx, [esp + 0x7c]
push edx
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x20]
call fcn.00404eb0
push 1
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x19c], 1
call fcn.00413d20
mov eax, dword [eax]
push 0x645b40
push eax
call fcn.005a58c6
add esp, 8
test eax, eax
mov eax, dword [esp + 0x18]
setne bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x412ca5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x412cb9
push 1
push 0x645b40
lea ecx, [esp + 0x24]
call fcn.00407400
push 0
call fcn.005a671d
add esp, 4
push 0x10
lea ecx, [esp + 0x80]
push ecx
push eax
mov dword [esp + 0x3c], edx
call fcn.005a641e
add esp, 0xc
push eax
lea ecx, [esp + 0x24]
call fcn.00404eb0
lea edx, [esp + 0x18]
push str.HS6ClipImage_
mov ebx, 2
push edx
mov ecx, eax
mov byte [esp + 0x19c], bl
call fcn.0040ef20
add esp, 8
mov byte [esp + 0x194], 3
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x24]
call fcn.00407400
mov byte [esp + 0x194], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412d43
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x194], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412d6b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, 0xe
mov esi, 0x6bd744
lea edi, [esp + 0x44]
rep movsd dword es:[edi], dword [esi]
mov edi, 1
mov dword [0x6bd750], edi
mov dword [0x6bd744], 0
mov dword [0x6bd770], ebx
cmp word [ebp + 0x2e], 8
push 4
lea ecx, [esp + 0x20]
ja 0x412db5
push str..gif
call fcn.00407400
mov dword [0x6bd760], ebx
jmp 0x412dc9
push str..jpg
call fcn.00407400
mov dword [0x6bd760], 0xa
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [esp + 0x1c]
mov esi, dword [0x6bc854]
push ecx
push edx
push eax
push ebp
mov dword [0x6bc854], edi
call fcn.00436dc0
mov dword [0x6bc854], esi
mov ecx, 0xe
lea esi, [esp + 0x54]
mov edi, 0x6bd744
add esp, 0x10
rep movsd dword es:[edi], dword [esi]
call fcn.0056d592
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x412e1b
push 0x80004005
call fcn.004012f0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov byte [esp + 0x194], 4
call fcn.0056d592
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x412e4d
push 0x80004005
call fcn.004012f0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x28]
mov byte [esp + 0x198], 5
call fcn.004074e0
push 0x2f
push 0x5c
lea ebx, [esp + 0x2c]
call fcn.004072a0
mov eax, dword [ebp + 0x28]
mov ecx, dword [ebp + 0x24]
mov edx, dword [esp + 0x24]
push eax
push ecx
push edx
lea eax, [esp + 0x2c]
push str._img_border_0__src_file:____s__width__d__height__d___n____EndFragment____n__BODY__n__HTML_
push eax
call fcn.00413f70
add esp, 0x14
lea ecx, [esp + 0x2c]
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 ecx
lea ecx, [esp + 0x28]
call fcn.0040ef20
add esp, 8
push eax
mov ecx, ebx
mov byte [esp + 0x198], 6
call fcn.004074e0
mov byte [esp + 0x194], 5
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
or ebx, 0xffffffff
lea edx, [eax + 0xc]
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x412eef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x24]
cmp dword [edi - 0xc], 0
jge 0x412eff
mov dword [esp + 0x18], ebx
jmp 0x412f1d
push str.____EndFragment
push edi
call fcn.005a75c4
add esp, 8
test eax, eax
jne 0x412f17
mov dword [esp + 0x18], ebx
jmp 0x412f1d
sub eax, edi
mov dword [esp + 0x18], eax
cmp dword [edi - 0xc], 0
jl 0x412f39
push str._img_border
push edi
call fcn.005a75c4
add esp, 8
test eax, eax
je 0x412f39
sub eax, edi
mov ebx, eax
mov esi, dword [edi - 0xc]
test esi, esi
jge 0x412f45
or eax, 0xffffffff
jmp 0x412f5e
push str.__DOCTYPE
push edi
call fcn.005a75c4
add esp, 8
test eax, eax
jne 0x412f5c
or eax, 0xffffffff
jmp 0x412f5e
sub eax, edi
mov ecx, dword [esp + 0x18]
push ecx
push ebx
push esi
push eax
lea edx, [esp + 0x30]
push edi
push edx
call fcn.00413f70
add esp, 0x18
push 0
mov dword [esp + 0x1c], 1
call dword [sym.imp.user32.dll_OpenClipboard]
mov ebx, dword [esp + 0x20]
mov eax, dword [ebx - 0xc]
add eax, 1
push eax
push 0x2002
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x412fe5
push esi
call dword [sym.imp.kernel32.dll_GlobalLock]
mov edx, eax
mov ecx, ebx
sub edx, ebx
lea ecx, [ecx]
mov al, byte [ecx]
mov byte [edx + ecx], al
add ecx, 1
test al, al
jne 0x412fb0
push esi
call dword [sym.imp.kernel32.dll_GlobalUnlock]
push esi
push str.HTML_Format
call dword [sym.imp.user32.dll_RegisterClipboardFormatA]
push eax
call dword [sym.imp.user32.dll_SetClipboardData]
test eax, eax
jne 0x412fe5
push esi
call dword [sym.imp.kernel32.dll_GlobalFree]
xor esi, esi
jmp 0x412fe9
mov esi, dword [esp + 0x18]
call dword [sym.imp.user32.dll_CloseClipboard]
cmp ebp, dword [esp + 0x28]
je 0x413001
mov eax, dword [ebp]
mov edx, dword [eax + 4]
push 1
mov ecx, ebp
call edx
add ebx, 0xfffffff0
mov byte [esp + 0x194], 4
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x413025
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
add edi, 0xfffffff0
mov byte [esp + 0x194], 1
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413049
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov dword [esp + 0x194], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413074
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x18c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x170]
xor ecx, esp
call fcn.005a58d9
add esp, 0x184
ret 0xc