Function at 0x180006380
Capabilities:
Copy file
Delete file

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x68
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rbp, rdx
mov rsi, rcx
lea rdx, [0x18004e2a0]
mov rcx, rbp
call fcn.180003f10
mov r8d, 1
lea rdx, [0x18004e2a0]
mov rcx, rbp
call fcn.180003ff0
lea rcx, [0x18005d078]
mov rax, qword [0x18005d078]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0xa0], rax
mov rcx, qword [rsi]
sub rcx, 0x18
call fcn.180001790
add rax, 0x18
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x28]
call fcn.180021e40
nop
mov r9, qword [rax]
mov r8, qword [rbp]
lea rdx, [0x18004e338]
lea rcx, [rsp + 0xa0]
call fcn.180002980
nop
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
or edi, 0xffffffff
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180006445
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
xor edx, edx
mov rcx, qword [rsi]
call fcn.180030814
mov rbx, qword [rsp + 0xa0]
test eax, eax
jne 0x1800064e8
test rbx, rbx
setne al
test eax, eax
jne 0x180006474
mov ecx, 0x80004005
call fcn.180001050
int3
mov rdx, rbx
mov rcx, qword [rsi]
call fcn.180030ab0
test eax, eax
sete al
test al, al
je 0x1800064c6
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1800064a3
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, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1800064c1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
jmp 0x180006628
mov rcx, qword [rbp]
sub rcx, 0x18
call fcn.180001790
add rax, 0x18
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x30]
call fcn.180020a40
jmp 0x18000653f
mov rdx, qword [rsi]
mov rcx, qword [rbp]
call fcn.18003073c
test rax, rax
je 0x18000653f
mov rdx, qword [rsp + 0xa0]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18000651c
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, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18000653a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
jmp 0x180006628
mov rdx, rbx
mov rcx, qword [rsi]
call fcn.180030b18
xor edx, edx
mov rcx, qword [rsi]
call fcn.180030814
test eax, eax
jne 0x1800065ef
mov rcx, qword [rsi]
call fcn.180022860
test eax, eax
je 0x180006586
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x1800065ef
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x1800065ef
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x50], rax
lea rcx, [rbx - 0x18]
call fcn.180001790
add rax, 0x18
mov qword [rsp + 0xa8], rax
mov rcx, qword [rsi]
sub rcx, 0x18
call fcn.180001790
add rax, 0x18
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0xa8]
lea rcx, [rsp + 0x38]
call fcn.180005c40
mov rcx, qword [rsi]
sub rcx, 0x18
call fcn.180001790
add rax, 0x18
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x40]
call fcn.180020d20
nop
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18000660a
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, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180006628
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rbp]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], edi
dec edi
test edi, edi
jg 0x180006644
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
add rsp, 0x68
pop rdi
pop rsi
pop rbp
pop rbx
ret