Function at 0x1400012b0
Capabilities:
Check if file exists
Set current directory

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x138]
sub rsp, 0x210
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140238ea0]
xor rax, rsp
mov qword [rbp + 0x108], rax
mov rdi, rdx
mov r15d, 0x81
cmp ecx, 3
jne 0x140001b3c
mov rdx, qword [rdx + 8]
mov qword [rbp + 0x80], 7
xor r12d, r12d
mov qword [rbp + 0x78], r12
mov word [rbp + 0x68], r12w
or r13, 0xffffffffffffffff
cmp word [rdx], r12w
jne 0x14000132c
mov r8d, r12d
jmp 0x14000133a
mov r8, r13
nop
inc r8
cmp word [rdx + r8*2], r12w
jne 0x140001330
lea rcx, [rbp + 0x68]
call fcn.140002040
nop
mov qword [rbp - 0x80], 7
mov qword [rsp + 0x78], r12
mov word [rsp + 0x68], r12w
xor r8d, r8d
lea rdx, [0x1401f9c80]
lea rcx, [rsp + 0x68]
call fcn.140002040
nop
mov qword [rbp - 0x60], 7
mov qword [rbp - 0x68], r12
mov word [rbp - 0x78], r12w
xor r8d, r8d
lea rdx, [0x1401f9c80]
lea rcx, [rbp - 0x78]
call fcn.140002040
nop
mov r14d, 1
mov r9d, r14d
lea rcx, [rbp + 0x68]
call fcn.140001df0
mov rbx, rax
mov rsi, qword [rbp + 0x78]
cmp rax, 0xffffffffffffffff
je 0x14000142a
mov r9, rax
xor r8d, r8d
lea rdx, [rsp + 0x48]
lea rcx, [rbp + 0x68]
call fcn.140001cc0
lea rcx, [rsp + 0x68]
cmp rcx, rax
je 0x1400013db
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.140001c00
cmp qword [rsp + 0x60], 8
jb 0x1400013ed
mov rcx, qword [rsp + 0x48]
call fcn.140004dd8
lea r9, [rsi - 1]
lea r8, [rbx + 1]
lea rdx, [rsp + 0x48]
lea rcx, [rbp + 0x68]
call fcn.140001cc0
lea rcx, [rbp - 0x78]
cmp rcx, rax
je 0x140001418
mov rdx, rax
lea rcx, [rbp - 0x78]
call fcn.140001c00
cmp qword [rsp + 0x60], 8
jb 0x14000142a
mov rcx, qword [rsp + 0x48]
call fcn.140004dd8
mov rdx, qword [rdi + 0x10]
mov qword [rbp + 0x20], 7
mov qword [rbp + 0x18], r12
mov word [rbp + 8], r12w
cmp word [rdx], 0
jne 0x14000144a
mov r8, r12
jmp 0x14000145b
mov r8, r13
nop dword [rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140001450
lea rcx, [rbp + 8]
call fcn.140002040
nop
mov qword [rbp - 0x20], 7
mov qword [rbp - 0x28], r12
mov word [rbp - 0x38], r12w
xor r8d, r8d
lea rdx, [0x1401f9c80]
lea rcx, [rbp - 0x38]
call fcn.140002040
nop
mov qword [rbp - 0x40], 7
mov qword [rbp - 0x48], r12
mov word [rbp - 0x58], r12w
xor r8d, r8d
lea rdx, [0x1401f9c80]
lea rcx, [rbp - 0x58]
call fcn.140002040
nop
mov r9, r14
lea rcx, [rbp + 8]
call fcn.140001df0
mov rbx, rax
mov rdi, qword [rbp + 0x18]
cmp rax, 0xffffffffffffffff
je 0x140001540
mov r9, rax
xor r8d, r8d
lea rdx, [rsp + 0x48]
lea rcx, [rbp + 8]
call fcn.140001cc0
lea rcx, [rbp - 0x38]
cmp rcx, rax
je 0x1400014f1
mov rdx, rax
lea rcx, [rbp - 0x38]
call fcn.140001c00
cmp qword [rsp + 0x60], 8
jb 0x140001503
mov rcx, qword [rsp + 0x48]
call fcn.140004dd8
lea r9, [rdi - 1]
lea r8, [rbx + 1]
lea rdx, [rsp + 0x48]
lea rcx, [rbp + 8]
call fcn.140001cc0
lea rcx, [rbp - 0x58]
cmp rcx, rax
je 0x14000152e
mov rdx, rax
lea rcx, [rbp - 0x58]
call fcn.140001c00
cmp qword [rsp + 0x60], 8
jb 0x140001540
mov rcx, qword [rsp + 0x48]
call fcn.140004dd8
lea rdx, [rbp - 0x58]
cmp qword [rbp - 0x40], 8
cmovae rdx, qword [rbp - 0x58]
lea rcx, [rbp - 0x38]
cmp qword [rbp - 0x20], 8
cmovae rcx, qword [rbp - 0x38]
lea rax, [rbp - 0x78]
cmp qword [rbp - 0x60], 8
cmovae rax, qword [rbp - 0x78]
lea r9, [rsp + 0x68]
cmp qword [rbp - 0x80], 8
cmovae r9, qword [rsp + 0x68]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r8, str._info_
lea rdx, [0x1401f9cf0]
lea rcx, str._s:__s:_Arguments_dll_s_func_s_adbecode_s_lang_s
call fcn.140002e70
lea rdx, [rbp - 0x58]
lea rcx, [rbp + 0xe8]
call fcn.140002820
mov rsi, rax
lea rdx, [rbp - 0x38]
lea rcx, [rsp + 0x48]
call fcn.140002820
mov rbx, rax
lea rdx, [rbp - 0x78]
lea rcx, [rbp + 0xc8]
call fcn.140002820
mov rdi, rax
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x18]
call fcn.140002820
cmp qword [rsi + 0x18], 0x10
jb 0x1400015f2
mov rsi, qword [rsi]
cmp qword [rbx + 0x18], 0x10
jb 0x1400015fc
mov rbx, qword [rbx]
cmp qword [rdi + 0x18], 0x10
jb 0x140001606
mov rdi, qword [rdi]
cmp qword [rax + 0x18], 0x10
jb 0x140001610
mov rax, qword [rax]
mov qword [rsp + 0x20], rsi
mov r9, rbx
mov r8, rdi
mov rdx, rax
lea rcx, str._nArguments_dll_s_func_s_adbecode_s_lang_s_n
call fcn.140170b50
cmp qword [rbp], 0x10
jb 0x14000163a
mov rcx, qword [rbp - 0x18]
call fcn.140004dd8
mov qword [rbp], 0xf
mov qword [rbp - 8], r12
mov byte [rbp - 0x18], 0
cmp qword [rbp + 0xe0], 0x10
jb 0x140001660
mov rcx, qword [rbp + 0xc8]
call fcn.140004dd8
mov qword [rbp + 0xe0], 0xf
mov qword [rbp + 0xd8], r12
mov byte [rbp + 0xc8], 0
cmp qword [rsp + 0x60], 0x10
jb 0x14000168b
mov rcx, qword [rsp + 0x48]
call fcn.140004dd8
mov qword [rsp + 0x60], 0xf
mov qword [rsp + 0x58], r12
mov byte [rsp + 0x48], 0
cmp qword [rbp + 0x100], 0x10
jb 0x1400016b4
mov rcx, qword [rbp + 0xe8]
call fcn.140004dd8
lea rdx, [rbp - 0x38]
lea rcx, [rbp + 0x28]
call fcn.140002820
nop
lea rdx, [rbp - 0x58]
lea rcx, [rbp + 0x48]
call fcn.140002820
nop
lea rdx, [rsp + 0x68]
cmp qword [rbp - 0x80], 8
cmovae rdx, qword [rsp + 0x68]
mov qword [rbp], 7
mov qword [rbp - 8], r12
mov word [rbp - 0x18], r12w
cmp word [rdx], 0
jne 0x1400016fc
mov r8, r12
jmp 0x14000170b
mov r8, r13
nop
inc r8
cmp word [rdx + r8*2], 0
jne 0x140001700
lea rcx, [rbp - 0x18]
call fcn.140002040
nop
lea rdx, [rbp - 0x18]
lea rcx, [rbp + 0xa8]
call fcn.140004340
nop
cmp qword [rbp], 8
jb 0x140001736
mov rcx, qword [rbp - 0x18]
call fcn.140004dd8
mov qword [rbp], 7
mov qword [rbp - 8], r12
mov word [rbp - 0x18], r12w
lea rdx, [rsp + 0x48]
lea rcx, [rbp + 0xa8]
call fcn.140004730
mov rbx, rax
lea rcx, [rbp + 0x88]
call fcn.140004bf0
nop
cmp qword [rbx + 0x18], 8
jb 0x140001774
mov rcx, qword [rbx]
jmp 0x140001777
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete al
test al, al
jne 0x1400017a6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x1400017a6
cmp qword [rbx + 0x18], 8
jb 0x14000179e
mov rcx, qword [rbx]
jmp 0x1400017a1
mov rcx, rbx
call fcn.1400041f0
cmp qword [rbx + 0x18], 8
jb 0x1400017b0
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
nop
cmp qword [rsp + 0x60], 8
jb 0x1400017cc
mov rcx, qword [rsp + 0x48]
call fcn.140004dd8
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], r12
mov word [rsp + 0x48], r12w
lea rdx, [rbp + 0xe8]
lea rcx, [rbp + 0xa8]
call fcn.140004730
cmp qword [rax + 0x18], 8
jb 0x1400017fd
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp qword [rbp + 0x100], 8
jb 0x14000181c
mov rcx, qword [rbp + 0xe8]
call fcn.140004dd8
lea rcx, [rsp + 0x68]
cmp qword [rbp - 0x80], 8
cmovae rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x140001994
lea rcx, str.Loaded__
call fcn.140170b50
lea rcx, [rbp - 0x78]
mov r10, qword [rbp - 0x78]
mov r11, qword [rbp - 0x60]
cmp r11, 8
cmovae rcx, r10
mov r8d, 0x22
mov r9, qword [rbp - 0x68]
cmp r9, r8
cmovb r8, r9
test r8, r8
je 0x1400018a3
lea rdx, [0x1401f9d70]
nop dword [rax + rax]
movzx eax, word [rdx]
cmp word [rcx], ax
jne 0x140001897
add rcx, 2
add rdx, 2
dec r8
jne 0x140001880
jmp 0x1400018a3
mov r8d, r14d
cmp word [rcx], ax
cmovb r8d, r13d
jmp 0x1400018a6
mov r8d, r12d
movsxd rax, r8d
test r8d, r8d
jne 0x1400018c3
cmp r9, 0x22
jae 0x1400018b9
mov eax, r13d
jmp 0x1400018c3
mov eax, r12d
cmp r9, 0x22
setne al
test eax, eax
sete al
test al, al
je 0x1400018d5
lea rdx, str.ALM_Installer_InstallAnchorService
jmp 0x14000194d
lea rcx, [rbp - 0x78]
cmp r11, 8
cmovae rcx, r10
mov r8d, 0x24
cmp r9, r8
cmovb r8, r9
test r8, r8
je 0x14000191d
lea rdx, str.ALM_Installer_UnInstallAnchorService
nop word [rax + rax]
movzx eax, word [rdx]
cmp word [rcx], ax
jne 0x140001917
add rcx, 2
add rdx, 2
dec r8
jne 0x140001900
jmp 0x14000191d
cmovb r14d, r13d
jmp 0x140001920
mov r14d, r12d
movsxd rax, r14d
test r14d, r14d
jne 0x14000193d
cmp r9, 0x24
jae 0x140001933
mov eax, r13d
jmp 0x14000193d
mov eax, r12d
cmp r9, 0x24
setne al
test eax, eax
sete al
test al, al
je 0x14000198b
lea rdx, str.ALM_Installer_UninstallAnchorService
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000197f
lea rdx, [rbp + 0x48]
cmp qword [rbp + 0x60], 0x10
cmovae rdx, qword [rbp + 0x48]
lea rcx, [rbp + 0x28]
cmp qword [rbp + 0x40], 0x10
cmovae rcx, qword [rbp + 0x28]
call rax
movzx r15d, ax
jmp 0x14000198b
lea rcx, str.Failed_to_Load_the_funct__
call fcn.140170b50
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
movzx ebx, r15w
mov r9d, ebx
lea r8, str._info_
lea rdx, [0x1401f9cf0]
lea rcx, str._s:__s:_ALM_Error_Code_d
call fcn.140002e70
mov edx, ebx
lea rcx, str._nALM_Error_Code_d_n
call fcn.140170b50
nop
lea rcx, [rbp + 0x88]
cmp qword [rbp + 0xa0], 8
cmovae rcx, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp qword [rbp + 0xa0], 8
jb 0x1400019f7
mov rcx, qword [rbp + 0x88]
call fcn.140004dd8
mov qword [rbp + 0xa0], 7
mov qword [rbp + 0x98], r12
mov word [rbp + 0x88], r12w
cmp qword [rbp + 0xc0], 8
jb 0x140001a27
mov rcx, qword [rbp + 0xa8]
call fcn.140004dd8
mov qword [rbp + 0xc0], 7
mov qword [rbp + 0xb8], r12
mov word [rbp + 0xa8], r12w
cmp qword [rbp + 0x60], 0x10
jb 0x140001a51
mov rcx, qword [rbp + 0x48]
call fcn.140004dd8
mov qword [rbp + 0x60], 0xf
mov qword [rbp + 0x58], r12
mov byte [rbp + 0x48], 0
cmp qword [rbp + 0x40], 0x10
jb 0x140001a71
mov rcx, qword [rbp + 0x28]
call fcn.140004dd8
mov qword [rbp + 0x40], 0xf
mov qword [rbp + 0x38], r12
mov byte [rbp + 0x28], 0
cmp qword [rbp - 0x40], 8
jb 0x140001a91
mov rcx, qword [rbp - 0x58]
call fcn.140004dd8
mov qword [rbp - 0x40], 7
mov qword [rbp - 0x48], r12
mov word [rbp - 0x58], r12w
cmp qword [rbp - 0x20], 8
jb 0x140001ab2
mov rcx, qword [rbp - 0x38]
call fcn.140004dd8
mov qword [rbp - 0x20], 7
mov qword [rbp - 0x28], r12
mov word [rbp - 0x38], r12w
cmp qword [rbp + 0x20], 8
jb 0x140001ad3
mov rcx, qword [rbp + 8]
call fcn.140004dd8
mov qword [rbp + 0x20], 7
mov qword [rbp + 0x18], r12
mov word [rbp + 8], r12w
cmp qword [rbp - 0x60], 8
jb 0x140001af4
mov rcx, qword [rbp - 0x78]
call fcn.140004dd8
mov qword [rbp - 0x60], 7
mov qword [rbp - 0x68], r12
mov word [rbp - 0x78], r12w
cmp qword [rbp - 0x80], 8
jb 0x140001b16
mov rcx, qword [rsp + 0x68]
call fcn.140004dd8
mov qword [rbp - 0x80], 7
mov qword [rsp + 0x78], r12
mov word [rsp + 0x68], r12w
cmp qword [rbp + 0x80], 8
jb 0x140001b3c
mov rcx, qword [rbp + 0x68]
call fcn.140004dd8
movzx eax, r15w
mov rcx, qword [rbp + 0x108]
xor rcx, rsp
call fcn.140170410
lea r11, [rsp + 0x210]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret