Function at 0x4175ca
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41ff5a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x88
push esi
mov dword [ebp - 0x90], ecx
mov ecx, dword [ebp + 0xc]
call fcn.00417b80
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 1
je 0x41781c
cmp dword [ebp - 0x94], 7
je 0x4177b0
cmp dword [ebp - 0x94], 0xd
je 0x417656
jmp 0x417891
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
add edx, 2
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x20]
add ecx, 2
push ecx
push 1
call fcn.00417ad2
add esp, 0xc
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x400
lea ecx, [ebp - 0x54]
call sub.MFC42.DLL_CMemFile::CMemFile
mov dword [ebp - 4], 0
push 0
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x14]
push edx
lea ecx, [ebp - 0x54]
call sub.MFC42.DLL_CMemFile::Attach
lea ecx, [ebp - 0x54]
call sub.MFC42.DLL_CFile::GetLength
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
cdq
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x88], eax
mov ecx, dword [ebp - 0x88]
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp - 0x24]
cdq
sub eax, edx
sar eax, 1
mov edx, dword [ebp - 0x28]
mov word [edx + eax*2], 0
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x54]
call fcn.00417b40
lea ecx, [ebp - 0x54]
call sub.MFC42.DLL_CMemFile::Detach
mov dword [ebp - 0x2c], 0
jmp 0x417724
mov edx, dword [ebp - 0x2c]
add edx, 1
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x24]
cdq
sub eax, edx
sar eax, 1
cmp dword [ebp - 0x2c], eax
jge 0x41775c
xor eax, eax
mov ax, word [0x42bb5c]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
xor esi, esi
mov si, word [edx + ecx*2]
cmp eax, esi
jne 0x41775a
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
mov dx, word [0x42bb60]
mov word [ecx + eax*2], dx
jmp 0x41771b
mov eax, dword [ebp - 0x28]
push eax
lea ecx, [ebp - 0x64]
call fcn.00417c00
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x64]
push ecx
mov ecx, dword [ebp + 0xc]
call sub.MFC42.DLL_COleVariant::operator_3
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x8c], edx
mov eax, dword [ebp - 0x8c]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.0040bbf0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.0041d77a
jmp 0x417895
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x20]
add ecx, 1
push ecx
push 1
call fcn.00417ad2
add esp, 0xc
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x74]
call fcn.004093e0
mov dword [ebp - 4], 2
lea edx, [ebp - 0x74]
push edx
mov ecx, dword [ebp + 0xc]
call sub.MFC42.DLL_COleVariant::operator_2
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.004093c0
jmp 0x417895
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x20]
add eax, 1
push eax
push 1
call fcn.00417ad2
add esp, 0xc
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x84]
call fcn.004093e0
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x84]
push ecx
mov ecx, dword [ebp + 0xc]
call sub.MFC42.DLL_COleVariant::operator_2
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x84]
call fcn.004093c0
jmp 0x417895
xor eax, eax
jmp 0x4178bc
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [ebp - 0x10], 0
jle 0x4178b7
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
push 2
call fcn.00417ad2
add esp, 0xc
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 8