Function at 0x18002cec0
Capabilities:
Copy file

Disassembly:
push rsi
sub rsp, 0x240
mov rax, qword [0x1800a0830]
xor rax, rsp
mov qword [rsp + 0x230], rax
cmp dword [rcx + 8], 0
mov rsi, rcx
jne 0x18002ceeb
xor eax, eax
jmp 0x18002d19b
mov rax, qword [rcx + 0x30]
mov qword [rsp + 0x258], rbx
mov qword [rsp + 0x260], rdi
mov rax, qword [rax]
mov rbx, qword [rax]
cmp rbx, rax
je 0x18002cfc3
nop
mov rdi, qword [rbx + 0x28]
lea rdx, [0x18006be28]
lea rcx, [rsp + 0x20]
mov rax, qword [rdi + 8]
movzx r8d, byte [rax]
call fcn.180010760
lea rdx, [rdi + 0x10]
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], 0
jne 0x18002cf35
test eax, eax
jle 0x18002cf66
lea r9, [rsi + 0xf8]
cmp qword [r9 + 0x18], 8
jb 0x18002cf54
mov r9, qword [r9]
lea r8, [rsp + 0x20]
lea rcx, str.IntgftSet
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp byte [rbx + 0x19], 0
jne 0x18002cfb6
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
jne 0x18002cf90
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
jne 0x18002cfb6
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x18002cf82
jmp 0x18002cfb6
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x18002cfb3
nop word [rax + rax]
cmp rbx, qword [rax + 0x10]
jne 0x18002cfb3
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x18002cfa0
mov rbx, rax
mov rax, qword [rsi + 0x30]
cmp rbx, qword [rax]
jne 0x18002cf10
mov rax, qword [rsi + 0x38]
mov rax, qword [rax]
mov rbx, qword [rax]
cmp rbx, rax
je 0x18002d093
nop word [rax + rax]
mov rdi, qword [rbx + 0x28]
lea rdx, [0x18006be28]
lea rcx, [rsp + 0x20]
mov rax, qword [rdi + 8]
mov r8d, dword [rax]
call fcn.180010760
lea rdx, [rdi + 0x10]
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], 0
jne 0x18002d004
test eax, eax
jle 0x18002d035
lea r9, [rsi + 0xf8]
cmp qword [r9 + 0x18], 8
jb 0x18002d023
mov r9, qword [r9]
lea r8, [rsp + 0x20]
lea rcx, str.IntgftSet
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp byte [rbx + 0x19], 0
jne 0x18002d086
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
jne 0x18002d05f
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
jne 0x18002d086
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x18002d051
jmp 0x18002d086
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x18002d083
nop dword [rax]
cmp rbx, qword [rax + 0x10]
jne 0x18002d083
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x18002d070
mov rbx, rax
mov rax, qword [rsi + 0x38]
cmp rbx, qword [rax]
jne 0x18002cfe0
mov rax, qword [rsi + 0x40]
mov rax, qword [rax]
mov rbx, qword [rax]
cmp rbx, rax
je 0x18002d15b
nop word [rax + rax]
mov rdi, qword [rbx + 0x28]
lea rdx, [0x18006c108]
lea rcx, [rsp + 0x20]
mov r8, qword [rdi + 8]
call fcn.180010760
lea rdx, [rdi + 0x10]
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], 0
jne 0x18002d0d1
test eax, eax
jle 0x18002d102
lea r9, [rsi + 0xf8]
cmp qword [r9 + 0x18], 8
jb 0x18002d0f0
mov r9, qword [r9]
lea r8, [rsp + 0x20]
lea rcx, str.IntgftSet
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp byte [rbx + 0x19], 0
jne 0x18002d14e
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
jne 0x18002d12e
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
jne 0x18002d14e
nop
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x18002d120
jmp 0x18002d14e
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x18002d14b
cmp rbx, qword [rax + 0x10]
jne 0x18002d14b
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x18002d138
mov rbx, rax
mov rax, qword [rsi + 0x40]
cmp rbx, qword [rax]
jne 0x18002d0b0
mov rdi, qword [rsp + 0x260]
lea rdx, [rsi + 0x118]
cmp qword [rdx + 0x18], 8
mov rbx, qword [rsp + 0x258]
jb 0x18002d17c
mov rdx, qword [rdx]
lea rcx, [rsi + 0xf8]
cmp qword [rcx + 0x18], 8
jb 0x18002d18d
mov rcx, qword [rcx]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov eax, 1
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.18002f6f0
add rsp, 0x240
pop rsi
ret