Function at 0x14002d620
Capabilities:
Check if file exists
Get file attributes
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1e0]
sub rsp, 0x2e0
mov rax, qword [0x14015a038]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov r15, rcx
mov qword [rbp - 0x70], rcx
xor r13d, r13d
mov qword [rcx], r13
mov qword [rcx + 0x10], r13
mov qword [rcx + 0x18], 7
mov word [rcx], r13w
lea r12, [rcx + 0x20]
mov qword [r12], r13
mov qword [r12 + 0x10], r13
mov qword [r12 + 0x18], 7
mov word [r12], r13w
mov qword [rcx + 0x40], r13
mov qword [rcx + 0x50], r13
mov qword [rcx + 0x58], 7
mov word [rcx + 0x40], r13w
mov qword [rcx + 0x60], r13
mov qword [rcx + 0x70], r13
mov qword [rcx + 0x78], 7
mov word [rcx + 0x60], r13w
mov eax, reloc.WS2_32.dll_recv
mov dword [rcx + 0x80], eax
movabs rdi, 0x7ffffffffffffffe
nop
mov r8d, eax
lea rdx, str.SOFTWAREMicrosoftOffice_ld.0ExcelInstallRoot
lea rcx, [rbp - 0x40]
call fcn.14001e0a0
mov qword [rsp + 0x40], r13
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
test rax, rax
jne 0x14002d70c
lea rcx, str.advapi32.dll
call fcn.140011340
mov rbx, rax
lea rdx, [0x14012e5c8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x48], rax
lea rdx, str.RegCreateKeyExW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x50], rax
lea rdx, [0x14012e5e8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x60], rax
lea rdx, str.RegSetValueExW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x68], rax
lea rdx, str.RegEnumKeyExW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x70], rax
lea rdx, str.RegEnumValueW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x78], rax
lea rdx, str.RegDeleteValueW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp - 0x80], rax
lea rdx, [0x14012e640]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14002d7c4
call rax
mov qword [rsp + 0x40], r13
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, [rbp - 0x40]
mov rcx, 0xffffffff80000002
call qword [rsp + 0x48]
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14002dadc
mov qword [rbp - 0x68], r13
mov qword [rbp - 0x58], r13
mov qword [rbp - 0x50], 7
mov word [rbp - 0x68], r13w
mov dword [rsp + 0x34], 1
mov dword [rsp + 0x30], r13d
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, str.Path
call qword [rsp + 0x60]
test eax, eax
jne 0x14002da97
mov ecx, dword [rsp + 0x30]
inc ecx
call fcn.14009bed8
mov rbx, rax
mov r8d, dword [rsp + 0x30]
inc r8d
xor edx, edx
mov rcx, rax
call fcn.14009e4c0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, str.Path
mov rcx, qword [rsp + 0x40]
call qword [rsp + 0x60]
test eax, eax
jne 0x14002da97
cmp byte [rbx], al
je 0x14002da8e
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rbx + r8*2], 0
jne 0x14002d8a0
mov rdx, rbx
mov rcx, r12
call fcn.1400123a0
mov rcx, rbx
call fcn.14009b518
mov rcx, qword [r15 + 0x30]
test rcx, rcx
je 0x14002da97
mov rax, r12
cmp qword [r12 + 0x18], 8
jb 0x14002d8da
mov rax, qword [r12]
cmp word [rax + rcx*2 - 2], 0x5c
je 0x14002d8f7
mov r8d, 1
lea rdx, [0x14012e6c4]
mov rcx, r12
call fcn.14000b610
lea rax, [rbp - 0x68]
cmp rax, r12
je 0x14002da08
mov r13, r12
cmp qword [r12 + 0x18], 8
jb 0x14002d913
mov r13, qword [r12]
mov r14, qword [r12 + 0x10]
mov rsi, qword [rbp - 0x50]
cmp r14, rsi
ja 0x14002d951
lea rdi, [rbp - 0x68]
cmp rsi, 8
cmovae rdi, qword [rbp - 0x68]
mov qword [rbp - 0x58], r14
lea rbx, [r14 + r14]
mov r8, rbx
mov rdx, r13
mov rcx, rdi
call fcn.14009de10
xor r13d, r13d
mov word [rdi + rbx], r13w
jmp 0x14002d9fe
cmp r14, rdi
ja 0x14002dc96
mov rbx, r14
or rbx, 7
cmp rbx, rdi
jbe 0x14002d96b
mov rbx, rdi
jmp 0x14002d98c
mov rcx, rsi
shr rcx, 1
mov rax, rdi
sub rax, rcx
cmp rsi, rax
jbe 0x14002d981
mov rbx, rdi
jmp 0x14002d98c
lea rax, [rcx + rsi]
cmp rbx, rax
cmovb rbx, rax
lea rdx, [rbx + 1]
lea rcx, [rbp - 0x68]
call fcn.140012190
mov rdi, rax
mov qword [rbp - 0x58], r14
mov qword [rbp - 0x50], rbx
lea rbx, [r14 + r14]
mov r8, rbx
mov rdx, r13
mov rcx, rax
call fcn.14009de10
xor r13d, r13d
mov word [rdi + rbx], r13w
cmp rsi, 8
jb 0x14002d9fa
lea rdx, [rsi*2 + 2]
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002d9f5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002dc8a
call fcn.14009b510
mov qword [rbp - 0x68], rdi
movabs rdi, 0x7ffffffffffffffe
mov r8d, 9
lea rdx, str.excel.exe
lea rcx, [rbp - 0x68]
call fcn.14000b610
lea rcx, [rbp - 0x68]
cmp qword [rbp - 0x50], 8
cmovae rcx, qword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14002da97
lea rax, [rbp - 0x68]
cmp r15, rax
je 0x14002dbe7
lea r14, [rbp - 0x68]
cmp qword [rbp - 0x50], 8
cmovae r14, qword [rbp - 0x68]
mov rbx, qword [rbp - 0x58]
mov rdi, qword [r15 + 0x18]
cmp rbx, rdi
ja 0x14002db3b
mov rsi, r15
cmp rdi, 8
jb 0x14002da6f
mov rsi, qword [r15]
mov qword [r15 + 0x10], rbx
add rbx, rbx
mov r8, rbx
mov rdx, r14
mov rcx, rsi
call fcn.14009de10
mov word [rbx + rsi], r13w
jmp 0x14002dbe7
mov rcx, rbx
call fcn.14009b518
nop
mov rdx, qword [rbp - 0x50]
cmp rdx, 8
jb 0x14002dad7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002dad2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002dc90
call fcn.14009b510
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14002dae6
call qword [rsp + 0x58]
nop
dec dword [r15 + 0x80]
mov eax, dword [r15 + 0x80]
cmp eax, 8
jg 0x14002d6d0
mov dword [r15 + 0x84], 0xffffffff
mov rax, r15
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.14009b5b0
lea r11, [rsp + 0x2e0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
movabs r13, 0x7ffffffffffffffe
cmp rbx, r13
ja 0x14002dc96
mov rcx, rbx
or rcx, 7
cmp rcx, r13
ja 0x14002db79
mov rdx, rdi
shr rdx, 1
mov rax, r13
sub rax, rdx
cmp rdi, rax
ja 0x14002db79
lea rax, [rdi + rdx]
mov r13, rcx
cmp rcx, rax
cmovb r13, rax
lea rdx, [r13 + 1]
mov rcx, r15
call fcn.140012190
mov rsi, rax
mov qword [r15 + 0x10], rbx
mov qword [r15 + 0x18], r13
add rbx, rbx
mov r8, rbx
mov rdx, r14
mov rcx, rax
call fcn.14009de10
xor r13d, r13d
mov word [rsi + rbx], r13w
cmp rdi, 8
jb 0x14002dbe4
mov rcx, qword [r15]
lea rdx, [rdi*2 + 2]
cmp rdx, 0x1000
jb 0x14002dbdf
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14002dc8a
mov rcx, r8
call fcn.14009b510
mov qword [r15], rsi
mov r8d, dword [r15 + 0x80]
lea rdx, str.SOFTWAREMicrosoftOffice_ld.0_
lea rcx, [rbp - 0x40]
call fcn.14001e0a0
lea rax, [rbp - 0x40]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x14002dc10
lea rdx, [rbp - 0x40]
lea rcx, [r15 + 0x60]
call fcn.1400123a0
nop
mov rdx, qword [rbp - 0x50]
cmp rdx, 8
jb 0x14002dc65
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002dc60
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002dc90
call fcn.14009b510
mov qword [rbp - 0x58], r13
mov qword [rbp - 0x50], 7
mov word [rbp - 0x68], r13w
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14002dc85
call qword [rsp + 0x58]
nop
jmp 0x14002dafd
call fcn.1400ac408
nop
call fcn.1400ac408
nop
call fcn.140011cf0
int3