Function at 0x140049b60
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 [0x1401f5698]
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.140113da0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r15
lea esi, [r15 + 0x14]
mov dword [rsp + 0x4c], esi
xor edx, edx
mov r8d, 0x280
lea rcx, [rbp + 0x340]
call fcn.14012d4b0
xor edx, edx
mov r8d, 0x1e0
lea rcx, [rbp + 0x20]
call fcn.14012d4b0
mov edi, 0xa0
mov r8d, edi
xor edx, edx
lea rcx, [rbp + 0x200]
call fcn.14012d4b0
mov r8d, edi
xor edx, edx
lea rcx, [rbp - 0x80]
call fcn.14012d4b0
mov byte [rsp + 0x48], r15b
lfence
lea r8, [rsp + 0x48]
mov edx, esi
lea rcx, [rsp + 0x30]
call fcn.140048ecc
test r12, r12
je 0x140049c43
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x54]
lea r8d, [r15 + 2]
lea rdx, [0x140187904]
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 0x14004a350
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
lea r9, [rsp + 0x4c]
lea r8, [rbp + 0x340]
mov edx, dword [rsp + 0x4c]
call qword [rax + 0x18]
test r12, r12
je 0x140049cbe
mov r8d, dword [rsp + 0x4c]
lea rdx, str.Drag_object_contains__i_formats_n_n
mov rcx, qword [rsp + 0x30]
call fcn.140007750
mov rdx, qword [rsp + 0x30]
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], r15w
jne 0x140049c9d
lea r8d, [rax + rax]
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x54]
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 + 0x50], r15d
mov ecx, dword [rsp + 0x4c]
test ecx, ecx
je 0x14004a2f8
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 0x140049ede
movzx r8d, word [rsi]
mov eax, 0x80
cmp r8d, eax
ja 0x140049e7f
je 0x140049e76
cmp r8d, 9
ja 0x140049dfa
je 0x140049dee
mov ecx, r8d
sub ecx, 1
je 0x140049de2
sub ecx, 1
je 0x140049dd6
sub ecx, 1
je 0x140049dca
sub ecx, 1
je 0x140049dbe
sub ecx, 1
je 0x140049db2
sub ecx, 1
je 0x140049da6
sub ecx, 1
je 0x140049d9a
cmp ecx, 1
jne 0x140049e99
lea rdx, str.CF_DIB
jmp 0x140049ed1
lea rdx, str.CF_OEMTEXT
jmp 0x140049ed1
lea rdx, str.CF_TIFF
jmp 0x140049ed1
lea rdx, str.CF_DIF
jmp 0x140049ed1
lea rdx, str.CF_SYLK
jmp 0x140049ed1
lea rdx, str.CF_METAFILEPICT
jmp 0x140049ed1
lea rdx, str.CF_BITMAP
jmp 0x140049ed1
lea rdx, str.CF_TEXT
jmp 0x140049ed1
lea rdx, str.CF_PALETTE
jmp 0x140049ed1
mov ecx, r8d
sub ecx, 0xa
je 0x140049e6d
sub ecx, 1
je 0x140049e64
sub ecx, 1
je 0x140049e5b
sub ecx, 1
je 0x140049e52
sub ecx, 1
je 0x140049e49
sub ecx, 1
je 0x140049e3d
sub ecx, 1
je 0x140049e31
cmp ecx, 1
jne 0x140049e99
lea rdx, str.CF_DIBV5
jmp 0x140049ed1
lea rdx, str.CF_LOCALE
jmp 0x140049ed1
lea rdx, str.CF_HDROP
jmp 0x140049ed1
lea rdx, str.CF_ENHMETAFILE
jmp 0x140049ed1
lea rdx, str.CF_UNICODETEXT
jmp 0x140049ed1
lea rdx, str.CF_WAVE
jmp 0x140049ed1
lea rdx, str.CF_RIFF
jmp 0x140049ed1
lea rdx, str.CF_PENDATA
jmp 0x140049ed1
lea rdx, str.CF_OWNERDISPLAY
jmp 0x140049ed1
mov ecx, r8d
sub ecx, 0x81
je 0x140049eca
sub ecx, 1
je 0x140049ec1
sub ecx, 1
je 0x140049eb8
cmp ecx, 0xb
je 0x140049eaf
mov rcx, qword [rsp + 0x30]
add rcx, rbx
lea rdx, str.ClipFormatID_i
call fcn.140007750
jmp 0x140049ede
lea rdx, str.CF_DSPENHMETAFILE
jmp 0x140049ed1
lea rdx, str.CF_DSPMETAFILEPICT
jmp 0x140049ed1
lea rdx, str.CF_DSPBITMAP
jmp 0x140049ed1
lea rdx, str.CF_DSPTEXT
mov rcx, qword [rsp + 0x30]
add rcx, rbx
call fcn.14000ca24
mov rcx, qword [rsp + 0x30]
add rcx, rbx
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r15w
jne 0x140049eea
mov edx, 0x208
sub rdx, rax
lea rcx, [rcx + rax*2]
mov r9d, dword [rbp + rdi + 0x358]
lea r8, str.__tymed0x_02X
call fcn.1401145a0
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 0x14004a179
cmp dword [rsi], 1
jne 0x14004a0ef
mov rcx, qword [rbp + rdi*8 + 0x28]
test rcx, rcx
je 0x14004a1b6
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rsi, rax
mov qword [rbp + r13*8 + 0x200], rax
test rax, rax
je 0x14004a0d1
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 0x140049fa2
mov edx, 0x208
sub rdx, rax
lea rcx, [r8 + rax*2]
mov r9d, edi
lea r8, str.__DataSize_i
call fcn.1401145a0
mov rcx, qword [rsp + 0x30]
add rcx, rbx
cmp rdi, 1
jne 0x140049ff1
or rax, 0xffffffffffffffff
xor edx, edx
inc rax
cmp word [rcx + rax*2], dx
jne 0x140049fdb
movzx r9d, byte [rsi]
lea r8, str.__Data0x_02X
jmp 0x14004a010
cmp rdi, 4
jne 0x14004a026
or rax, 0xffffffffffffffff
xor edx, edx
inc rax
cmp word [rcx + rax*2], dx
jne 0x140049ffd
mov r9d, dword [rsi]
lea r8, str.__Data0x_08X
mov edx, 0x208
lea rcx, [rcx + rax*2]
sub rdx, rax
call fcn.1401145a0
jmp 0x14004a0c7
cmp rdi, 8
jne 0x14004a05f
or rax, 0xffffffffffffffff
xor edx, edx
inc rax
cmp word [rcx + rax*2], dx
jne 0x14004a032
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.1401145a0
jmp 0x14004a0c7
lea r8, [0x1401792ec]
mov edx, 0x208
call fcn.140001e48
lea r15, [rdi*2 + 2]
mov edx, 1
mov rcx, r15
call fcn.140113de8
mov qword [rbp + r13*8 - 0x80], rax
xor ecx, ecx
cmp byte [rsi], cl
je 0x14004a0ae
cmp byte [rsi + 1], cl
je 0x14004a0ae
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 0x14004a0c7
mov r8, rsi
mov rdx, r15
mov rcx, rax
call fcn.14004b3c8
mov r15, rdi
and r15, 0xfffffffffffffffe
add r15, 2
mov r14d, dword [rsp + 0x50]
jmp 0x14004a1b6
mov rcx, qword [rsp + 0x30]
add rcx, rbx
lea r8, str.__hGlobal_not_available
mov edx, 0x208
call fcn.140001e48
jmp 0x14004a1af
cmp dword [rsi], 2
jne 0x14004a112
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.140001e48
jmp 0x14004a1a6
cmp dword [rsi], 4
jne 0x14004a120
lea r8, str.__Error_in_source__TYMED_HGLOBAL_was_requested__but_got_TYMED_ISTREAM
jmp 0x14004a0fb
cmp dword [rsi], 8
jne 0x14004a12e
lea r8, str.__Error_in_source__TYMED_HGLOBAL_was_requested__but_got_TYMED_ISTORAGE
jmp 0x14004a0fb
cmp dword [rsi], 0x10
jne 0x14004a13c
lea r8, str.__Error_in_source__TYMED_HGLOBAL_was_requested__but_got_TYMED_GDI
jmp 0x14004a0fb
mov rcx, qword [rsp + 0x30]
add rcx, rbx
cmp dword [rsi], 0x20
jne 0x14004a152
lea r8, str.__Error_in_source__TYMED_HGLOBAL_was_requested__but_got_TYMED_MFPICT
jmp 0x14004a103
cmp dword [rsi], 0x40
jne 0x14004a160
lea r8, str.__Error_in_source__TYMED_HGLOBAL_was_requested__but_got_TYMED_ENHMF
jmp 0x14004a103
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], dx
jne 0x14004a164
mov r9d, dword [rsi]
lea r8, str.__Error_in_source__TYMED_HGLOBAL_was_requested__but_got___i_
jmp 0x14004a195
mov rcx, qword [rsp + 0x30]
add rcx, rbx
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], dx
jne 0x14004a185
lea r8, str.__Cant_get_TYMED_HGLOBAL__rc0x_08X
mov edx, 0x208
sub rdx, rax
lea rcx, [rcx + rax*2]
call fcn.1401145a0
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, [0x1401788dc]
mov r8, rdi
mov edx, 0x208
call fcn.140001e48
test r12, r12
je 0x14004a26e
mov rdx, qword [rsp + 0x30]
add rdx, rbx
or rax, 0xffffffffffffffff
xor ebx, ebx
inc rax
cmp word [rdx + rax*2], bx
jne 0x14004a1e9
lea r8d, [rax + rax]
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x54]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
test r15, r15
je 0x14004a24d
mov rdx, qword [rbp + r13*8 - 0x80]
test rdx, rdx
je 0x14004a24d
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x54]
mov r8d, r15d
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor r15d, r15d
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x54]
lea r8d, [r15 + 2]
mov rdx, rdi
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x14004a250
xor r15d, r15d
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x54]
mov r8d, 2
mov rdx, rdi
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x14004a29d
mov rcx, qword [rsp + 0x30]
add rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test r15, r15
je 0x14004a29d
mov rcx, qword [rbp + r13*8 - 0x80]
xor r15d, r15d
test rcx, rcx
je 0x14004a29d
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 0x14004a2e3
mov rbx, qword [rbp + r13*8 + 0x200]
test rbx, rbx
je 0x14004a2e3
mov ecx, dword [rbx + 4]
add rcx, rbx
mov rdx, r12
call fcn.140048cf4
mov edi, r15d
cmp dword [rbx], r15d
jbe 0x14004a2e3
inc edi
mov ecx, dword [rbx + rdi*4 + 4]
add rcx, rbx
mov rdx, r12
call fcn.140048cf4
cmp edi, dword [rbx]
jb 0x14004a2ce
inc r14d
mov dword [rsp + 0x50], r14d
mov ecx, dword [rsp + 0x4c]
cmp r14d, ecx
jb 0x140049cee
mov ebx, r15d
test ecx, ecx
je 0x14004a350
mov edi, ebx
cmp qword [rbp + rdi*8 + 0x200], r15
je 0x14004a334
lea rsi, [rdi + rdi*2]
mov rax, qword [rbp + rsi*8 + 0x28]
test rax, rax
je 0x14004a334
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 + 0x4c]
mov rax, qword [rbp + rdi*8 - 0x80]
test rax, rax
je 0x14004a34a
mov rcx, rax
call fcn.140113e18
mov ecx, dword [rsp + 0x4c]
inc ebx
cmp ebx, ecx
jb 0x14004a2ff
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14004a360
call fcn.140113e18
nop
mov rcx, qword [rbp + 0x5c0]
xor rcx, rsp
call fcn.14012bda0
mov rbx, qword [rsp + 0x710]
add rsp, 0x6d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret