Function at 0x4a4854
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
mov ebx, ecx
mov dword [ebp - 0xc], ebx
call fcn.004a36a4
push eax
call fcn.004a85be
add esp, 4
test al, al
je 0x4a4b71
push esi
xor eax, eax
lea ecx, [ebp - 0x24]
push edi
inc eax
push eax
push dword [ebx + 0x2a8]
call fcn.0042b5c9
mov ecx, ebx
call fcn.004392b6
mov edi, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test al, al
je 0x4a48bc
movzx eax, word [ebx + 0x79e]
push eax
call edi
test eax, eax
jne 0x4a48b7
movzx eax, word [ebx + 0x7a0]
push eax
call edi
test eax, eax
je 0x4a48bc
push 2
pop esi
jmp 0x4a48be
xor esi, esi
cmp dword [ebx + 0x530], 1
mov ecx, ebx
sete al
movzx eax, al
push eax
call fcn.0043b299
movzx eax, word [ebx + 0x79a]
push eax
call edi
mov edi, dword [sym.imp.USER32.dll_GetClipboardData]
test eax, eax
setne cl
mov byte [ebp - 1], cl
test eax, eax
jne 0x4a493f
movzx eax, word [ebx + 0x79c]
push eax
call edi
push eax
lea ecx, [ebp - 0x1c]
call fcn.004a7d8c
lea ecx, [ebp - 0x1c]
call fcn.004a7ed2
test al, al
je 0x4a4934
lea ecx, [ebp - 0x1c]
call fcn.004a8750
xor ecx, ecx
inc ecx
cmp eax, ecx
jne 0x4a4928
mov eax, dword [ebp - 0x18]
mov byte [ebp - 1], cl
cmp byte [eax], 2
je 0x4a492c
mov byte [ebp - 1], 0
lea ecx, [ebp - 0x1c]
call fcn.004a88d8
lea ecx, [ebp - 0x1c]
call fcn.004a7e53
mov cl, byte [ebp - 1]
push 1
test cl, cl
pop eax
cmovne esi, eax
push 0xd
mov dword [ebp - 8], esi
call edi
push eax
lea ecx, [ebp - 0x1c]
call fcn.004a7d8c
lea ecx, [ebp - 0x1c]
call fcn.004a7ed2
test al, al
je 0x4a4a38
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x4a4a2b
lea ecx, [ebp - 0x30]
call fcn.0042141b
mov ecx, ebx
call fcn.0043ff52
test al, al
je 0x4a49c2
lea ecx, [ebp - 0x1c]
call fcn.004a8750
mov esi, eax
shr esi, 1
push esi
push edi
call fcn.004aa14f
pop ecx
mov edi, eax
pop ecx
lea ecx, [edi + 1]
push ecx
lea ecx, [ebp - 0x30]
call fcn.004a8df8
push edi
push 0
lea ecx, [ebp - 0x30]
call fcn.0042156e
push eax
push esi
push dword [ebp - 0x18]
call fcn.004aa1ab
add esp, 0x10
jmp 0x4a4a0d
mov ecx, ebx
call fcn.004a42bf
mov ebx, eax
xor eax, eax
push eax
push eax
push eax
push eax
push 0xffffffffffffffff
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push eax
push ebx
call edi
dec eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea esi, [eax + 1]
push esi
call fcn.004a8df8
xor eax, eax
lea ecx, [ebp - 0x30]
push eax
push eax
push esi
push eax
call fcn.0042156e
push eax
push 0xffffffffffffffff
push dword [ebp - 0x18]
push 0
push ebx
call edi
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
push dword [ebp - 8]
lea ecx, [ebp - 0x30]
push edi
push 0
call fcn.0042156e
push eax
mov ecx, ebx
call fcn.0043b296
lea ecx, [ebp - 0x30]
call fcn.00421536
lea ecx, [ebp - 0x1c]
call fcn.004a88d8
jmp 0x4a4b52
xor eax, eax
inc eax
push eax
call edi
push eax
lea ecx, [ebp - 0x14]
call fcn.004a7d8c
lea ecx, [ebp - 0x14]
call fcn.004a7ed2
test al, al
je 0x4a4b4a
cmp dword [ebp - 0x10], 0
je 0x4a4b42
lea ecx, [ebp - 0x14]
call fcn.004a8750
xor ecx, ecx
mov edi, eax
test eax, eax
je 0x4a4a84
mov edx, dword [ebp - 0x10]
cmp edi, eax
jne 0x4a4a7f
cmp byte [ecx + edx], 0
cmove edi, ecx
inc ecx
cmp ecx, eax
jb 0x4a4a74
mov ecx, ebx
call fcn.0043ff52
test al, al
je 0x4a4b36
lea ecx, [ebp - 1]
lea esi, [edi + 1]
call fcn.0042b15a
push eax
push esi
lea ecx, [ebp - 0x30]
call fcn.0042b32b
push esi
push 0
lea ecx, [ebp - 0x30]
call fcn.0042bdb5
push eax
push edi
push dword [ebp - 0x10]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
lea ecx, [ebp - 0x30]
push esi
push 0
call fcn.0042bdb5
push eax
call fcn.004aa14f
pop ecx
pop ecx
lea ecx, [ebp - 1]
mov edi, eax
call fcn.0042b154
push eax
lea ecx, [edi + 1]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.0042b279
push edi
push 0
lea ecx, [ebp - 0x3c]
call fcn.0042156e
push eax
push esi
push 0
lea ecx, [ebp - 0x30]
call fcn.0042bdb5
push eax
call fcn.004aa1ab
add esp, 0x10
lea ecx, [ebp - 0x3c]
push dword [ebp - 8]
push edi
push 0
call fcn.0042156e
push eax
mov ecx, ebx
call fcn.0043b296
lea ecx, [ebp - 0x3c]
call fcn.00421536
lea ecx, [ebp - 0x30]
call fcn.0042bb13
jmp 0x4a4b42
push esi
push edi
push dword [ebp - 0x10]
mov ecx, ebx
call fcn.0043b296
lea ecx, [ebp - 0x14]
call fcn.004a88d8
lea ecx, [ebp - 0x14]
call fcn.004a7e53
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x30]
lea ecx, [ebp - 0x1c]
call fcn.004a7e53
lea ecx, [ebp - 0x24]
call fcn.0042bb56
pop edi
pop esi
pop ebx
leave
ret