Function at 0x14001c910
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3c0]
sub rsp, 0x4c0
mov rax, qword [0x1400c81d8]
xor rax, rsp
mov qword [rbp + 0x3b0], rax
mov rsi, rdx
mov r14, rcx
mov qword [rsp + 0x20], rcx
xor r15d, r15d
lea r8, [rdx + 0xa8]
lea rdx, [rsp + 0x38]
lea rcx, [0x1400caf70]
call fcn.140008bc0
mov r13, qword [rax]
lea rbx, [rsi + 0x20]
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14001c97a
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001cc98
mov r8, rbx
cmp qword [rbx + 0x18], 8
jb 0x14001c996
mov r8, qword [rbx]
mov edi, 0x104
mov edx, edi
lea rcx, [rbp + 0x1a0]
lea rax, [rbp + 0x1a0]
sub r8, rax
nop
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x14001c9d3
movzx eax, word [r8 + rcx]
test ax, ax
je 0x14001c9d3
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x14001c9b0
lea rax, [rcx - 2]
test rdx, rdx
cmovne rax, rcx
mov word [rax], r15w
mov edx, 0x2f
lea rcx, [rbp + 0x1a0]
call fcn.14008bae0
mov r12, rax
test rax, rax
je 0x14001ca05
mov word [rax], r15w
add r12, 2
jmp 0x14001ca0c
lea r12, [rbp + 0x1a0]
mov r8, rbx
mov r9, qword [rbx + 0x18]
cmp r9, 8
jb 0x14001ca1c
mov r8, qword [rbx]
mov rdx, rdi
lea rcx, [rbp - 0x70]
lea rax, [rbp - 0x70]
sub r8, rax
nop word [rax + rax]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x14001ca53
movzx eax, word [r8 + rcx]
test ax, ax
je 0x14001ca53
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x14001ca30
lea rax, [rcx - 2]
test rdx, rdx
cmovne rax, rcx
mov word [rax], r15w
mov rcx, rdi
lea rax, [rbp - 0x70]
nop dword [rax]
cmp word [rax], r15w
je 0x14001ca80
add rax, 2
sub rcx, 1
jne 0x14001ca70
mov rax, rdi
sub rax, rcx
test rcx, rcx
cmove rax, r15
je 0x14001cade
sub rdi, rax
lea rcx, [rbp - 0x70]
lea rcx, [rcx + rax*2]
je 0x14001cacf
mov eax, 0x7ffffffe
lea r8, str..old
sub r8, rcx
nop dword [rax + rax]
test rax, rax
je 0x14001cacf
movzx edx, word [r8 + rcx]
test dx, dx
je 0x14001cacf
mov word [rcx], dx
add rcx, 2
dec rax
sub rdi, 1
jne 0x14001cab0
lea rax, [rcx - 2]
test rdi, rdi
cmovne rax, rcx
mov word [rax], r15w
mov rcx, rbx
cmp r9, 8
jb 0x14001caea
mov rcx, qword [rbx]
lea rdx, [rbp - 0x70]
call fcn.1400180e0
test al, al
jne 0x14001cb3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x14001cb28
cmp eax, 0x4c8
je 0x14001cb28
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rdx, r12
lea rcx, str.Update_failed:_Couldnt_backup__s__error__d_
call fcn.140019620
xor al, al
jmp 0x14001ce47
mov rdx, r12
lea rcx, str.Update_failed:__s_is_still_in_use.__Close_all_programs_and_try_again.
call fcn.140019620
xor al, al
jmp 0x14001ce47
lea rax, [rbp - 0x70]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], r15w
jne 0x14001cb50
lea rcx, [rsi + 0x40]
lea rdx, [rbp - 0x70]
call fcn.140022570
cmp byte [rsi + 0xcd], 0
je 0x14001cbd5
mov r9, rbx
cmp qword [rbx + 0x18], 8
jb 0x14001cb7d
mov r9, qword [rbx]
mov r8, qword [rsi + 0xc0]
mov rdx, qword [r13 + 0x28]
mov rcx, r14
call fcn.140004420
mov edi, eax
test eax, eax
sete r14b
test eax, eax
jne 0x14001cbfe
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14001cba9
mov rcx, qword [rbx]
lea rdx, [rsp + 0x68]
call fcn.140001890
test al, al
je 0x14001cc32
lea rcx, [rsi + 0x80]
lea rdx, [rsp + 0x68]
call fcn.1400052b0
test al, al
je 0x14001cbfe
lea rcx, str.Update_failed:_Integrity_check_of_patched__s_failed
jmp 0x14001cc39
mov rdx, qword [r13 + 0x28]
mov r8, qword [r13 + 0x30]
sub r8, rdx
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14001cbed
mov rcx, qword [rbx]
call fcn.140018650
movzx r14d, al
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test r14b, r14b
jne 0x14001cc89
cmp edi, 0x20
je 0x14001cc14
cmp edi, 0x4c8
jne 0x14001cc52
test r15b, r15b
jne 0x14001cc80
mov r15b, 1
mov rcx, rsi
call fcn.140017d00
test al, al
je 0x14001cc80
mov r14, qword [rsp + 0x20]
jmp 0x14001cb67
lea rcx, str.Update_failed:_Couldnt_verify_integrity_of_patched__s
mov rdx, r12
call fcn.140019620
mov dword [rsi + 0xc8], 5
xor al, al
jmp 0x14001ce47
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
cmovne edi, eax
mov r8d, edi
mov rdx, r12
lea rcx, str.Update_failed:_Couldnt_update__s__error__d_
call fcn.140019620
mov dword [rsi + 0xc8], 5
xor al, al
jmp 0x14001ce47
lea rcx, str.Update_failed:__s_is_still_in_use.__Close_all_programs_and_try_again.
jmp 0x14001cc39
mov dword [rsi + 0xc8], 6
jmp 0x14001ce45
cmp byte [rsi + 0xcd], r15b
je 0x14001ccc1
cmp qword [rbx + 0x18], 8
jb 0x14001ccab
mov rbx, qword [rbx]
mov rdx, rbx
lea rcx, str.Update_failed:_Source_file__s_not_found
call fcn.140019620
xor al, al
jmp 0x14001ce47
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x14001ccce
mov rax, qword [rbx]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x48]
call fcn.1400056c0
nop
lea r14, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae r14, qword [rsp + 0x48]
mov rax, qword [rsp + 0x58]
lea rdi, [r14 + rax*2]
mov rdx, rdi
mov rcx, r14
call fcn.14001f6b0
cmp rax, rdi
je 0x14001cd6d
movzx ecx, word [rax]
cmp cx, 0x5c
je 0x14001cd1f
cmp cx, 0x2f
jne 0x14001cd28
add rax, 2
cmp rax, rdi
jne 0x14001cd10
cmp rax, rdi
je 0x14001cd6d
nop dword [rax]
lea rdx, [rdi - 2]
movzx ecx, word [rdx]
cmp cx, 0x5c
je 0x14001cd4d
cmp cx, 0x2f
je 0x14001cd4d
mov rdi, rdx
cmp rax, rdx
jne 0x14001cd30
jmp 0x14001cd6d
cmp rax, rdi
je 0x14001cd6d
lea rdx, [rdi - 2]
movzx ecx, word [rdx]
cmp cx, 0x5c
je 0x14001cd65
cmp cx, 0x2f
jne 0x14001cd6d
mov rdi, rdx
cmp rax, rdx
jne 0x14001cd52
mov qword [rsp + 0x20], r14
sub rdi, r14
sar rdi, 1
mov qword [rsp + 0x28], rdi
xor r8d, r8d
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x68]
call fcn.140005710
nop
mov dword [rsp + 0x20], r15d
call fcn.1400083f0
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x68]
call fcn.140022860
cmp dword [rsp + 0x20], 0
jne 0x14001ce71
lea rcx, [rsp + 0x68]
call fcn.140021f70
lea rcx, [rsi + 0x40]
xor r8d, r8d
lea rdx, [0x1400aaa04]
call fcn.140022570
mov rdx, qword [r13 + 0x28]
mov r8, qword [r13 + 0x30]
sub r8, rdx
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14001cdee
mov rcx, qword [rbx]
call fcn.140018650
test al, al
jne 0x14001ce31
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp qword [rbx + 0x18], 8
jb 0x14001ce07
mov rbx, qword [rbx]
mov r8d, eax
mov rdx, rbx
lea rcx, str.Update_failed:_Couldnt_install__s__error__d_
call fcn.140019620
mov dword [rsi + 0xc8], 5
lea rcx, [rsp + 0x48]
call fcn.140021f70
xor al, al
jmp 0x14001ce47
mov dword [rsi + 0xc8], 6
lea rcx, [rsp + 0x48]
call fcn.140021f70
mov al, 1
mov rcx, qword [rbp + 0x3b0]
xor rcx, rsp
call fcn.1400890e0
mov rbx, qword [rsp + 0x510]
add rsp, 0x4c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x20]
lea rcx, str.create_directories
call fcn.140021a90
int3