Function at 0x180006080
Capabilities:
Copy file
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
mov rbp, rsp
sub rsp, 0x78
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov r12, rdx
mov rsi, rcx
mov r13, qword [rcx]
xor eax, eax
or rbx, 0xffffffffffffffff
mov rcx, rbx
mov rdi, r13
repne scasb al, byte [rdi]
not rcx
dec rcx
je 0x180006236
xor edx, edx
mov rcx, r13
call fcn.180030814
test eax, eax
jne 0x180006236
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0x10
je 0x180006236
lea rdx, [0x18004e2a0]
mov rcx, r12
call fcn.180003f10
lea r8d, [rbx + 2]
lea rdx, [0x18004e2a0]
mov rcx, r12
call fcn.180003ff0
mov rcx, qword [r12]
sub rcx, 0x18
call fcn.180001790
add rax, 0x18
mov qword [rbp - 0x30], rax
lea rcx, [rbp - 0x30]
call fcn.180020a40
lea rcx, [0x18005d078]
mov rax, qword [0x18005d078]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp + 0x48], rax
mov rcx, qword [rsi]
sub rcx, 0x18
call fcn.180001790
add rax, 0x18
mov qword [rbp - 0x40], rax
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x28]
call fcn.180021e40
nop
mov r9, qword [rax]
mov r8, qword [r12]
lea rdx, [0x18004e338]
lea rcx, [rbp + 0x48]
call fcn.180002980
nop
mov rdx, qword [rbp - 0x28]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180006199
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
xor eax, eax
mov rdi, qword [rbp + 0x48]
test rdi, rdi
setne al
test eax, eax
jne 0x1800061b4
mov ecx, 0x80004005
call fcn.180001050
int3
mov rdx, rdi
mov rcx, qword [rsi]
call fcn.180030ab0
test eax, eax
sete al
test al, al
je 0x180006206
lea rdx, [rdi - 0x18]
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1800061e3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rsi]
sub rdx, 0x18
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180006201
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
jmp 0x180006353
mov r8d, 1
mov rdx, rdi
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CopyFileA]
nop
lea rdx, [rdi - 0x18]
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180006335
mov rcx, qword [rdx]
jmp 0x18000632e
lea rdx, [0x18004e2a0]
mov rcx, rsi
call fcn.180003f10
lea rdx, [0x18004e2a0]
mov rcx, r12
call fcn.180003f10
mov r8d, 1
lea rdx, [0x18004e2a0]
mov rcx, r12
call fcn.180003ff0
lea rcx, [0x18005d078]
mov rax, qword [0x18005d078]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp + 0x50], rax
mov rcx, qword [rsi]
sub rcx, 0x18
call fcn.180001790
add rax, 0x18
mov qword [rbp - 0x50], rax
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x48]
call fcn.180021e40
nop
mov r9, qword [rax]
mov r8, qword [r12]
lea rdx, [0x18004e338]
lea rcx, [rbp + 0x50]
call fcn.180002980
nop
mov rdx, qword [rbp - 0x48]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1800062da
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
lea rax, [rbp - 0x58]
mov qword [rbp - 0x18], rax
mov rdi, qword [rbp + 0x50]
lea rcx, [rdi - 0x18]
call fcn.180001790
add rax, 0x18
mov qword [rbp - 0x58], rax
mov rcx, qword [rsi]
sub rcx, 0x18
call fcn.180001790
add rax, 0x18
mov qword [rbp - 0x38], rax
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 0x38]
call fcn.180005c40
nop
mov eax, ebx
lock xadd dword [rdi - 8], eax
dec eax
test eax, eax
jg 0x180006335
mov rcx, qword [rdi - 0x18]
lea rdx, [rdi - 0x18]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rsi]
sub rdx, 0x18
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180006353
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [r12]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x18000636f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
add rsp, 0x78
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret