Function at 0x4f683c
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4f6c51
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
mov dl, 1
mov eax, dword [0x439c6c]
call fcn.00404194
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x618]
cmp byte [eax + 0x1c], 0
je 0x4f6a76
mov eax, dword [ebp - 4]
call fcn.0046cf88
push eax
call sub.user32.dll_OpenClipboard
push 0x4f6c64
call sub.user32.dll_RegisterClipboardFormatA
mov ebx, eax
call sub.user32.dll_CloseClipboard
mov edx, ebx
mov eax, dword [ebp - 0x28]
call fcn.0043a354
test al, al
je 0x4f6a76
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x4f6a5a
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
call sub.user32.dll_GetClipboardData
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4f68ef
call fcn.00404a50
jmp 0x4f6c33
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_GlobalLock
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4f691b
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
call dword [edx + 0x14]
mov eax, dword [ebp - 0x28]
call fcn.004041c4
call fcn.00404a50
jmp 0x4f6c33
mov dl, 1
mov eax, dword [0x41adbc]
call fcn.00404194
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x4f6a3c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_GlobalSize
mov ecx, eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
call fcn.0041fa00
push 0
push 0
mov eax, dword [ebp - 0x24]
call fcn.0041f7bc
lea ecx, [ebp - 0x40]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.0041b694
lea edx, [ebp - 0x40]
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.004f3fe8
push 0
push 0
mov eax, dword [ebp - 0x24]
call fcn.0041f7bc
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x4d4fb0]
call fcn.00425e44
mov ebx, eax
mov edx, ebx
mov eax, dword [ebp - 0x24]
call fcn.0041fb2c
mov eax, dword [ebp - 8]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x34], eax
mov eax, dword [ebx + 0x30]
add eax, dword [ebp - 0x38]
dec eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebx + 0x34]
add eax, dword [ebp - 0x34]
dec eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 4]
call fcn.0046cf88
cmp eax, dword [ebx + 0x44]
jne 0x4f69ed
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x2058]
push eax
mov eax, dword [ebp - 4]
lea edx, [eax + 0x2050]
lea ecx, [ebp - 0x38]
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x160]
jmp 0x4f6a16
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x2058]
push eax
lea ecx, [ebp - 0x40]
or edx, 0xffffffff
or eax, 0xffffffff
call fcn.0041b694
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x38]
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x160]
mov eax, dword [ebx + 0x30]
imul dword [ebx + 0x34]
mov dword [ebp - 0x10], eax
mov eax, ebx
call fcn.004041c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f6a43
mov eax, dword [ebp - 0x24]
call fcn.004041c4
ret
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x618]
cmp byte [eax + 0xc], 0
je 0x4f6b8e
mov eax, dword [ebp - 4]
call fcn.0046cf88
push eax
call sub.user32.dll_OpenClipboard
push 0x4f6c7c
call sub.user32.dll_RegisterClipboardFormatA
mov ebx, eax
call sub.user32.dll_CloseClipboard
mov edx, ebx
mov eax, dword [ebp - 0x28]
call fcn.0043a354
test al, al
je 0x4f6b8e
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
call dword [edx + 0x18]
push ebx
call sub.user32.dll_GetClipboardData
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x4f6b17
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x18], 0
je 0x4f6aed
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_GlobalLock
mov dword [ebp - 0x14], eax
jmp 0x4f6af2
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f6b1e
cmp dword [ebp - 0x18], 0
je 0x4f6b0e
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_GlobalUnlock
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
mov dx, 1
mov eax, dword [ebp - 0x28]
call fcn.0043a354
test al, al
jne 0x4f6bab
mov eax, dword [ebp - 0x28]
call fcn.004041c4
jmp 0x4f6c33
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
call dword [edx + 0x18]
push 1
call sub.user32.dll_GetClipboardData
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x4f6c2c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x18], 0
je 0x4f6bdf
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_GlobalLock
mov dword [ebp - 0x14], eax
jmp 0x4f6be4
xor eax, eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4f6bff
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004f62f8
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f6c33
cmp dword [ebp - 0x18], 0
je 0x4f6c1b
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_GlobalUnlock
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
call dword [edx + 0x14]
mov eax, dword [ebp - 0x28]
call fcn.004041c4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f6c58
lea eax, [ebp - 0x44]
call fcn.00405050
lea eax, [ebp - 0x20]
call fcn.00405050
ret