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

Disassembly:
sub esp, 0x270
push edi
mov edi, dword [esp + 0x278]
push edi
call fcn.0058ed20
add esp, 4
test eax, eax
jne 0x422767
mov eax, dword [0x6a0f4c]
push eax
call fcn.0058ea30
mov edi, eax
add esp, 4
test edi, edi
jne 0x422767
pop edi
add esp, 0x270
ret
mov eax, dword [0x62b2f8]
test eax, eax
push ebx
push ebp
push esi
jne 0x42284f
push 0x5f57c4
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea edx, [esp + 0x1c]
cmp eax, edx
jne 0x42284f
mov eax, dword [edi + 0x18a4]
test eax, eax
mov esi, dword [esp + 0x288]
je 0x4227d5
push esi
call fcn.005868a0
add esp, 4
cmp eax, 2
jne 0x4227d5
push 0xffffffffffffffff
push esi
call fcn.00584e40
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4227d5
mov dword [esp + 0x10], 0
mov edi, 0xd
jmp 0x422861
push edi
call fcn.0049caf0
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 0x42287e
lea edi, [ebp + ebp + 0x14]
push edi
call fcn.005d9f91
mov ebx, eax
add esp, 4
xor eax, eax
test ebx, ebx
je 0x422b16
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 0x422865
mov esi, dword [esp + 0x288]
xor ebx, ebx
mov dword [esp + 0x10], esi
mov edi, 1
mov dword [esp + 0x14], edi
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x42288b
test ebx, ebx
je 0x42287e
push ebx
call fcn.005d9fa3
add esp, 4
pop esi
pop ebp
pop ebx
xor eax, eax
pop edi
add esp, 0x270
ret
mov eax, dword [esp + 0x28c]
xor ebp, ebp
cmp eax, 1
jne 0x4229db
push edi
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
jne 0x4228c4
test ebx, ebx
je 0x4228b5
push ebx
call fcn.005d9fa3
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 0x4229db
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
je 0x4229d0
test ebx, ebx
je 0x422949
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.005d9f91
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x4229d0
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.005d9fa3
add esp, 4
mov ebx, ebp
xor ebp, ebp
jmp 0x4229d0
mov eax, esi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x422950
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 0x422962
sub eax, edi
lea edi, [eax + edx + 0xa]
push edi
call fcn.005d9f91
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x4229d0
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
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x422998
mov eax, dword [esp + 0x10]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4229a8
mov edi, ebp
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4229b4
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 0x422a16
call dword [sym.imp.USER32.dll_CloseClipboard]
test ebx, ebx
je 0x4229f8
push ebx
call fcn.005d9fa3
add esp, 4
test ebp, ebp
je 0x42287e
push ebp
call fcn.005d9fa3
add esp, 4
pop esi
pop ebp
pop ebx
xor eax, eax
pop edi
add esp, 0x270
ret
test ebx, ebx
je 0x422a23
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
jmp 0x422a39
mov eax, dword [esp + 0x10]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x422a30
sub eax, edx
test eax, eax
jle 0x422af1
test ebx, ebx
je 0x422a52
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 0x14]
jmp 0x422a6c
mov eax, dword [esp + 0x10]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x422a60
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 0x4229e5
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
test edx, edx
jne 0x422aa6
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x4229e5
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 0x422ac8
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x422ada
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 0x422ad0
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 0x422b04
push ebx
call fcn.005d9fa3
add esp, 4
test ebp, ebp
je 0x422b11
push ebp
call fcn.005d9fa3
add esp, 4
mov eax, 1
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x270
ret