Function at 0x140021410
Capabilities:
Copy file

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x110
mov qword [rsp + 0xb0], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov rax, qword [0x1401dd3a0]
xor rax, rsp
mov qword [rsp + 0x108], rax
mov rbx, rdx
mov rdi, rcx
cmp qword [rcx + 0x18], 0
je 0x1400218d4
cmp qword [rdx + 0x18], 0
je 0x1400218d4
mov rcx, rdx
call fcn.140036790
test al, al
je 0x1400218d6
lea rcx, [rsp + 0x88]
call fcn.140020630
nop
lea r8, [0x1401a2d14]
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.140013df0
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rsp + 0xe0]
call fcn.1400222a0
nop
cmp qword [rsp + 0x80], 8
jb 0x1400214c0
mov rcx, qword [rsp + 0x68]
call fcn.1400ddb14
mov qword [rsp + 0x80], 7
xor r13d, r13d
mov qword [rsp + 0x78], r13
mov word [rsp + 0x68], r13w
cmp qword [rsp + 0xa8], 8
jb 0x1400214f2
mov rcx, qword [rsp + 0x90]
call fcn.1400ddb14
mov qword [rsp + 0xa8], 7
mov qword [rsp + 0xa0], r13
mov word [rsp + 0x90], r13w
lea r8, [0x1401a2d14]
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.140013df0
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rsp + 0xb8]
call fcn.1400222a0
nop
cmp qword [rsp + 0x58], 8
jb 0x14002154a
mov rcx, qword [rsp + 0x40]
call fcn.1400ddb14
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], r13
mov word [rsp + 0x40], r13w
lea rcx, [rsp + 0xe0]
call fcn.140036680
test al, al
jne 0x1400215c3
cmp qword [rsp + 0xd8], 8
jb 0x140021587
mov rcx, qword [rsp + 0xc0]
call fcn.1400ddb14
mov qword [rsp + 0xd8], 7
mov qword [rsp + 0xd0], r13
mov word [rsp + 0xc0], r13w
cmp qword [rsp + 0x100], 8
jb 0x1400215bc
mov rcx, qword [rsp + 0xe8]
call fcn.1400ddb14
xor al, al
jmp 0x1400218d6
lea rdx, [rsp + 0xc0]
cmp qword [rsp + 0xd8], 8
cmovae rdx, qword [rsp + 0xc0]
lea rcx, [rsp + 0xe8]
cmp qword [rsp + 0x100], 8
cmovae rcx, qword [rsp + 0xe8]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x140021883
lea rcx, str.swifdiag.log
call fcn.140001910
mov rbx, rax
test rax, rax
je 0x140021832
mov r10, qword [rax]
lea rsi, str.SwiConfig::CopyInstalledFile
mov qword [rsp + 0x20], rsi
lea rdi, str....._src_swic_srcSwiConfigFiles.cpp
mov r9, rdi
lea r8, str.default
mov edx, 3
mov rcx, rax
call qword [r10 + 8]
test al, al
je 0x140021832
mov byte [rbx + 0xf8], 0x76
mov eax, r13d
mov r8b, 0x2e
mov rcx, rdi
mov edx, 1
nop dword [rax]
cmp r8b, 0x5c
cmove eax, edx
inc edx
inc rcx
movzx r8d, byte [rcx]
test r8b, r8b
jne 0x140021670
add rax, rdi
mov qword [rbx + 0x100], rax
mov dword [rbx + 0x108], 0x57
mov qword [rbx + 0x110], rsi
lea r12, [rsp + 0xc0]
cmp qword [rsp + 0xd8], 8
cmovae r12, qword [rsp + 0xc0]
lea rbp, [rsp + 0xe8]
cmp qword [rsp + 0x100], 8
cmovae rbp, qword [rsp + 0xe8]
mov rcx, rbx
call fcn.1400027f0
mov rsi, rax
mov rbx, r13
lea r14, str.File__
nop dword [rax]
inc rbx
cmp byte [rbx + r14], 0
jne 0x1400216f0
mov ecx, dword [rax + 0x430]
mov dword [rax + 0x430], r13d
cmp ebx, ecx
jge 0x140021739
movzx eax, byte [rax + 0x42c]
mov byte [rsp + 0x30], al
sub ecx, ebx
mov edi, ecx
nop word [rax + rax]
mov r8d, 1
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.14002f090
sub rdi, 1
jne 0x140021720
mov r8, rbx
mov rdx, r14
mov rcx, rsi
call fcn.14002f090
mov rdx, rbp
mov rcx, rsi
call fcn.140013b50
mov rsi, rax
mov rbx, r13
lea rbp, str.__copied_to__
nop
inc rbx
cmp byte [rbx + rbp], 0
jne 0x140021760
mov ecx, dword [rax + 0x430]
mov dword [rax + 0x430], r13d
cmp ebx, ecx
jge 0x1400217a9
movzx eax, byte [rax + 0x42c]
mov byte [rsp + 0x30], al
sub ecx, ebx
mov edi, ecx
nop dword [rax]
mov r8d, 1
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.14002f090
sub rdi, 1
jne 0x140021790
mov r8, rbx
mov rdx, rbp
mov rcx, rsi
call fcn.14002f090
mov rdx, r12
mov rcx, rsi
call fcn.140013b50
mov rdi, rax
mov rbx, r13
lea rbp, [0x14019ef98]
nop
inc rbx
cmp byte [rbx + rbp], 0
jne 0x1400217d0
mov ecx, dword [rax + 0x430]
mov dword [rax + 0x430], r13d
cmp ebx, ecx
jge 0x140021819
movzx eax, byte [rax + 0x42c]
mov byte [rsp + 0x30], al
sub ecx, ebx
mov esi, ecx
nop dword [rax]
mov r8d, 1
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.14002f090
sub rsi, 1
jne 0x140021800
mov r8, rbx
mov rdx, rbp
mov rcx, rdi
call fcn.14002f090
mov r11, qword [rdi]
mov rcx, rdi
call qword [r11 + 8]
nop
cmp qword [rsp + 0xd8], 8
jb 0x14002184a
mov rcx, qword [rsp + 0xc0]
call fcn.1400ddb14
mov qword [rsp + 0xd8], 7
mov qword [rsp + 0xd0], r13
mov word [rsp + 0xc0], r13w
cmp qword [rsp + 0x100], 8
jb 0x14002187f
mov rcx, qword [rsp + 0xe8]
call fcn.1400ddb14
mov al, 1
jmp 0x1400218d6
cmp qword [rsp + 0xd8], 8
jb 0x14002189b
mov rcx, qword [rsp + 0xc0]
call fcn.1400ddb14
mov qword [rsp + 0xd8], 7
mov qword [rsp + 0xd0], r13
mov word [rsp + 0xc0], r13w
cmp qword [rsp + 0x100], 8
jb 0x1400218d0
mov rcx, qword [rsp + 0xe8]
call fcn.1400ddb14
xor al, al
jmp 0x1400218d6
xor al, al
mov rcx, qword [rsp + 0x108]
xor rcx, rsp
call fcn.1400dd780
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret