Function at 0x499db0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je case.0x499dd4.7
cmp byte [ebx], 0
je case.0x499dd4.7
mov eax, dword [ebp + 0xc]
cmp eax, 0xd
ja case.0x499dd4.7
jmp dword [eax*4 + 0x499fb4]
mov ecx, dword [0x504d88]
test ecx, ecx
je case.0x499dd4.7
mov eax, dword [ebx + 0x38]
cmp eax, 1
je 0x499dfa
cmp eax, 2
jne case.0x499dd4.7
cmp dword [ebx + 0x34], 0xffffffff
je case.0x499dd4.7
mov eax, dword [ecx]
push ebx
call dword [eax + 0x40]
pop ebx
pop ebp
ret
mov ecx, dword [0x504d88]
test ecx, ecx
je case.0x499dd4.7
cmp dword [ebx + 0x38], 4
jge case.0x499dd4.7
cmp dword [ebx + 0x34], 0xffffffff
je case.0x499dd4.7
mov eax, dword [ecx]
push ebx
call dword [eax + 0x44]
pop ebx
pop ebp
ret
mov ecx, dword [0x504d88]
test ecx, ecx
je case.0x499dd4.7
cmp dword [ebx + 0x38], 4
jge case.0x499dd4.7
cmp dword [ebx + 0x34], 0xffffffff
je case.0x499dd4.7
mov eax, dword [ecx]
push ebx
call dword [eax + 0x48]
pop ebx
pop ebp
ret
push 1
push ebx
push 0
call fcn.0042fa80
add esp, 0xc
pop ebx
pop ebp
ret
cmp dword [0x504d88], 0
je case.0x499dd4.7
push ebx
call fcn.004aaf10
add esp, 4
test al, al
jne case.0x499dd4.7
mov ecx, dword [0x504d88]
push 0
push ebx
push 0x25
mov eax, dword [ecx]
call dword [eax + 0x18]
pop ebx
pop ebp
ret
cmp dword [0x504d88], 0
je case.0x499dd4.7
call fcn.0048c9d0
test eax, eax
je case.0x499dd4.7
mov ecx, dword [0x504d88]
push eax
push ebx
push 6
mov edx, dword [ecx]
call dword [edx + 0x88]
pop ebx
pop ebp
ret
mov ecx, dword [0x504d88]
test ecx, ecx
je case.0x499dd4.7
cmp dword [ebx + 0x34], 0xffffffff
je case.0x499dd4.7
mov eax, dword [ecx]
push 0
push ebx
push 0x38
call dword [eax + 0x18]
pop ebx
pop ebp
ret
mov ecx, dword [0x504d88]
test ecx, ecx
je case.0x499dd4.7
mov eax, dword [ecx]
push 0
push ebx
push 0x35
call dword [eax + 0x18]
pop ebx
pop ebp
ret
mov ecx, dword [0x504d88]
test ecx, ecx
je case.0x499dd4.7
mov eax, dword [ecx]
push 0
push ebx
push 0x37
call dword [eax + 0x18]
pop ebx
pop ebp
ret
push 0x4d66e4
push ebx
call fcn.00418ad0
add esp, 8
pop ebx
pop ebp
ret
mov ecx, dword [0x504d88]
test ecx, ecx
je case.0x499dd4.7
cmp dword [ebx + 0x34], 0xffffffff
je case.0x499dd4.7
mov eax, dword [ecx]
push 0
push ebx
push 5
call dword [eax + 0x24]
pop ebx
pop ebp
ret
mov ecx, dword [0x504d88]
test ecx, ecx
je case.0x499dd4.7
cmp dword [ebx + 0x34], 0xffffffff
je case.0x499dd4.7
mov eax, dword [ecx]
push ebx
call dword [eax + 0x4c]
pop ebx
pop ebp
ret
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je case.0x499dd4.7
mov ecx, ebx
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x499f60
sub ecx, edx
push esi
push edi
mov dword [ebp + 8], ecx
lea eax, [ecx + 1]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [ebp + 8]
mov esi, eax
push ebx
push esi
call sub.MSVCR120.dll_memcpy
mov eax, dword [ebp + 8]
add esp, 0xc
push edi
mov byte [esi + eax], 0
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
pop edi
pop esi
pop ebx
pop ebp
jmp dword [sym.imp.USER32.dll_CloseClipboard]