Function at 0x421d00
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov eax, dword [0x4d1dc0]
push esi
xor esi, esi
cmp eax, esi
mov dword [0x4d299c], esi
je 0x4213cd
cmp dword [0x4d1dc4], esi
je 0x4213c6
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [0x4d1dc0]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [0x4d1dc0], esi
mov dword [0x4d1dc4], esi
mov dword [0x4d1dc8], esi
mov dword [0x4d1da8], esi
mov dword [0x4d1dcc], esi
pop esi
ret
push ecx
push ebp
xor ebp, ebp
cmp dword [0x4de494], ebp
je 0x421ff8
cmp dword [0x4d299c], ebp
jne 0x421ff8
push esi
mov esi, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
push 0xd
call esi
test eax, eax
je 0x421d35
mov dword [esp + 8], 0xd
jmp 0x421d5b
push 1
call esi
test eax, eax
je 0x421d47
mov dword [esp + 8], 1
jmp 0x421d5b
push 7
call esi
test eax, eax
je 0x421ff7
mov dword [esp + 8], 7
mov eax, dword [0x4d1dc0]
cmp eax, ebp
mov dword [0x4d1da8], ebp
je 0x421d71
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp dword [0x4d9694], ebp
push ebx
setg al
push edi
push ecx
mov dword [0x4d1dc0], ebp
mov dword [0x4d1dc4], ebp
mov dword [0x4d1dc8], ebp
mov dword [0x4d1d90], ebp
mov dword [0x4d1dcc], eax
mov dword [0x4d1d94], ebp
mov dword [0x4d1d88], ebp
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x421e88
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.USER32.dll_GetClipboardData]
mov ebx, eax
cmp ebx, ebp
je 0x421e82
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp esi, 0xd
jne 0x421df4
push ebp
push ebp
push ebp
push ebp
push 0xffffffffffffffff
mov edi, eax
push edi
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, dword [esp + 0x10]
mov esi, eax
jmp 0x421e12
mov ebp, eax
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x421e00
mov edi, dword [esp + 0x10]
sub eax, edx
lea esi, [eax + 1]
cmp dword [esp + 0x20], 0
je 0x421e1c
add esi, 0xc
cmp dword [esp + 0x1c], 0
je 0x421e26
add esi, 1
push esi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [0x4d1dc0], eax
je 0x421e7b
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
mov dword [0x4d1dc4], eax
je 0x421e7b
cmp dword [esp + 0x10], 0xd
jne 0x421e64
push 0
push 0
push esi
push eax
push 0xffffffffffffffff
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
jmp 0x421e71
push 0xffffffffffffffff
push ebp
push esi
push eax
call fcn.0046fb1a
add esp, 0x10
mov dword [0x4d299c], 1
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
cmp dword [0x4d299c], 1
je 0x421e9d
pop edi
pop ebx
pop esi
pop ebp
add esp, 4
jmp 0x4213a0
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
push esi
push ebx
call fcn.004210c0
add esp, 8
test eax, eax
jne 0x421ebf
pop edi
pop ebx
pop esi
pop ebp
add esp, 4
jmp 0x4213a0
push esi
push ebx
call fcn.00421110
add esp, 8
test eax, eax
jne 0x421ed9
pop edi
pop ebx
pop esi
pop ebp
add esp, 4
jmp 0x4213a0
mov edx, dword [esp + 0x18]
push esi
push ebx
push edx
call fcn.00421c80
add esp, 0xc
test eax, eax
jne 0x421ef8
pop edi
pop ebx
pop esi
pop ebp
add esp, 4
jmp 0x4213a0
mov eax, dword [0x4d1dc4]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x421f00
sub eax, edx
test ebx, ebx
mov esi, eax
lea ebp, [esi + 1]
mov edi, ebp
je 0x421f19
add edi, 1
cmp dword [esp + 0x20], 0
je 0x421f23
add edi, 0xc
mov eax, dword [0x4d1dc0]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalSize]
cmp eax, edi
jae 0x421f75
mov ecx, dword [0x4d1dc0]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [0x4d1dc0]
push 0
push edi
push edx
mov dword [0x4d1dc4], 0
call dword [sym.imp.KERNEL32.dll_GlobalReAlloc]
test eax, eax
je 0x421ff5
push eax
mov dword [0x4d1dc0], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [0x4d1dc4], eax
jmp 0x421f7a
mov eax, dword [0x4d1dc4]
test ebx, ebx
je 0x421f8b
mov byte [eax + esi], 0xd
mov esi, ebp
mov byte [eax + esi], 0
add esi, 1
cmp dword [esp + 0x20], 0
je 0x421fde
mov eax, dword [0x4d1dc0]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov edi, eax
mov eax, dword [0x4d1dc4]
push esi
push eax
lea ecx, [edi - 6]
push ecx
add eax, 6
push eax
call fcn.0047070a
mov edx, dword [0x4d1dc4]
push 6
push str.e_200
push edi
push edx
call fcn.0047068f
mov eax, dword [0x4d1dc4]
push 0xffffffffffffffff
push str.e_201
push edi
push eax
call fcn.004723db
add esp, 0x30
mov ecx, dword [0x4d1dc0]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4d1dc4], 0
pop edi
pop ebx
pop esi
pop ebp
pop ecx
ret