Function at 0x4fdcbc
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x8b7a6a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], ebx
xor ebx, ebx
push 1
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
jne 0x4fdcf8
xor ebx, ebx
jmp 0x4fded3
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x4fdd0b
xor ebx, ebx
jmp 0x4fded3
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x4fdecd
push eax
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x4fdecd
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x4fdd50
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x4fdecd
mov eax, dword [ebp + 8]
mov esi, dword [eax + 4]
test esi, esi
je 0x4fdd66
movzx eax, byte [esi - 1]
test eax, eax
jne 0x4fe06a
test esi, esi
je 0x4fdd74
mov eax, dword [ebp + 8]
mov byte [esi - 1], 0xff
mov esi, dword [eax + 4]
mov edi, esi
test esi, esi
je 0x4fdd86
movzx eax, byte [esi - 1]
test eax, eax
jne 0x4fe047
test esi, esi
je 0x4fdd94
mov eax, dword [ebp + 8]
mov byte [esi - 1], 0xff
mov esi, dword [eax + 4]
mov eax, dword [ebp + 8]
mov edx, dword [eax + 8]
test esi, esi
je 0x4fe03d
lea ebx, [esi + edx]
je 0x4fddb3
movzx eax, byte [esi - 1]
test eax, eax
jne 0x4fe01c
test esi, esi
je 0x4fddc1
mov eax, dword [ebp + 8]
mov byte [esi - 1], 0xff
mov esi, dword [eax + 4]
test edi, edi
je 0x4fe012
mov eax, edi
sub eax, esi
mov dword [ebp - 0x2c], eax
test ebx, ebx
je 0x4fe00b
sub ebx, edi
mov edx, dword [ebp + 8]
cmp eax, dword [edx + 8]
jbe 0x4fdded
call fcn.00889a1b
mov eax, dword [ebp + 8]
mov esi, dword [eax + 4]
test esi, esi
je 0x4fde00
movzx eax, byte [esi - 1]
lea edx, [esi - 1]
test eax, eax
jne 0x4fdf7b
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov edx, eax
sub edx, dword [ebp - 0x2c]
cmp edx, ebx
mov esi, edx
jb 0x4fde13
mov esi, ebx
test esi, esi
jbe 0x4fde5d
mov edx, dword [ebp + 8]
mov ebx, dword [ebp - 0x2c]
mov ecx, dword [edx + 4]
lea edx, [ebx + ecx]
lea edi, [ebx + esi]
add edi, ecx
add ebx, esi
neg ebx
add ebx, eax
push ebx
push edi
push edx
call fcn.008988c0
add esp, 0xc
mov ecx, dword [ebp + 8]
push 0
mov ebx, dword [ecx + 8]
sub ebx, esi
push ebx
call fcn.00404278
movzx eax, al
test eax, eax
je 0x4fde5d
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
mov dword [eax + 8], ebx
mov byte [edx + ebx], 0
mov ebx, dword [ebp - 0x24]
add ebx, 1
mov eax, 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
je 0x4fde89
test ebx, ebx
jne 0x4fde7c
xor eax, eax
jmp 0x4fde83
push ebx
call fcn.00898760
pop ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x24]
test edx, edx
je 0x4fdeec
mov edx, dword [ebp - 0x28]
mov dl, byte [edx]
test dl, dl
je 0x4fdeec
cmp dl, 0xd
je 0x4fdf72
mov esi, dword [ebp - 0x28]
mov edi, esi
mov dl, byte [edi]
add esi, 1
mov dword [ebp - 0x28], esi
mov ecx, eax
add eax, 1
mov byte [ecx], dl
mov edx, dword [ebp - 0x24]
add edx, 0xffffffff
mov dword [ebp - 0x24], edx
jne 0x4fde9a
jmp 0x4fdeec
call dword [sym.imp.USER32.dll_CloseClipboard]
mov edi, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x38]
mov eax, ebx
mov ebx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov byte [eax], 0
mov esi, dword [ebp - 0x18]
mov edi, esi
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x4fdf0a
add ecx, 1
add eax, 1
mov dl, byte [ecx]
test dl, dl
jne 0x4fdefe
mov ecx, dword [ebp + 8]
push 1
mov ebx, eax
push ebx
call fcn.00404278
movzx edx, al
test edx, edx
je 0x4fdf3f
mov edx, dword [ebp + 8]
mov edi, dword [edx + 4]
mov ecx, ebx
push ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
pop ecx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebp + 8]
mov esi, dword [edx + 4]
mov dword [edx + 8], ebx
mov byte [esi + ebx], 0
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4fdf68
push eax
call fcn.00888fb0
pop ecx
mov ebx, 1
jmp 0x4fdd41
add dword [ebp - 0x28], 1
jmp 0x4fdec0
cmp eax, 0xff
je 0x4fde00
test esi, esi
je 0x4fdf95
test eax, eax
jne 0x4fdffe
push edx
call fcn.00888fb0
pop ecx
mov edx, dword [ebp + 8]
xor eax, eax
mov dword [edx + 4], eax
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
mov edi, esi
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x4fdfbb
add ecx, 1
add eax, 1
mov dl, byte [ecx]
test dl, dl
jne 0x4fdfaf
mov ecx, dword [ebp + 8]
push 1
mov dword [ebp - 0x30], eax
push eax
call fcn.00404278
movzx eax, al
test eax, eax
je 0x4fde00
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x30]
mov edi, dword [eax + 4]
push ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
pop ecx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x30]
mov edx, dword [eax + 4]
mov dword [eax + 8], ecx
mov byte [edx + ecx], 0
jmp 0x4fde00
cmp eax, 0xff
je 0x4fdf8e
dec al
mov byte [edx], al
jmp 0x4fdf95
xor ebx, ebx
jmp 0x4fddda
xor eax, eax
mov dword [ebp - 0x2c], eax
jmp 0x4fddd0
cmp eax, 0xff
je 0x4fddb3
mov ecx, dword [ebp + 8]
push 0
push edx
call fcn.00404278
mov eax, dword [ebp + 8]
mov esi, dword [eax + 4]
jmp 0x4fddb3
mov ebx, 0
jmp 0x4fdda5
cmp eax, 0xff
je 0x4fdd86
mov ecx, dword [ebp + 8]
push 0
push dword [ecx + 8]
call fcn.00404278
mov eax, dword [ebp + 8]
mov esi, dword [eax + 4]
jmp 0x4fdd86
cmp eax, 0xff
je 0x4fdd66
mov ecx, dword [ebp + 8]
push 0
push dword [ecx + 8]
call fcn.00404278
mov eax, dword [ebp + 8]
mov esi, dword [eax + 4]
jmp 0x4fdd66