Function at 0x4d1cb0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 0x10
push esi
xor esi, esi
push esi
mov dword [esp + 0xc], esi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4d1fc9
mov esi, dword [sym.imp.USER32.dll_GetClipboardData]
push ebx
push ebp
push edi
push 0xd
call esi
mov edi, eax
test edi, edi
mov dword [esp + 0x10], edi
je 0x4d1e23
push edi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
mov dword [esp + 0x18], eax
je 0x4d1fb7
mov eax, dword [esp + 0x28]
cmp ebx, eax
jbe 0x4d1d0a
mov ebx, eax
mov ebp, dword [esp + 0x24]
lea ecx, [ebx + 2]
mov eax, dword [ebp]
mov edx, dword [eax - 0xc]
lea edi, [eax - 0xc]
cmp edx, 1
mov dword [esp + 0x24], edi
jg 0x4d1d28
cmp ecx, dword [eax - 4]
jle 0x4d1d88
mov esi, dword [eax - 8]
cmp ecx, esi
mov dword [esp + 0x28], esi
jge 0x4d1d35
mov ecx, esi
push ecx
mov ecx, ebp
call fcn.00405530
test eax, eax
je 0x4d1e06
lea ecx, [esi + esi + 2]
lea esi, [edi + 0xc]
mov edi, dword [ebp]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0x28]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp]
mov esi, dword [esp + 0x24]
mov dword [ecx - 8], edx
mov eax, dword [0x547574]
cmp esi, eax
je 0x4d1d88
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4d1d88
push esi
call fcn.00532222
add esp, 4
mov eax, dword [ebp]
test eax, eax
je 0x4d1e06
mov esi, dword [esp + 0x18]
mov ecx, ebx
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [eax + ebx], 0
mov byte [eax + ebx + 1], 0
mov esi, dword [ebp]
mov ebx, 1
cmp dword [esi - 0xc], ebx
jle 0x4d1de9
mov ecx, ebp
call fcn.004124c0
mov eax, dword [esi - 8]
mov ecx, ebp
push eax
call fcn.00405530
test eax, eax
je 0x4d1de9
mov ecx, dword [esi - 8]
mov edi, dword [ebp]
lea ecx, [ecx + ecx + 2]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp]
mov dword [esp + 0x14], ebx
mov dword [ecx - 8], eax
mov edx, dword [ebp]
mov word [edx + eax*2], 0
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [esp + 0x14]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x10
ret
push 1
call esi
mov esi, eax
push esi
mov dword [esp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov ebp, eax
mov eax, dword [esp + 0x28]
cmp ebp, eax
jbe 0x4d1e40
mov ebp, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
mov dword [esp + 0x1c], eax
je 0x4d1fb7
mov edi, dword [0x547570]
lea eax, [ebp + 2]
mov dword [esp + 0x28], edi
mov ecx, dword [edi - 0xc]
lea ebx, [edi - 0xc]
cmp ecx, 1
jg 0x4d1e70
cmp eax, dword [edi - 4]
jle 0x4d1ed4
mov edi, dword [edi - 8]
cmp eax, edi
mov dword [esp + 0x18], edi
jge 0x4d1e7d
mov eax, edi
push eax
lea ecx, [esp + 0x2c]
call fcn.00405530
test eax, eax
je 0x4d1f75
lea ecx, [edi + edi + 2]
mov edi, dword [esp + 0x28]
mov edx, ecx
lea esi, [ebx + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
mov dword [eax - 8], ecx
mov eax, dword [0x547574]
cmp ebx, eax
je 0x4d1ed0
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4d1ed0
push ebx
call fcn.00532222
add esp, 4
mov edi, dword [esp + 0x28]
test edi, edi
mov eax, edi
je 0x4d1f75
mov esi, dword [esp + 0x1c]
mov ecx, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [eax + ebp], 0
mov byte [eax + ebp + 1], 0
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov eax, dword [ebp]
cmp eax, ecx
je 0x4d1f75
mov edx, dword [eax - 0xc]
test edx, edx
jge 0x4d1f1e
mov edx, dword [0x547574]
add eax, 0xfffffff4
cmp eax, edx
jne 0x4d1f25
mov eax, dword [ecx - 0xc]
test eax, eax
jge 0x4d1f5d
mov ebx, dword [ecx - 8]
mov esi, ecx
push ebx
mov ecx, ebp
call fcn.00405660
test eax, eax
je 0x4d1f75
mov edi, dword [ebp]
lea eax, [ebx + ebx]
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp]
mov dword [ecx - 8], ebx
mov edx, dword [ebp]
mov word [eax + edx], 0
jmp 0x4d1f75
mov ecx, ebp
call fcn.004124c0
mov eax, dword [esp + 0x28]
mov dword [ebp], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x28]
mov edx, dword [0x547574]
mov dword [esp + 0x14], 1
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4d1fb7
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4d1fb7
mov edx, dword [esp + 0x28]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [esp + 0x14]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x10
ret
mov eax, esi
pop esi
add esp, 0x10
ret