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

Disassembly:
sub esp, 0xd4
push esi
push edi
mov edi, edx
mov dword [esp + 0xc], edi
mov esi, ecx
call fcn.005612a0
test eax, eax
jne 0x41fb05
mov ecx, dword [0x5f92f8]
call fcn.00561000
mov esi, eax
test esi, esi
jne 0x41fb05
pop edi
pop esi
add esp, 0xd4
ret 4
mov eax, dword [esi + 0x8b4]
test eax, eax
push ebx
push ebp
je 0x41fbf1
mov eax, dword [0x5c5e30]
test eax, eax
jne 0x41fbf1
push 0x5a56ec
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea ecx, [esp + 0x1c]
cmp eax, ecx
jne 0x41fbf1
mov eax, dword [esi + 0xa0c]
test eax, eax
je 0x41fb7f
mov ecx, edi
lea ebx, [ebx]
call fcn.0055a130
cmp eax, 2
jne 0x41fb7f
or edx, 0xffffffff
mov ecx, edi
call fcn.005585f0
mov ebx, eax
test ebx, ebx
je 0x41fb7f
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0xd
jmp 0x41fbff
mov ecx, esi
call fcn.0048f950
push 0
push 0
push 0xffffffffffffffff
push edi
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebp, eax
test ebp, ebp
jle 0x41fc1d
lea edi, [ebp + ebp + 0x14]
push edi
call fcn.00591118
mov ebx, eax
add esp, 4
xor eax, eax
test ebx, ebx
je 0x41feb6
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov edi, ebx
rep stosd dword es:[edi], eax
push ebp
mov ecx, edx
push ebx
and ecx, 3
push 0xffffffffffffffff
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x20]
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0xd
jmp 0x41fbff
xor ebx, ebx
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], 1
mov ecx, dword [0x5f92ec]
push ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x41fc2c
test ebx, ebx
je 0x41fc1d
push ebx
call fcn.0059112a
add esp, 4
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0xd4
ret 4
mov eax, dword [esp + 0xe8]
xor ebp, ebp
cmp eax, 1
jne 0x41fd87
mov esi, dword [esp + 0x18]
push esi
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
jne 0x41fc69
test ebx, ebx
je 0x41fc5a
push ebx
call fcn.0059112a
add esp, 4
mov esi, 1
xor ebx, ebx
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], esi
push esi
call dword [sym.imp.USER32.dll_GetClipboardData]
test eax, eax
mov dword [esp + 0x14], eax
je 0x41fd87
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
je 0x41fd7c
test ebx, ebx
je 0x41fcee
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.00591118
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x41fd7c
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.0059112a
add esp, 4
mov ebx, ebp
xor ebp, ebp
jmp 0x41fd7c
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41fcf3
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 0x41fd05
sub eax, edi
lea edi, [eax + edx + 0xa]
push edi
call fcn.00591118
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x41fd7c
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
jmp 0x41fd40
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x41fd40
mov eax, dword [esp + 0x10]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41fd50
mov edi, ebp
sub eax, edx
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x41fd60
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 + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x41fdc4
call dword [sym.imp.USER32.dll_CloseClipboard]
test ebx, ebx
je 0x41fda4
push ebx
call fcn.0059112a
add esp, 4
test ebp, ebp
je 0x41fc1d
push ebp
call fcn.0059112a
add esp, 4
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0xd4
ret 4
test ebx, ebx
je 0x41fdd1
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
jmp 0x41fde1
mov eax, dword [esp + 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41fdd8
sub eax, edx
test eax, eax
jle 0x41fe91
test ebx, ebx
je 0x41fdfa
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 0x14]
jmp 0x41fe0d
mov eax, dword [esp + 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41fe01
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 + 0x14], esi
je 0x41fd91
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
test edx, edx
jne 0x41fe47
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x41fd91
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 0x41fe69
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x41fe7a
mov eax, dword [esp + 0x10]
sub edx, eax
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x41fe70
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [esp + 0x18]
push esi
push ecx
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
test ebx, ebx
je 0x41fea4
push ebx
call fcn.0059112a
add esp, 4
test ebp, ebp
je 0x41feb1
push ebp
call fcn.0059112a
add esp, 4
mov eax, 1
pop ebp
pop ebx
pop edi
pop esi
add esp, 0xd4
ret 4