Function at 0x4226e0
Capabilities:
Open clipboard
Read clipboard data
Write clipboard data

Disassembly:
sub esp, 0xd4
push edi
mov edi, dword [esp + 0xdc]
push edi
call fcn.00582ac0
add esp, 4
test eax, eax
jne 0x422717
mov eax, dword [0x645330]
push eax
call fcn.005827d0
mov edi, eax
add esp, 4
test edi, edi
jne 0x422717
pop edi
add esp, 0xd4
ret
mov eax, dword [edi + 0x8b0]
test eax, eax
push ebx
push ebp
push esi
je 0x42280d
mov eax, dword [0x60f574]
test eax, eax
jne 0x42280d
push 0x5e77c4
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea edx, [esp + 0x1c]
cmp eax, edx
jne 0x42280d
mov eax, dword [edi + 0xa08]
test eax, eax
mov esi, dword [esp + 0xec]
je 0x422793
push esi
call fcn.0057ab30
add esp, 4
cmp eax, 2
jne 0x422793
push 0xffffffffffffffff
push esi
call fcn.00579010
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x422793
mov dword [esp + 0x10], 0
mov edi, 0xd
jmp 0x42281f
push edi
call fcn.0049a640
add esp, 4
push 0
push 0
push 0xffffffffffffffff
push esi
push 0
push eax
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebp, eax
test ebp, ebp
jle 0x422841
lea edi, [ebp + ebp + 0x14]
push edi
call fcn.005cc381
mov ebx, eax
add esp, 4
xor eax, eax
test ebx, ebx
je 0x422ad6
mov ecx, edi
mov edx, ecx
shr ecx, 2
push ebp
mov edi, ebx
rep stosd dword es:[edi], eax
push ebx
push 0xffffffffffffffff
mov ecx, edx
and ecx, 3
push esi
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x28]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [esp + 0x14], 0xd
mov edi, dword [esp + 0x14]
mov dword [esp + 0x10], 0
jmp 0x422823
mov esi, dword [esp + 0xec]
xor ebx, ebx
mov dword [esp + 0x10], esi
mov edi, 1
mov dword [esp + 0x14], edi
mov ecx, dword [0x645324]
push ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x42284e
test ebx, ebx
je 0x422841
push ebx
call fcn.005cc393
add esp, 4
pop esi
pop ebp
pop ebx
xor eax, eax
pop edi
add esp, 0xd4
ret
mov eax, dword [esp + 0xf0]
xor ebp, ebp
cmp eax, 1
jne 0x4229a7
push edi
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
jne 0x422887
test ebx, ebx
je 0x422878
push ebx
call fcn.005cc393
add esp, 4
mov edi, 1
xor ebx, ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push edi
call dword [sym.imp.USER32.dll_GetClipboardData]
test eax, eax
mov dword [esp + 0x18], eax
je 0x4229a7
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
je 0x42299c
test ebx, ebx
je 0x42290c
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call edi
push ebx
mov ebp, eax
call edi
add ebp, eax
lea edi, [ebp + ebp + 0x14]
push edi
call fcn.005cc381
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x42299c
mov ecx, edi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
mov ecx, edx
push esi
and ecx, 3
push ebp
rep stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push ebx
call fcn.005cc393
add esp, 4
mov ebx, ebp
xor ebp, ebp
jmp 0x42299c
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x422911
sub eax, edx
mov edx, eax
mov eax, dword [esp + 0x10]
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x422923
sub eax, edi
lea edi, [eax + edx + 0xa]
push edi
call fcn.005cc381
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x42299c
mov ecx, edi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
mov edx, ebp
rep stosb byte es:[edi], al
mov eax, esi
sub edx, esi
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x422960
mov eax, dword [esp + 0x10]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x422970
mov edi, ebp
sub eax, edx
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x422980
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x10], ebp
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x4229e2
call dword [sym.imp.USER32.dll_CloseClipboard]
test ebx, ebx
je 0x4229c4
push ebx
call fcn.005cc393
add esp, 4
test ebp, ebp
je 0x422841
push ebp
call fcn.005cc393
add esp, 4
pop esi
pop ebp
pop ebx
xor eax, eax
pop edi
add esp, 0xd4
ret
test ebx, ebx
je 0x4229ef
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
jmp 0x4229ff
mov eax, dword [esp + 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4229f6
sub eax, edx
test eax, eax
jle 0x422ab1
test ebx, ebx
je 0x422a18
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 0x14]
jmp 0x422a2c
mov eax, dword [esp + 0x10]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x422a20
sub eax, edx
lea edi, [eax + 0xa]
push edi
push 0x2042
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
mov dword [esp + 0x18], esi
je 0x4229b1
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
test edx, edx
jne 0x422a66
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x4229b1
mov ecx, edi
mov esi, ecx
shr ecx, 2
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
test ebx, ebx
rep stosb byte es:[edi], al
je 0x422a88
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x422a9a
mov eax, dword [esp + 0x10]
sub edx, eax
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x422a90
mov esi, dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [esp + 0x14]
push esi
push ecx
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
test ebx, ebx
je 0x422ac4
push ebx
call fcn.005cc393
add esp, 4
test ebp, ebp
je 0x422ad1
push ebp
call fcn.005cc393
add esp, 4
mov eax, 1
pop esi
pop ebp
pop ebx
pop edi
add esp, 0xd4
ret