Function at 0x14004cde4
Capabilities:
Print debug messages
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x5d0]
sub rsp, 0x6d0
mov rax, qword [0x1401e7e78]
xor rax, rsp
mov qword [rbp + 0x5c0], rax
mov r12, r8
mov rbx, rdx
mov qword [rsp + 0x70], rdx
xor r15d, r15d
mov qword [rsp + 0x60], r15
call fcn.140120014
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r15
lea esi, [r15 + 0x14]
mov dword [rsp + 0x48], esi
xor edx, edx
mov r8d, 0x280
lea rcx, [rbp + 0x340]
call fcn.14013b230
xor edx, edx
mov r8d, 0x1e0
lea rcx, [rbp + 0x20]
call fcn.14013b230
mov edi, 0xa0
mov r8d, edi
xor edx, edx
lea rcx, [rbp + 0x200]
call fcn.14013b230
mov r8d, edi
xor edx, edx
lea rcx, [rbp - 0x80]
call fcn.14013b230
lea r8, [rsp + 0x54]
mov edx, esi
lea rcx, [rsp + 0x30]
call fcn.14004c158
test r12, r12
je 0x14004cebf
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x50]
lea r8d, [r15 + 2]
lea rdx, [0x140179744]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rax, qword [rbx]
lea r8, [rsp + 0x60]
mov edx, 1
mov rcx, rbx
call qword [rax + 0x40]
test eax, eax
jne 0x14004d5cc
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
lea r9, [rsp + 0x48]
lea r8, [rbp + 0x340]
mov edx, dword [rsp + 0x48]
call qword [rax + 0x18]
test r12, r12
je 0x14004cf3a
mov r8d, dword [rsp + 0x48]
lea rdx, str.Drag_object_contains__i_formats_n_n
mov rcx, qword [rsp + 0x30]
call fcn.140007a70
mov rdx, qword [rsp + 0x30]
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], r15w
jne 0x14004cf19
lea r8d, [rax + rax]
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x50]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
call qword [rax + 0x10]
lea rcx, str.Shell_IDList_Array
call qword [sym.imp.USER32.dll_RegisterClipboardFormatW]
mov dword [rsp + 0x58], eax
mov r14d, r15d
mov dword [rsp + 0x4c], r15d
mov ecx, dword [rsp + 0x48]
test ecx, ecx
je 0x14004d574
mov r13d, r14d
imul rbx, r13, 0x410
mov rax, qword [rsp + 0x30]
mov word [rax + rbx], r15w
mov rdx, qword [rsp + 0x30]
add rdx, rbx
mov edi, r14d
shl rdi, 5
lea rsi, [rbp + 0x340]
add rsi, rdi
mov qword [rsp + 0x68], rsi
movzx ecx, word [rsi]
mov r8d, 0x104
call qword [sym.imp.USER32.dll_GetClipboardFormatNameW]
test eax, eax
jne 0x14004d15a
movzx r8d, word [rsi]
mov eax, 0x80
cmp r8d, eax
ja 0x14004d0fb
je 0x14004d0f2
cmp r8d, 9
ja 0x14004d076
je 0x14004d06a
mov ecx, r8d
sub ecx, 1
je 0x14004d05e
sub ecx, 1
je 0x14004d052
sub ecx, 1
je 0x14004d046
sub ecx, 1
je 0x14004d03a
sub ecx, 1
je 0x14004d02e
sub ecx, 1
je 0x14004d022
sub ecx, 1
je 0x14004d016
cmp ecx, 1
jne 0x14004d115
lea rdx, str.CF_DIB
jmp 0x14004d14d
lea rdx, str.CF_OEMTEXT
jmp 0x14004d14d
lea rdx, str.CF_TIFF
jmp 0x14004d14d
lea rdx, str.CF_DIF
jmp 0x14004d14d
lea rdx, str.CF_SYLK
jmp 0x14004d14d
lea rdx, str.CF_METAFILEPICT
jmp 0x14004d14d
lea rdx, str.CF_BITMAP
jmp 0x14004d14d
lea rdx, str.CF_TEXT
jmp 0x14004d14d
lea rdx, str.CF_PALETTE
jmp 0x14004d14d
mov ecx, r8d
sub ecx, 0xa
je 0x14004d0e9
sub ecx, 1
je 0x14004d0e0
sub ecx, 1
je 0x14004d0d7
sub ecx, 1
je 0x14004d0ce
sub ecx, 1
je 0x14004d0c5
sub ecx, 1
je 0x14004d0b9
sub ecx, 1
je 0x14004d0ad
cmp ecx, 1
jne 0x14004d115
lea rdx, str.CF_DIBV5
jmp 0x14004d14d
lea rdx, str.CF_LOCALE
jmp 0x14004d14d
lea rdx, str.CF_HDROP
jmp 0x14004d14d
lea rdx, str.CF_ENHMETAFILE
jmp 0x14004d14d
lea rdx, str.CF_UNICODETEXT
jmp 0x14004d14d
lea rdx, str.CF_WAVE
jmp 0x14004d14d
lea rdx, str.CF_RIFF
jmp 0x14004d14d
lea rdx, str.CF_PENDATA
jmp 0x14004d14d
lea rdx, str.CF_OWNERDISPLAY
jmp 0x14004d14d
mov ecx, r8d
sub ecx, 0x81
je 0x14004d146
sub ecx, 1
je 0x14004d13d
sub ecx, 1
je 0x14004d134
cmp ecx, 0xb
je 0x14004d12b
mov rcx, qword [rsp + 0x30]
add rcx, rbx
lea rdx, str.ClipFormatID_i
call fcn.140007a70
jmp 0x14004d15a
lea rdx, str.CF_DSPENHMETAFILE
jmp 0x14004d14d
lea rdx, str.CF_DSPMETAFILEPICT
jmp 0x14004d14d
lea rdx, str.CF_DSPBITMAP
jmp 0x14004d14d
lea rdx, str.CF_DSPTEXT
mov rcx, qword [rsp + 0x30]
add rcx, rbx
call fcn.14000d278
mov rcx, qword [rsp + 0x30]
add rcx, rbx
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r15w
jne 0x14004d166
mov edx, 0x208
sub rdx, rax
lea rcx, [rcx + rax*2]
mov r9d, dword [rbp + rdi + 0x358]
lea r8, str.__tymed0x_02X
call fcn.14012091c
mov dword [rbp + rdi + 0x358], 1
lea rdi, [r13*2]
add rdi, r13
lea rsi, [rbp + 0x20]
lea rsi, [rsi + rdi*8]
mov dword [rsi], r15d
mov rcx, qword [rsp + 0x70]
mov rax, qword [rcx]
mov r8, rsi
mov rdx, qword [rsp + 0x68]
call qword [rax + 0x18]
mov r9d, eax
xor edx, edx
test eax, eax
jne 0x14004d3f5
cmp dword [rsi], 1
jne 0x14004d36b
mov rcx, qword [rbp + rdi*8 + 0x28]
test rcx, rcx
je 0x14004d432
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rsi, rax
mov qword [rbp + r13*8 + 0x200], rax
test rax, rax
je 0x14004d34d
mov rcx, qword [rbp + rdi*8 + 0x28]
call qword [sym.imp.KERNEL32.dll_GlobalSize]
mov rdi, rax
mov r8, qword [rsp + 0x30]
add r8, rbx
or rax, 0xffffffffffffffff
xor ecx, ecx
inc rax
cmp word [r8 + rax*2], cx
jne 0x14004d21e
mov edx, 0x208
sub rdx, rax
lea rcx, [r8 + rax*2]
mov r9d, edi
lea r8, str.__DataSize_i
call fcn.14012091c
mov rcx, qword [rsp + 0x30]
add rcx, rbx
cmp rdi, 1
jne 0x14004d26d
or rax, 0xffffffffffffffff
xor edx, edx
inc rax
cmp word [rcx + rax*2], dx
jne 0x14004d257
movzx r9d, byte [rsi]
lea r8, str.__Data0x_02X
jmp 0x14004d28c
cmp rdi, 4
jne 0x14004d2a2
or rax, 0xffffffffffffffff
xor edx, edx
inc rax
cmp word [rcx + rax*2], dx
jne 0x14004d279
mov r9d, dword [rsi]
lea r8, str.__Data0x_08X
mov edx, 0x208
lea rcx, [rcx + rax*2]
sub rdx, rax
call fcn.14012091c
jmp 0x14004d343
cmp rdi, 8
jne 0x14004d2db
or rax, 0xffffffffffffffff
xor edx, edx
inc rax
cmp word [rcx + rax*2], dx
jne 0x14004d2ae
mov edx, 0x208
sub rdx, rax
lea rcx, [rcx + rax*2]
mov eax, dword [rsi + 4]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsi]
lea r8, str.__Data0x_08X_08X
call fcn.14012091c
jmp 0x14004d343
lea r8, [0x14016b5dc]
mov edx, 0x208
call fcn.140001f38
lea r15, [rdi*2 + 2]
mov edx, 1
mov rcx, r15
call fcn.14012005c
mov qword [rbp + r13*8 - 0x80], rax
xor ecx, ecx
cmp byte [rsi], cl
je 0x14004d32a
cmp byte [rsi + 1], cl
je 0x14004d32a
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
mov r9d, edi
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
jmp 0x14004d343
mov r8, rsi
mov rdx, r15
mov rcx, rax
call fcn.14004e63c
mov r15, rdi
and r15, 0xfffffffffffffffe
add r15, 2
mov r14d, dword [rsp + 0x4c]
jmp 0x14004d432
mov rcx, qword [rsp + 0x30]
add rcx, rbx
lea r8, str.__hGlobal_not_available
mov edx, 0x208
call fcn.140001f38
jmp 0x14004d42b
cmp dword [rsi], 2
jne 0x14004d38e
lea r8, str.__Error_in_source__TYMED_HGLOBAL_was_requested__but_got_TYMED_FILE
mov rcx, qword [rsp + 0x30]
add rcx, rbx
mov edx, 0x208
call fcn.140001f38
jmp 0x14004d422
cmp dword [rsi], 4
jne 0x14004d39c
lea r8, str.__Error_in_source__TYMED_HGLOBAL_was_requested__but_got_TYMED_ISTREAM
jmp 0x14004d377
cmp dword [rsi], 8
jne 0x14004d3aa
lea r8, str.__Error_in_source__TYMED_HGLOBAL_was_requested__but_got_TYMED_ISTORAGE
jmp 0x14004d377
cmp dword [rsi], 0x10
jne 0x14004d3b8
lea r8, str.__Error_in_source__TYMED_HGLOBAL_was_requested__but_got_TYMED_GDI
jmp 0x14004d377
mov rcx, qword [rsp + 0x30]
add rcx, rbx
cmp dword [rsi], 0x20
jne 0x14004d3ce
lea r8, str.__Error_in_source__TYMED_HGLOBAL_was_requested__but_got_TYMED_MFPICT
jmp 0x14004d37f
cmp dword [rsi], 0x40
jne 0x14004d3dc
lea r8, str.__Error_in_source__TYMED_HGLOBAL_was_requested__but_got_TYMED_ENHMF
jmp 0x14004d37f
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], dx
jne 0x14004d3e0
mov r9d, dword [rsi]
lea r8, str.__Error_in_source__TYMED_HGLOBAL_was_requested__but_got___i_
jmp 0x14004d411
mov rcx, qword [rsp + 0x30]
add rcx, rbx
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], dx
jne 0x14004d401
lea r8, str.__Cant_get_TYMED_HGLOBAL__rc0x_08X
mov edx, 0x208
sub rdx, rax
lea rcx, [rcx + rax*2]
call fcn.14012091c
mov rcx, rsi
call qword [sym.imp.ole32.dll_ReleaseStgMedium]
xor eax, eax
mov qword [rbp + rdi*8 + 0x28], rax
mov rcx, qword [rsp + 0x30]
add rcx, rbx
lea rdi, [0x14016abcc]
mov r8, rdi
mov edx, 0x208
call fcn.140001f38
test r12, r12
je 0x14004d4ea
mov rdx, qword [rsp + 0x30]
add rdx, rbx
or rax, 0xffffffffffffffff
xor ebx, ebx
inc rax
cmp word [rdx + rax*2], bx
jne 0x14004d465
lea r8d, [rax + rax]
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x50]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
test r15, r15
je 0x14004d4c9
mov rdx, qword [rbp + r13*8 - 0x80]
test rdx, rdx
je 0x14004d4c9
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x50]
mov r8d, r15d
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor r15d, r15d
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x50]
lea r8d, [r15 + 2]
mov rdx, rdi
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x14004d4cc
xor r15d, r15d
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x50]
mov r8d, 2
mov rdx, rdi
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x14004d519
mov rcx, qword [rsp + 0x30]
add rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test r15, r15
je 0x14004d519
mov rcx, qword [rbp + r13*8 - 0x80]
xor r15d, r15d
test rcx, rcx
je 0x14004d519
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rax, qword [rsp + 0x68]
mov ecx, dword [rsp + 0x58]
cmp word [rax], cx
jne 0x14004d55f
mov rbx, qword [rbp + r13*8 + 0x200]
test rbx, rbx
je 0x14004d55f
mov ecx, dword [rbx + 4]
add rcx, rbx
mov rdx, r12
call fcn.14004bf80
mov edi, r15d
cmp dword [rbx], r15d
jbe 0x14004d55f
inc edi
mov ecx, dword [rbx + rdi*4 + 4]
add rcx, rbx
mov rdx, r12
call fcn.14004bf80
cmp edi, dword [rbx]
jb 0x14004d54a
inc r14d
mov dword [rsp + 0x4c], r14d
mov ecx, dword [rsp + 0x48]
cmp r14d, ecx
jb 0x14004cf6a
mov ebx, r15d
test ecx, ecx
je 0x14004d5cc
mov edi, ebx
cmp qword [rbp + rdi*8 + 0x200], r15
je 0x14004d5b0
lea rsi, [rdi + rdi*2]
mov rax, qword [rbp + rsi*8 + 0x28]
test rax, rax
je 0x14004d5b0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea rcx, [rbp + 0x20]
lea rcx, [rcx + rsi*8]
call qword [sym.imp.ole32.dll_ReleaseStgMedium]
mov ecx, dword [rsp + 0x48]
mov rax, qword [rbp + rdi*8 - 0x80]
test rax, rax
je 0x14004d5c6
mov rcx, rax
call fcn.14012008c
mov ecx, dword [rsp + 0x48]
inc ebx
cmp ebx, ecx
jb 0x14004d57b
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14004d5dc
call fcn.14012008c
nop
mov rcx, qword [rbp + 0x5c0]
xor rcx, rsp
call fcn.140139b10
mov rbx, qword [rsp + 0x710]
add rsp, 0x6d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret