Function at 0x41b840
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54861d
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x5b0008]
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 al
mov byte [ebp - 0xd], al
mov dword [ebp - 4], 0
test al, al
je 0x41bb5e
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x41bb5e
mov ebx, 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 [ebx + 0xc]
add esi, dword [ebx + 4]
sub esi, dword [ebx + 8]
mov dword [edi], 0
jne 0x41b8cf
mov bl, 1
jmp 0x41bb60
mov eax, dword [ebx + 8]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], eax
add eax, esi
mov dword [ebp - 0x2c], 0x56a004
mov dword [ebp - 0x24], eax
push ecx
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 1
call fcn.004a1550
mov byte [ebp - 4], 2
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], eax
mov eax, dword [ebx]
mov dword [ebp - 0x34], esi
mov byte [ebp + 0xb], 0
test byte [eax + 3], 1
je 0x41b9fe
lea ecx, [ebp - 0x50]
call fcn.0041ab30
mov dword [ebp + 0xc], eax
test eax, eax
jle 0x41b9fe
push eax
call fcn.005194aa
add esp, 4
lea ecx, [ebp - 0x50]
mov esi, eax
mov dword [ebp - 0x14], esi
push dword [ebp + 0xc]
push esi
call fcn.0041ab90
push dword [ebp + 0xc]
push esi
push dword [edi]
call sym.winvnc.exe_crc32_z
add esp, 0xc
mov dword [edi], eax
push 0
push 0
push dword [ebp + 0xc]
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
test eax, eax
jle 0x41b9eb
mov ecx, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
add eax, eax
push eax
push 0x2002
call ecx
mov dword [ebp - 0x18], eax
test eax, eax
je 0x41b9eb
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x41b9e2
push dword [ebp - 0x1c]
push eax
push dword [ebp + 0xc]
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push dword [ebp - 0x18]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
test esi, esi
jle 0x41b9df
push dword [ebp - 0x18]
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x41b9db
mov ecx, dword [ebp - 0x1c]
push dword [ebp - 0x14]
lea eax, [ecx + ecx]
mov dword [edi + 4], eax
call fcn.00519467
add esp, 4
jmp 0x41b9fe
mov byte [ebp + 0xb], 1
mov esi, dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push esi
call fcn.00519467
add esp, 4
cmp byte [ebp + 0xb], 0
jne 0x41bb03
mov eax, dword [ebx]
mov eax, dword [eax]
shr eax, 0x19
test al, 1
je 0x41ba6c
lea ecx, [ebp - 0x50]
call fcn.0041ab30
mov dword [ebp + 8], eax
test eax, eax
jle 0x41ba6c
push eax
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x41bb03
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x41ba65
push dword [ebp + 8]
lea ecx, [ebp - 0x50]
push eax
call fcn.0041ab90
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push dword [0x5be058]
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x41ba65
mov eax, dword [ebp + 8]
mov dword [edi + 8], eax
jmp 0x41ba6c
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebx]
mov eax, dword [eax]
shr eax, 0x1a
test al, 1
je 0x41bad8
lea ecx, [ebp - 0x50]
call fcn.0041ab30
mov dword [ebp + 8], eax
test eax, eax
jle 0x41bad8
mov ecx, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
push 0x2002
call ecx
mov esi, eax
test esi, esi
je 0x41bb03
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x41bad1
push dword [ebp + 8]
lea ecx, [ebp - 0x50]
push eax
call fcn.0041ab90
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push dword [0x5be054]
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x41bad1
mov eax, dword [ebp + 8]
mov dword [edi + 0xc], eax
jmp 0x41bad8
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebx]
mov eax, dword [eax]
shr eax, 0x1b
test al, 1
je 0x41bb4b
lea ecx, [ebp - 0x50]
call fcn.0041ab30
mov ebx, eax
test ebx, ebx
jle 0x41bb4b
push ebx
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x41bb16
lea ecx, [ebp - 0x50]
xor bl, bl
call fcn.004a1730
mov dword [ebp - 0x2c], vtable.rdr::InStream.0
jmp 0x41bb66
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x41bb44
push ebx
push eax
lea ecx, [ebp - 0x50]
call fcn.0041ab90
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0x11
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x41bb44
mov dword [edi + 0x10], ebx
jmp 0x41bb4b
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea ecx, [ebp - 0x50]
mov bl, 1
call fcn.004a1730
mov dword [ebp - 0x2c], vtable.rdr::InStream.0
jmp 0x41bb66
xor bl, bl
cmp byte [ebp - 0xd], 0
je 0x41bb6c
call dword [sym.imp.USER32.dll_CloseClipboard]
mov al, bl
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