Function at 0x413720
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cdb08
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x4f5568]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
setne bl
mov byte [ebp + 0xb], bl
mov dword [ebp - 4], 0
test bl, bl
je 0x413a53
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x413a53
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x10], 0
mov dword [edi + 0xc], 0
mov dword [edi + 8], 0
mov dword [edi + 4], 0
mov esi, dword [eax + 0xc]
sub esi, dword [eax + 8]
add esi, dword [eax + 4]
mov dword [edi], 0
jne 0x4137af
mov bh, 1
jmp 0x413a55
mov eax, dword [eax + 8]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], eax
add eax, esi
mov dword [ebp - 0x2c], 0x4df9e0
mov dword [ebp - 0x24], eax
push ecx
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 1
call fcn.00489950
mov byte [ebp - 4], 2
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x44], eax
xor bh, bh
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x34], esi
mov eax, dword [eax]
test byte [eax + 3], 1
je 0x4138d3
lea ecx, [ebp - 0x50]
call fcn.00412c60
mov dword [ebp - 0x10], eax
test eax, eax
jle 0x4138d3
push eax
call fcn.004aca50
add esp, 4
lea ecx, [ebp - 0x50]
mov esi, eax
mov dword [ebp - 0x1c], esi
push dword [ebp - 0x10]
push esi
call fcn.00412cc0
push dword [ebp - 0x10]
push esi
push dword [edi]
call fcn.00489ca0
add esp, 0xc
mov dword [edi], eax
push 0
push 0
push dword [ebp - 0x10]
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x18], eax
test eax, eax
jle 0x4138bb
add eax, eax
push eax
mov eax, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 0x2002
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4138bb
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4138b2
push dword [ebp - 0x18]
push eax
push dword [ebp - 0x10]
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push dword [ebp - 0x14]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
test esi, esi
jle 0x4138b2
push dword [ebp - 0x14]
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x4138b0
mov ecx, dword [ebp - 0x18]
lea eax, [ecx + ecx]
mov dword [edi + 4], eax
jmp 0x4138bb
mov bh, 1
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4138cb
push eax
call fcn.004ad334
add esp, 4
test bh, bh
jne 0x4139e1
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
shr eax, 0x19
test al, 1
je 0x413944
lea ecx, [ebp - 0x50]
call fcn.00412c60
mov dword [ebp - 0x18], eax
test eax, eax
jle 0x413944
push eax
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4139e1
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x41393d
push dword [ebp - 0x18]
lea ecx, [ebp - 0x50]
push eax
call fcn.00412cc0
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push dword [0x503bbc]
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x41393d
mov eax, dword [ebp - 0x18]
mov dword [edi + 8], eax
jmp 0x413944
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
shr eax, 0x1a
test al, 1
je 0x4139b2
lea ecx, [ebp - 0x50]
call fcn.00412c60
mov dword [ebp - 0x18], eax
test eax, eax
jle 0x4139b2
push eax
mov eax, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 0x2002
call eax
mov esi, eax
test esi, esi
je 0x4139e1
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4139ab
push dword [ebp - 0x18]
lea ecx, [ebp - 0x50]
push eax
call fcn.00412cc0
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push dword [0x503bc0]
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x4139ab
mov eax, dword [ebp - 0x18]
mov dword [edi + 0xc], eax
jmp 0x4139b2
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
shr eax, 0x1b
test al, 1
je 0x413a1f
lea ecx, [ebp - 0x50]
call fcn.00412c60
mov dword [ebp + 0xc], eax
test eax, eax
jle 0x413a1f
push eax
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x4139e5
xor bh, bh
jmp 0x413a21
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x413a18
push dword [ebp + 0xc]
lea ecx, [ebp - 0x50]
push eax
call fcn.00412cc0
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0x11
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x413a18
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x10], eax
jmp 0x413a1f
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov bh, 1
push dword [ebp - 0x30]
mov dword [ebp - 0x50], vtable.rdr::ZlibInStream.0
call fcn.004ad35b
push dword [ebp - 0x38]
call fcn.004aa650
push dword [ebp - 0x38]
call fcn.004ad35b
add esp, 0xc
mov dword [ebp - 0x50], vtable.rdr::InStream.0
mov dword [ebp - 0x2c], vtable.rdr::InStream.0
jmp 0x413a55
xor bh, bh
test bl, bl
je 0x413a5f
call dword [sym.imp.USER32.dll_CloseClipboard]
mov al, bh
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8