Function at 0x1402b529c
Capabilities:
Get common file path
Set current directory

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x28]
sub rsp, 0x128
mov qword [rbp + 0x18], 0xfffffffffffffffe
mov rsi, rcx
xor r14d, r14d
mov r12b, r14b
mov r13b, 1
mov rax, qword [rcx + 0x800]
or r15d, 0xffffffff
cmp dword [rax - 0x10], r14d
je 0x1402b5557
lea rdx, [rcx + 0x800]
lea rcx, [rbp + 0x70]
call fcn.14000c4d8
nop
mov rbx, qword [rbp + 0x70]
cmp dword [rbx - 0x10], r14d
jl 0x1402b5532
lea rdx, str._clean
mov rcx, rbx
call fcn.1400bee84
test rax, rax
je 0x1402b531c
sub rax, rbx
sar rax, 1
cmp eax, r15d
jg 0x1402b534d
cmp dword [rbx - 0x10], r14d
jl 0x1402b5532
lea rdx, str._analyze
mov rcx, rbx
call fcn.1400bee84
test rax, rax
je 0x1402b5532
sub rax, rbx
sar rax, 1
cmp eax, r15d
jle 0x1402b5532
mov r13b, r14b
lea r8, [0x140330de8]
lea rdx, str._analyze
lea rcx, [rbp + 0x70]
call fcn.14000b658
test eax, eax
jle 0x1402b5370
mov r12b, 1
jmp 0x1402b5392
lea r8, [0x140330de8]
lea rdx, str._clean
lea rcx, [rbp + 0x70]
call fcn.14000b658
cmp byte [rsi + 0x5e2], r14b
setne r12b
mov rbx, qword [rbp + 0x70]
cmp dword [rbx - 0x10], r14d
je 0x1402b5532
lea rcx, [rbp + 0x70]
call fcn.14000baec
lea r8, [0x140330de8]
lea rdx, [0x14034dbb8]
lea rcx, [rbp + 0x70]
call fcn.14000b658
lea rcx, [rsi + 0x858]
lea rdx, [rbp + 0x70]
call fcn.14000c244
mov rdx, qword [rbp + 0x70]
lea rcx, [rbp + 0x88]
call fcn.14000cb18
nop
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.SHLWAPI.dll_PathGetDriveNumberW]
cmp eax, r15d
jne 0x1402b550b
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp + 0x78], rax
mov ebx, 0x104
mov r9d, 1
mov r8d, ebx
lea rdx, [rbp + 0x78]
lea rcx, [rbp - 0x10]
call fcn.14000bd14
mov rdx, qword [rax + 8]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, dword [rbp]
mov rbx, qword [rbp - 0x10]
cmp eax, r15d
jne 0x1402b5459
mov rcx, qword [rbx]
test rcx, rcx
jne 0x1402b5450
mov eax, r14d
jmp 0x1402b5461
movsxd rdx, dword [rcx - 0xc]
call fcn.1400beaac
test eax, eax
js 0x1402b5500
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x1402b5500
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rbx]
mov word [rax + rcx*2], r14w
lea r8, [0x14034fa44]
lea rdx, [rbp + 0x78]
lea rcx, [rbp - 0x30]
call fcn.14001c3e0
mov rdx, qword [rax]
mov rax, qword [0x14048abe8]
mov rcx, qword [rax + 0x48]
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
sete bl
mov rdx, qword [rbp - 0x30]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x1402b54c8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test bl, bl
je 0x1402b54de
mov rax, qword [0x14048abe8]
mov rcx, qword [rax + 0x48]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
nop
mov rdx, qword [rbp + 0x78]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x1402b550b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x1402b550b
mov ecx, 0x80070057
call fcn.14000cbb8
nop
mov rdx, qword [rbp + 0x88]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x1402b552e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rbp + 0x70]
lea rdx, [rbx - 0x18]
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x1402b554e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test r13b, r13b
je 0x1402b595c
mov rax, qword [rsi + 0x800]
cmp dword [rax - 0x10], r14d
je 0x1402b595c
mov r12b, 1
mov ecx, UnRegisterTypeLib
call fcn.1400be454
mov qword [rbp - 0x18], rax
test rax, rax
je 0x1402b5588
mov rcx, rax
call fcn.140008998
jmp 0x1402b558b
mov rax, r14
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.14000890c
nop
mov rax, qword [0x14048abe8]
mov rcx, qword [rax + 0x20]
mov rax, qword [rcx]
lea r8, [rbp - 0x80]
lea rdx, [rsi + 0x800]
call qword [rax + 0x18]
mov ebx, eax
test eax, eax
je 0x1402b566b
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x78], rax
mov edx, ebx
lea rcx, [rbp - 0x68]
call fcn.14023e59c
nop
mov r9, qword [rsi + 0x800]
mov r8, qword [rax]
lea rdx, str._s_r_n_s
lea rcx, [rsp + 0x78]
call fcn.14000d9c8
nop
mov rdx, qword [rbp - 0x68]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x1402b5620
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r9d, 0x10
lea r8, [0x14034ee68]
mov rbx, qword [rsp + 0x78]
mov rdx, rbx
mov rcx, qword [0x14048abe8]
mov rcx, qword [rcx + 0x18]
call fcn.140243460
nop
lea rdx, [rbx - 0x18]
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x1402b58c9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x1402b58c9
mov rax, qword [rbp - 0x80]
cmp byte [rax + 0x25], r14b
je 0x1402b58c9
mov rax, qword [0x14048abe8]
mov rcx, qword [rax + 0x30]
mov rax, qword [rcx]
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
xor r9d, r9d
mov r8d, 0x1f5
lea rdx, [rbp - 0x70]
call qword [rax + 0x20]
mov r9d, 0x33
lea r8, [0x14034ee68]
mov rdx, qword [rax]
mov rcx, qword [0x14048abe8]
mov rcx, qword [rcx + 0x18]
call fcn.140243460
movsxd rbx, eax
mov rdx, qword [rbp - 0x70]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x1402b5707
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp rbx, 6
jne 0x1402b58c9
mov qword [rbp - 0x60], r14
mov qword [rbp - 0x58], r14
mov qword [rbp - 0x50], r14
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp + 0x80], rax
mov r8d, 0xc39
lea rdx, [0x140350cf8]
lea rcx, [rbp + 0x80]
call fcn.14000d9c8
lea rcx, [rsi + 0x5e8]
lea r8, [rbp + 0x80]
lea rdx, [rbp + 8]
call fcn.1401abd88
mov r11, rax
mov rax, qword [rax]
mov qword [rbp - 0x28], rax
mov rbx, qword [r11 + 8]
mov qword [r11 + 8], r14
mov qword [rbp - 0x20], rbx
mov qword [r11], r14
mov rdi, qword [rbp + 0x10]
test rdi, rdi
je 0x1402b57b7
mov eax, r15d
lock xadd dword [rdi + 8], eax
add eax, r15d
jne 0x1402b57b7
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, r15d
lock xadd dword [rdi + 0xc], eax
add eax, r15d
jne 0x1402b57b7
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x40]
call fcn.1402b2ccc
nop
mov rax, qword [rbp - 0x40]
or dword [rax + 0x78], 8
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x60]
call fcn.14001528c
call fcn.140016b3c
mov r8d, r15d
mov edx, 0x84
mov rcx, rax
call fcn.1402cb2a0
mov r9, qword [rbp - 0x80]
mov eax, dword [r9 + 0x28]
mov dword [rsi + 0x808], eax
lea r8, [rbp - 0x60]
xor edx, edx
mov rcx, rsi
call fcn.1402b4bec
mov r12b, r14b
mov rdi, qword [rbp - 0x38]
test rdi, rdi
je 0x1402b5844
mov eax, r15d
lock xadd dword [rdi + 8], eax
add eax, r15d
jne 0x1402b5844
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, r15d
lock xadd dword [rdi + 0xc], eax
add eax, r15d
jne 0x1402b5844
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
nop
test rbx, rbx
je 0x1402b5876
mov eax, r15d
lock xadd dword [rbx + 8], eax
add eax, r15d
jne 0x1402b5876
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, r15d
lock xadd dword [rbx + 0xc], eax
add eax, r15d
jne 0x1402b5876
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
nop
mov rdx, qword [rbp + 0x80]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x1402b589a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rbx, qword [rbp - 0x60]
test rbx, rbx
je 0x1402b58c9
mov rdi, qword [rbp - 0x58]
cmp rbx, rdi
je 0x1402b58c1
mov rcx, rbx
call fcn.140058134
add rbx, 0x10
cmp rbx, rdi
jne 0x1402b58ac
mov rbx, qword [rbp - 0x60]
mov rcx, rbx
call fcn.1400be0f4
lea rdx, [0x140330de8]
lea rcx, [rsp + 0x70]
call fcn.14000cb18
nop
lea rcx, [rsi + 0x120]
mov rax, qword [rcx]
lea rdx, [rsp + 0x70]
call qword [rax + 0x30]
nop
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x1402b590f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test r12b, r12b
je 0x1402b5925
lea rcx, [rsi + 0xb8]
mov rax, qword [rcx]
call qword [rax + 0xb0]
nop
mov rbx, qword [rbp - 0x78]
test rbx, rbx
je 0x1402b5998
mov eax, r15d
lock xadd dword [rbx + 8], eax
add eax, r15d
jne 0x1402b5998
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, r15d
lock xadd dword [rbx + 0xc], eax
add eax, r15d
jne 0x1402b5998
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
jmp 0x1402b5998
call fcn.140016b3c
mov r8d, r15d
mov edx, 0x84
mov rcx, rax
call fcn.1402cb2a0
mov r11b, byte [rsi + 0x73c]
test r11b, r11b
je 0x1402b5986
mov byte [rsi + 0x73d], 1
jmp 0x1402b5998
mov byte [rsi + 0x73d], r14b
mov dl, r12b
mov rcx, rsi
call fcn.1402b50fc
mov eax, 1
add rsp, 0x128
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret