Function at 0x180015b40
Capabilities:
Copy file
Delete file
Move file
Read file on windows
Write file on windows

Disassembly:
test rcx, rcx
je 0x180015f44
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x4a0
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x4f0], rbx
mov rax, qword [0x1801903f8]
xor rax, rsp
mov qword [rsp + 0x490], rax
mov edi, edx
mov r13, rcx
mov qword [rsp + 0x60], rcx
test edx, edx
je 0x180015f1a
xor edx, edx
call fcn.1800c12e0
test eax, eax
je 0x180015f1a
xor ebp, ebp
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x10000000
lea r8d, [rbp + 2]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x180015f1a
lea ecx, [rdi + 1]
mov ebx, ecx
mov qword [rsp + 0x58], rbx
call fcn.180030824
mov r15, rax
test rax, rax
je 0x180015f1a
mov rcx, rbx
call fcn.180030824
mov r14, rax
test rax, rax
je 0x180015f05
mov dword [rsp + 0x44], ebp
mov r8, rbx
xor edx, edx
mov rcx, r15
call fcn.18007ead0
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x44]
mov r8d, edi
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x180015f05
mov r12d, ebp
cmp dword [reloc.WS2_32.dll_accept], ebp
jle 0x180015f05
lea rbp, str.all_in_one_window_typetrue
mov r13d, r12d
nop dword [rax]
mov rdx, qword [rbp]
mov rcx, r15
call fcn.18007fd28
mov rdi, rax
mov qword [rsp + 0x48], rax
mov r8, rbx
xor edx, edx
mov rcx, r14
call fcn.18007ead0
test rdi, rdi
je 0x180015d47
xor eax, eax
lea r13d, [rax + 1]
or rcx, 0xffffffffffffffff
mov rdi, qword [rbp]
repne scasb al, byte [rdi]
not rcx
lea rsi, [rcx - 1]
or rcx, 0xffffffffffffffff
mov rdi, qword [rbp + 8]
repne scasb al, byte [rdi]
not rcx
lea rbx, [rcx - 1]
or rcx, 0xffffffffffffffff
mov rdi, qword [rsp + 0x48]
repne scasb al, byte [rdi]
not rcx
lea rdx, [rcx - 1]
or rcx, 0xffffffffffffffff
mov rdi, r15
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
sub r8, rdx
mov rdx, r15
mov rcx, r14
call fcn.18007fb60
mov r8, rbx
mov rdx, qword [rbp + 8]
mov rcx, r14
call fcn.1800802b0
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdx, qword [rsp + 0x48]
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
sub r8, rsi
add rdx, rsi
mov rcx, r14
call fcn.1800802b0
mov rbx, qword [rsp + 0x58]
mov r8, rbx
xor edx, edx
mov rcx, r15
call fcn.18007ead0
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, r14
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, r14
mov rcx, r15
call fcn.18007fb60
jmp 0x180015da7
mov rdx, qword [rbp]
lea rcx, [rsp + 0x50]
call fcn.180015a50
nop
cmp dword [0x1801b0450], 0
je 0x180015d87
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, str.LINEConfigModify_Cannot_Found___s_
lea r8, str.LINE
or edx, 0xffffffff
lea rcx, [0x1801afb58]
call fcn.1800b3b40
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180015da7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
inc r12d
add rbp, 0x10
cmp r12d, dword [reloc.WS2_32.dll_accept]
jl 0x180015c60
test r13d, r13d
mov r13, qword [rsp + 0x60]
je 0x180015f05
xor esi, esi
mov word [rsp + 0x70], si
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x72]
call fcn.18007ead0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r9d, eax
mov r8, r13
lea rdx, str._s_Bak_08x
lea rcx, [rsp + 0x70]
call fcn.180002970
xor r8d, r8d
lea rdx, [rsp + 0x70]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x180015f05
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x10000000
lea r8d, [rsi + 2]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180015f05
mov dword [rsp + 0x40], esi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x44]
mov rdx, r14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x180015ea0
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x180015f05
mov word [rsp + 0x280], si
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x282]
call fcn.18007ead0
mov r8, r13
lea rdx, str._s_WriteFileError
lea rcx, [rsp + 0x280]
call fcn.180002970
lea rdx, [rsp + 0x280]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x180015f05
mov rdx, r13
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
lea rcx, [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, r15
call fcn.18003081c
test r14, r14
je 0x180015f1a
mov rcx, r14
call fcn.18003081c
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.18007e1e0
mov rbx, qword [rsp + 0x4f0]
add rsp, 0x4a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
repz ret