Function at 0x18002d560
Capabilities:
Copy file

Disassembly:
push rsi
sub rsp, 0x240
mov rax, qword [0x1800a4830]
xor rax, rsp
mov qword [rsp + 0x230], rax
cmp dword [rcx + 8], 0
mov rsi, rcx
jne 0x18002d58b
xor eax, eax
jmp 0x18002d83b
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 0x18002d663
nop
mov rdi, qword [rbx + 0x28]
lea rdx, [0x18006ee10]
lea rcx, [rsp + 0x20]
mov rax, qword [rdi + 8]
movzx r8d, byte [rax]
call fcn.180010750
lea rdx, [rdi + 0x10]
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], 0
jne 0x18002d5d5
test eax, eax
jle 0x18002d606
lea r9, [rsi + 0xf8]
cmp qword [r9 + 0x18], 8
jb 0x18002d5f4
mov r9, qword [r9]
lea r8, [rsp + 0x20]
lea rcx, str.GDftSet
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp byte [rbx + 0x19], 0
jne 0x18002d656
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
jne 0x18002d630
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
jne 0x18002d656
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x18002d622
jmp 0x18002d656
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x18002d653
nop word [rax + rax]
cmp rbx, qword [rax + 0x10]
jne 0x18002d653
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x18002d640
mov rbx, rax
mov rax, qword [rsi + 0x30]
cmp rbx, qword [rax]
jne 0x18002d5b0
mov rax, qword [rsi + 0x38]
mov rax, qword [rax]
mov rbx, qword [rax]
cmp rbx, rax
je 0x18002d733
nop word [rax + rax]
mov rdi, qword [rbx + 0x28]
lea rdx, [0x18006ee10]
lea rcx, [rsp + 0x20]
mov rax, qword [rdi + 8]
mov r8d, dword [rax]
call fcn.180010750
lea rdx, [rdi + 0x10]
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], 0
jne 0x18002d6a4
test eax, eax
jle 0x18002d6d5
lea r9, [rsi + 0xf8]
cmp qword [r9 + 0x18], 8
jb 0x18002d6c3
mov r9, qword [r9]
lea r8, [rsp + 0x20]
lea rcx, str.GDftSet
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp byte [rbx + 0x19], 0
jne 0x18002d726
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
jne 0x18002d6ff
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
jne 0x18002d726
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x18002d6f1
jmp 0x18002d726
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x18002d723
nop dword [rax]
cmp rbx, qword [rax + 0x10]
jne 0x18002d723
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x18002d710
mov rbx, rax
mov rax, qword [rsi + 0x38]
cmp rbx, qword [rax]
jne 0x18002d680
mov rax, qword [rsi + 0x40]
mov rax, qword [rax]
mov rbx, qword [rax]
cmp rbx, rax
je 0x18002d7fb
nop word [rax + rax]
mov rdi, qword [rbx + 0x28]
lea rdx, [0x18006f0f4]
lea rcx, [rsp + 0x20]
mov r8, qword [rdi + 8]
call fcn.180010750
lea rdx, [rdi + 0x10]
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], 0
jne 0x18002d771
test eax, eax
jle 0x18002d7a2
lea r9, [rsi + 0xf8]
cmp qword [r9 + 0x18], 8
jb 0x18002d790
mov r9, qword [r9]
lea r8, [rsp + 0x20]
lea rcx, str.GDftSet
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp byte [rbx + 0x19], 0
jne 0x18002d7ee
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
jne 0x18002d7ce
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
jne 0x18002d7ee
nop
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x18002d7c0
jmp 0x18002d7ee
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x18002d7eb
cmp rbx, qword [rax + 0x10]
jne 0x18002d7eb
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x18002d7d8
mov rbx, rax
mov rax, qword [rsi + 0x40]
cmp rbx, qword [rax]
jne 0x18002d750
mov rdi, qword [rsp + 0x260]
lea rdx, [rsi + 0x118]
cmp qword [rdx + 0x18], 8
mov rbx, qword [rsp + 0x258]
jb 0x18002d81c
mov rdx, qword [rdx]
lea rcx, [rsi + 0xf8]
cmp qword [rcx + 0x18], 8
jb 0x18002d82d
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.18002fe60
add rsp, 0x240
pop rsi
ret