Function at 0x140045dc0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x540]
sub rsp, 0x640
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x690], rbx
mov rax, qword [0x140131088]
xor rax, rsp
mov qword [rbp + 0x530], rax
mov r15, rdx
mov qword [rsp + 0x70], rdx
mov rdi, rcx
xor ebx, ebx
mov r12d, ebx
mov dword [rsp + 0x54], ebx
test rcx, rcx
jne 0x140045e1f
mov eax, 0x80070057
jmp 0x140046417
mov eax, reloc.WS2_32.dll_ntohs
mov word [rbp - 0x78], ax
mov qword [rbp - 0x70], rbx
mov dword [rbp - 0x68], 1
mov dword [rbp - 0x64], 0xffffffff
mov dword [rbp - 0x60], 1
mov rax, qword [rcx]
lea rdx, [rbp - 0x78]
call qword [rax + 0x28]
test eax, eax
jne 0x140046412
mov rax, qword [rdi]
lea r8, [rbp - 0x58]
lea rdx, [rbp - 0x78]
mov rcx, rdi
call qword [rax + 0x18]
test eax, eax
jne 0x140046412
cmp dword [rbp - 0x58], 1
jne 0x140046412
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rsi, rax
mov qword [rsp + 0x60], rax
xor r9d, r9d
xor r8d, r8d
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.SHELL32.dll_DragQueryFileW]
mov edi, eax
lea rdx, [rbp - 0x80]
mov rcx, rsi
call qword [sym.imp.SHELL32.dll_DragQueryPoint]
xor sil, sil
mov byte [rsp + 0x50], sil
mov r14, rbx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x78], rdi
test edi, edi
je 0x1400463e5
nop word [rax + rax]
xor r13b, r13b
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x320]
call fcn.1400a1560
mov r9d, 0x104
lea r8, [rbp + 0x320]
mov edx, r14d
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.SHELL32.dll_DragQueryFileW]
lea rcx, [rbp + 0x320]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140045f20
test al, 0x10
je 0x140045f20
mov r13b, 1
mov byte [rsp + 0x50], r13b
mov qword [rbp + 0xc8], 7
mov qword [rbp + 0xc0], rbx
mov word [rbp + 0xb0], bx
cmp word [rbp + 0x320], 0
jne 0x140045f48
mov r8, rbx
jmp 0x140045f5e
lea rax, [rbp + 0x320]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x140045f53
lea rdx, [rbp + 0x320]
lea rcx, [rbp + 0xb0]
call fcn.140008a20
nop
mov esi, ebx
test r13b, r13b
setne sil
mov rdi, rbx
test r13b, r13b
jne 0x140045fb0
lea rdx, [rbp + 0xd0]
lea rcx, [rbp + 0x320]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x140045fb0
mov edi, dword [rbp + 0xec]
shl rdi, 0x20
mov eax, dword [rbp + 0xf0]
add rdi, rax
mov ecx, 0x90
call fcn.14009dbb8
mov r14, rax
mov qword [rbp - 0x38], rax
mov qword [rbp + 8], 7
mov qword [rbp], rbx
mov word [rbp - 0x10], bx
mov r8d, 1
lea rdx, [0x1400ee130]
lea rcx, [rbp - 0x10]
call fcn.140008a20
nop
or r12d, 1
mov dword [rsp + 0x54], r12d
mov r15d, r12d
mov qword [rbp - 0x18], 7
mov qword [rbp - 0x20], rbx
mov word [rbp - 0x30], bx
cmp word [rbp + 0x320], 0
jne 0x140046013
mov r8, rbx
jmp 0x14004602b
lea rax, [rbp + 0x320]
or r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x140046020
lea rdx, [rbp + 0x320]
lea rcx, [rbp - 0x30]
call fcn.140008a20
nop
or r12d, 2
mov dword [rsp + 0x54], r12d
lea r8, [rbp - 0x10]
lea rdx, [rbp - 0x30]
lea rcx, [rbp + 0x50]
call fcn.140044f70
nop
mov r12d, r15d
or r12d, 6
mov dword [rsp + 0x54], r12d
cmp qword [rax + 0x18], 8
jb 0x14004606d
mov rax, qword [rax]
mov qword [rsp + 0x20], rdi
lea r9, [rbp + 0x320]
mov r8, rax
lea edx, [rsi + 2]
mov rcx, r14
call fcn.140038cd0
mov rdx, rax
test rax, rax
jne 0x140046099
mov rsi, rbx
mov qword [rsp + 0x68], rbx
jmp 0x1400460c5
mov rax, qword [rax + 0x10]
movsxd rcx, dword [rax + 8]
lea rsi, [rdx + 0x10]
add rsi, rcx
mov qword [rsp + 0x68], rsi
je 0x1400460c5
mov rax, qword [rsi + 8]
movsxd rcx, dword [rax + 4]
add rcx, 8
add rcx, rsi
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
and r12d, 0xfffffffb
mov r8, qword [rbp + 0x68]
cmp r8, 8
jb 0x1400460e3
inc r8
mov rdx, qword [rbp + 0x50]
lea rcx, [rbp + 0x50]
call fcn.140008b70
mov qword [rbp + 0x68], 7
mov qword [rbp + 0x60], rbx
mov word [rbp + 0x50], bx
and r12d, 0xfffffffd
mov r8, qword [rbp - 0x18]
cmp r8, 8
jb 0x140046111
inc r8
mov rdx, qword [rbp - 0x30]
lea rcx, [rbp - 0x30]
call fcn.140008b70
mov qword [rbp - 0x18], 7
mov qword [rbp - 0x20], rbx
mov word [rbp - 0x30], bx
and r12d, 0xfffffffe
mov r8, qword [rbp + 8]
cmp r8, 8
jb 0x14004613f
inc r8
mov rdx, qword [rbp - 0x10]
lea rcx, [rbp - 0x10]
call fcn.140008b70
mov qword [rbp + 8], 7
mov qword [rbp], rbx
mov word [rbp - 0x10], bx
mov r15, qword [rsp + 0x70]
mov rax, qword [r15 + 0x10]
movsxd rcx, dword [rax + 8]
add rcx, 0x10
add rcx, r15
mov rax, qword [rcx]
call qword [rax + 0x30]
mov r8, qword [rax]
mov rdx, rsi
mov rcx, rax
call qword [r8 + 0x18]
test r13b, r13b
je 0x14004632b
mov qword [rbp + 0xa8], 7
mov qword [rbp + 0xa0], rbx
mov word [rbp + 0x90], bx
mov r8d, 1
lea rdx, [0x1400ee130]
lea rcx, [rbp + 0x90]
call fcn.140008a20
nop
mov qword [rbp + 0x48], 7
mov qword [rbp + 0x40], rbx
mov word [rbp + 0x30], bx
cmp word [rbp + 0x320], 0
jne 0x1400461d1
mov r8, rbx
jmp 0x1400461eb
lea rax, [rbp + 0x320]
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1400461e0
lea rdx, [rbp + 0x320]
lea rcx, [rbp + 0x30]
call fcn.140008a20
nop
mov qword [rbp + 0x28], 7
mov qword [rbp + 0x20], rbx
mov word [rbp + 0x10], bx
cmp word [rbp + 0x320], 0
jne 0x14004621b
mov r8, rbx
jmp 0x14004623b
lea rax, [rbp + 0x320]
or r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140046230
lea rdx, [rbp + 0x320]
lea rcx, [rbp + 0x10]
call fcn.140008a20
nop
lea rdx, [rbp + 0x30]
lea rcx, [rbp + 0x70]
call fcn.1400450b0
mov rdi, rax
mov rcx, qword [r15 + 0x10]
movsxd rdx, dword [rcx + 8]
lea rcx, [r15 + 0x10]
add rcx, rdx
mov rdx, qword [rcx]
call qword [rdx + 0x30]
mov r8, rax
mov rdx, rdi
lea rcx, [rbp + 0x10]
call fcn.140045770
nop
mov r8, qword [rbp + 0x88]
cmp r8, 8
jb 0x14004629e
inc r8
mov rdx, qword [rbp + 0x70]
lea rcx, [rbp + 0x70]
call fcn.140008b70
mov qword [rbp + 0x88], 7
mov qword [rbp + 0x80], rbx
mov word [rbp + 0x70], bx
mov r8, qword [rbp + 0x28]
cmp r8, 8
jb 0x1400462ce
inc r8
mov rdx, qword [rbp + 0x10]
lea rcx, [rbp + 0x10]
call fcn.140008b70
mov qword [rbp + 0x28], 7
mov qword [rbp + 0x20], rbx
mov word [rbp + 0x10], bx
mov r8, qword [rbp + 0x48]
cmp r8, 8
jb 0x1400462f8
inc r8
mov rdx, qword [rbp + 0x30]
lea rcx, [rbp + 0x30]
call fcn.140008b70
mov qword [rbp + 0x48], 7
mov qword [rbp + 0x40], rbx
mov word [rbp + 0x30], bx
mov r8, qword [rbp + 0xa8]
cmp r8, 8
jb 0x14004632b
inc r8
mov rdx, qword [rbp + 0x90]
lea rcx, [rbp + 0x90]
call fcn.140008b70
lea rax, [0x1400eb414]
test r13b, r13b
lea rcx, str.directory
cmovne rax, rcx
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x320]
mov qword [rsp + 0x38], rax
mov r14, qword [rsp + 0x58]
mov qword [rsp + 0x30], r14
lea rax, str.recv___03d__file:_ls__format:_s
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x198
lea r9, str.GetDropData
lea r8, str...includes_sunloginincludedragdropDropTarget.cpp
mov edx, 1
lea rcx, [0x1401399a0]
call fcn.14007a380
nop
test rsi, rsi
je 0x1400463aa
mov rax, qword [rsi + 8]
movsxd rcx, dword [rax + 4]
add rcx, 8
add rcx, rsi
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
nop
mov r8, qword [rbp + 0xc8]
cmp r8, 8
jb 0x1400463cd
inc r8
mov rdx, qword [rbp + 0xb0]
lea rcx, [rbp + 0xb0]
call fcn.140008b70
inc r14
mov qword [rsp + 0x58], r14
cmp r14, qword [rsp + 0x78]
jb 0x140045ed0
movzx esi, byte [rsp + 0x50]
test sil, sil
setne bl
add ebx, 2
mov dword [r15 + 0x20], ebx
mov rax, qword [rbp - 0x80]
mov qword [r15 + 0x18], rax
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea rcx, [rbp - 0x58]
call qword [sym.imp.ole32.dll_ReleaseStgMedium]
xor eax, eax
jmp 0x140046417
mov eax, 0x80004003
mov rcx, qword [rbp + 0x530]
xor rcx, rsp
call fcn.14009d860
mov rbx, qword [rsp + 0x690]
add rsp, 0x640
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret