Function at 0x49d6c0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x1c]
test eax, eax
push ebp
push esi
mov esi, dword [esp + 0x14]
mov ebp, edx
push edi
mov dword [esp + 0xc], ebp
jne 0x49d6e3
mov edi, 1
mov dword [esp + 0x24], edi
jmp 0x49d74b
mov eax, dword [esi + 8]
test eax, eax
jne 0x49d708
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push 1
push eax
push edx
mov edx, dword [ebp]
push esi
call fcn.004f48e0
pop edi
pop esi
pop ebp
add esp, 8
ret 0x14
mov eax, dword [esi + 0x40]
test eax, eax
je 0x49d8e2
cmp dword [eax + 0x1c], 1
je 0x49d727
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 8
ret 0x14
mov ecx, dword [eax + 0xc]
test ecx, ecx
jne 0x49d8af
mov eax, dword [eax]
push eax
call fcn.005705cb
add esp, 4
test eax, eax
mov dword [esp + 0x24], eax
jl 0x49d8af
mov edi, eax
mov ecx, dword [0x5b4314]
push ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x49d8af
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
test eax, eax
mov dword [esp + 0x10], eax
je 0x49d8a9
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x49d89d
mov edx, dword [esp + 0x20]
mov byte [edx], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x49d790
sub eax, edx
push 0xa
push ebx
mov dword [esp + 0x2c], eax
call fcn.00570260
mov ebp, 1
add esp, 8
cmp edi, ebp
mov esi, eax
je 0x49d7d9
test esi, esi
je 0x49d820
mov al, byte [esi + 1]
inc esi
cmp al, 0xd
jne 0x49d7c0
inc esi
cmp byte [esi], 0
je 0x49d820
push 0xa
push esi
mov ebx, esi
call fcn.00570260
add esp, 8
inc ebp
cmp ebp, edi
mov esi, eax
jne 0x49d7b3
test esi, esi
je 0x49d7e0
mov byte [esi], 0
mov edi, dword [esp + 0x20]
xor eax, eax
mov ecx, 0xf9
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x3b5
stosb byte es:[edi], al
mov edi, dword [esp + 0x24]
push ebx
push edi
call fcn.00570120
add esp, 0xc
test esi, esi
je 0x49d80a
mov byte [esi], 0xa
push 0xd
push edi
call fcn.00570260
mov edi, dword [esp + 0x30]
add esp, 8
test eax, eax
je 0x49d820
mov byte [eax], 0
test edi, edi
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
mov esi, dword [esp + 0x20]
jne 0x49d83a
push ebp
push 0x583948
push esi
call ebx
add esp, 0xc
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x49d895
mov ecx, eax
mov edx, dword [ecx]
push 0x2e
push edx
call fcn.00570980
add esp, 8
test eax, eax
je 0x49d895
push str..len
push eax
call fcn.005809c6
add esp, 8
test eax, eax
jne 0x49d892
test edi, edi
je 0x49d880
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x49d873
sub eax, edx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
push eax
push 0x583948
push esi
call ebx
add esp, 0xc
jmp 0x49d895
mov byte [esi], 0
mov ebp, dword [esp + 0x10]
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
pop ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x49d8e2
mov eax, dword [esi + 8]
test eax, eax
jle 0x49d8db
mov edi, edi
mov edx, dword [esi + 0x40]
mov ecx, dword [ebp]
call fcn.004c7fe0
mov dword [ebp], eax
mov ecx, dword [esi + 8]
dec ecx
mov eax, ecx
test eax, eax
mov dword [esi + 8], ecx
jg 0x49d8c0
mov dword [esi + 8], 0
pop edi
pop esi
mov eax, 2
pop ebp
add esp, 8
ret 0x14