Function at 0x14000d31c
Capabilities:
Set current directory

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x10], edx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x13b0]
mov eax, 0x14b0
call fcn.1401d9480
sub rsp, rax
mov rax, qword [0x1402feed0]
xor rax, rsp
mov qword [rbp + 0x13a0], rax
mov rdi, qword [0x140307e10]
lea rcx, [rsp + 0x60]
xor r13d, r13d
mov r14, r8
mov edx, 0x400
mov esi, r13d
lea r9d, [r13 + 1]
lea r8d, [r13 + 8]
call fcn.14009f048
mov rbx, rax
cmp qword [rax - 0x10], r13
jbe 0x14000d390
lea rcx, [rax + 0x18]
add rcx, qword [rax - 0x18]
jmp 0x14000d393
mov rcx, r13
mov qword [rcx], rdi
mov rax, qword [rdi + 0x80]
test rax, rax
je 0x14000d3ab
mov ecx, 2
call rax
jmp 0x14000d3b1
call qword [sym.imp.USER32.dll_SetProcessDPIAware]
cmp dword [rbp + 0x13f8], 1
jne 0x14000d3cd
mov rcx, qword [r14]
lea rdx, str.__slave
call fcn.1401ed8b0
test eax, eax
je 0x14000d3ea
cmp dword [rbp + 0x13f8], 2
jne 0x14000d438
mov rcx, qword [r14 + 8]
lea rdx, str.__slave
call fcn.1401ed8b0
test eax, eax
jne 0x14000d3f7
mov rcx, rdi
call fcn.1400092e0
jmp 0x14000d9f5
mov rcx, qword [r14 + 8]
lea rdx, str.__netinfo
call fcn.1401ed8b0
test eax, eax
jne 0x14000d438
lea rcx, [rsp + 0x40]
call fcn.1400127b0
test eax, eax
jle 0x14000d9f5
mov rdx, qword [rsp + 0x40]
lea rcx, str._s_r_n
call fcn.1400010e4
mov rcx, qword [rsp + 0x40]
jmp 0x14000d9f0
or r12, 0xffffffffffffffff
cmp qword [rdi + 0x38], r13
jne 0x14000d48b
mov qword [rdi + 0x38], rbx
lea rdx, [rbp + 0x3a0]
mov r8d, 0x800
mov byte [rbx], r13b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [rbx - 0x18]
lea r8, [rbp + 0x3a0]
mov qword [rsp + 0x38], r13
mov r9d, r12d
mov qword [rsp + 0x30], r13
xor edx, edx
mov dword [rsp + 0x28], eax
mov ecx, 0xfde9
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rcx, qword [rdi + 0x38]
lea rdx, [rdi + 0xc10]
call fcn.140004644
mov r15d, 1
cmp dword [rbp + 0x13f8], r15d
jle 0x14000d55f
lea rbx, [r14 + 8]
mov rcx, qword [rbx]
test rcx, rcx
jne 0x14000d4bf
mov rax, r13
jmp 0x14000d4c9
mov edx, 0x1000
call fcn.1401e26ac
mov rcx, qword [rbx]
lea r8, [0x140267d14]
movsxd rdx, eax
mov r9d, 1
call fcn.1400a7c58
mov r12d, eax
cmp eax, 2
jle 0x14000d53f
mov rcx, qword [rbx]
lea rdx, [0x140267f54]
mov r8d, 2
call fcn.1401e0c90
test eax, eax
jne 0x14000d53f
cmp r12d, 0xf
jne 0x14000d53f
mov rcx, qword [rbx]
lea r8d, [rax + 0xd]
add rcx, 2
lea rdx, str.configUsesCWD
call fcn.1401e0c90
test eax, eax
jne 0x14000d53f
mov rcx, qword [rbx]
lea r8d, [r12 - 0xe]
add rcx, 0x10
lea rdx, [0x140266d48]
call fcn.1401e0c90
test eax, eax
je 0x14000d554
inc r15d
add rbx, 8
cmp r15d, dword [rbp + 0x13f8]
jge 0x14000d55b
jmp 0x14000d4b2
mov dword [rdi + 0x50], 1
or r12, 0xffffffffffffffff
mov rcx, qword [rdi + 0x38]
lea rdx, str..log
call fcn.1400039c4
mov rcx, rax
xor edx, edx
call fcn.1400a7f50
mov qword [0x140307db0], rax
call fcn.14009d398
mov rcx, qword [rdi]
lea rdx, [0x14000944c]
mov r8, rdi
call fcn.14009f47c
mov rcx, qword [r14]
lea r8, [0x140265c34]
mov rdx, r12
call fcn.1400a7cd0
test eax, eax
jle 0x14000d60c
mov r8, qword [r14]
lea rcx, [0x14030d380]
movsxd rbx, eax
mov r15d, 0x10000
mov r9, rbx
mov edx, r15d
call fcn.1401e04dc
cmp rbx, r15
jae 0x14000da21
lea r8, [0x14030d380]
mov dword [rsp + 0x28], 0x1000
mov byte [rbx + r8], r13b
mov r9d, r12d
lea rbx, [0x140309380]
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea rax, [rbp + 0x13f8]
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], r14
cmp qword [rdi + 0x20], r13
jne 0x14000d99e
cmp dword [rbp + 0x13f8], 2
jl 0x14000d68e
mov rcx, qword [r14 + 8]
lea r8, [0x1402689ac]
mov r9d, 3
mov dword [rsp + 0x20], 1
mov rdx, r12
call fcn.1400a7b94
test eax, eax
jne 0x14000d99e
cmp dword [rbp + 0x13f8], 2
jl 0x14000d68e
mov rcx, qword [r14 + 8]
lea r9d, [rax + 4]
lea r8, str..zip
mov dword [rsp + 0x20], 1
mov rdx, r12
call fcn.1400a7b94
test eax, eax
jne 0x14000d99e
mov rcx, qword [rdi]
lea r9, [rsp + 0x48]
xor r8d, r8d
lea rdx, [0x14000d2e0]
call fcn.14009f9c0
mov rcx, qword [rdi]
call fcn.1400a317c
mov qword [rdi], r13
cmp qword [rdi + 0x48], r13
je 0x14000d9cd
cmp dword [rdi + 0xbe0], r13d
je 0x14000d98f
cmp dword [rdi + 0xdc0], r13d
jne 0x14000d86f
call fcn.14009105c
mov rbx, qword [rdi + 0x48]
mov rcx, rax
mov r14, rax
call fcn.14001f2a8
mov r8, r14
lea rdx, [0x140097a8c]
mov rcx, rbx
call fcn.1400acb44
mov edx, r12d
mov rcx, r14
call fcn.14001d9b8
test rax, rax
je 0x14000d851
mov edx, r12d
mov rcx, r14
call fcn.14001b8d8
lea r8, [rsp + 0x40]
mov edx, r12d
mov rcx, r14
call fcn.14001d550
mov rbx, qword [rsp + 0x40]
mov r12, rax
movabs rax, 0xaaaaaaaaaaaaaaab
lea rcx, [rbx*4 + 4]
mul rcx
mov ecx, 0xfffffffa
lea r15, [rbx + 1]
mov rsi, rdx
shr rsi, 1
sub rcx, rsi
cmp r15, rcx
jae 0x14000d7ad
mov eax, 0xfffffffe
lea rdx, [rsi + 5]
sub rax, rbx
cmp rdx, rax
jae 0x14000d7ad
lea rax, [rbx + 6]
mov ecx, 0xffffffe7
add rax, rsi
cmp rax, rcx
jae 0x14000d7ad
test rdx, rdx
je 0x14000d790
lea rax, [rbx + 0x1e]
add rax, rsi
cmp rax, rcx
jae 0x14000d7ad
cmp r13, rdx
lea rcx, [rbx + 0x1e]
sbb rax, rax
and eax, 0x18
add rax, rsi
add rcx, rax
call fcn.1401e2d40
mov rcx, rax
jmp 0x14000d7b0
mov rcx, r13
lea eax, [rsi + 5]
xor r9d, r9d
movsxd r8, eax
lea eax, [rbx + 1]
movsxd rdx, eax
call fcn.14009f048
mov rsi, rax
cmp qword [rax - 0x10], r13
jbe 0x14000d7dc
lea rdx, [rax + 0x18]
add rdx, qword [rax - 0x18]
mov qword [rsp + 0x40], rdx
jmp 0x14000d7e1
mov qword [rsp + 0x40], r13
mov r9, rbx
mov r8, r12
mov rdx, r15
mov rcx, rsi
call section..text
mov rcx, r14
call fcn.14006b0e8
mov rcx, rsi
cmp rbx, 0x7fffffff
jbe 0x14000d824
call fcn.14009f130
mov rsi, r13
cmp dword [rdi + 0xbec], r13d
je 0x14000d98f
lea rcx, str._Service_Parameters___ERROR
jmp 0x14000d865
lea r8, [rsp + 0x40]
mov edx, ebx
call fcn.1400a60e0
cmp dword [rdi + 0xbec], r13d
je 0x14000d98f
mov rdx, rsi
lea rcx, str._Service_Parameters____s
call fcn.1400a8cb4
jmp 0x14000d98f
cmp dword [rdi + 0xbec], r13d
je 0x14000d98f
lea rcx, str._Service_Parameters___NONE
call fcn.1400a8cb4
jmp 0x14000d98f
mov rbx, qword [rdi + 0xdd8]
lea rdx, str.meshagent
mov rcx, rbx
call fcn.1401ed8b0
test eax, eax
je 0x14000d98f
mov r8, qword [rbx - 0x18]
movabs rsi, 0xaaaaaaaaaaaaaaab
mov rax, rsi
lea rcx, [r8*4 + 0x78]
mul rcx
mov ecx, 0xfffffffa
lea rax, [r8 + 0x1e]
shr rdx, 1
sub rcx, rdx
cmp rax, rcx
jae 0x14000d90e
mov eax, 0xffffffe1
lea r9, [rdx + 5]
sub rax, r8
cmp r9, rax
jae 0x14000d90e
lea rax, [r8 + 0x23]
mov ecx, 0xffffffe7
add rax, rdx
cmp rax, rcx
jae 0x14000d90e
test r9, r9
je 0x14000d8f0
lea rax, [r8 + 0x3b]
add rax, rdx
cmp rax, rcx
jae 0x14000d90e
mov ecx, 0x3b
test r9, r9
lea eax, [rcx + 0x18]
cmovne ecx, eax
add rcx, r8
add rcx, rdx
call fcn.1401e2d40
mov r10, rax
jmp 0x14000d911
mov r10, r13
mov r9, qword [rdi + 0xdd8]
mov rax, qword [r9 - 0x18]
lea rcx, [rax*4 + 0x78]
mov rax, rsi
mul rcx
mov eax, dword [r9 - 0x18]
mov rcx, r10
shr rdx, 1
add eax, 0x1e
add rdx, 5
xor r9d, r9d
movsxd r8, edx
movsxd rdx, eax
call fcn.14009f048
mov rsi, rax
cmp qword [rax - 0x10], r13
jbe 0x14000d961
lea rcx, [rax + 0x18]
add rcx, qword [rax - 0x18]
mov qword [rsp + 0x40], rcx
jmp 0x14000d966
mov qword [rsp + 0x40], r13
mov r9, qword [rdi + 0xdd8]
lea r8, str.____meshServiceName__s___
mov rdx, qword [rax - 0x18]
mov rcx, rsi
call fcn.140001138
mov edx, eax
lea r8, [rsp + 0x40]
mov rcx, rsi
call fcn.1400a60e0
mov rcx, qword [rdi + 0x48]
call fcn.1400ad6c0
mov qword [rdi + 0x48], r13
jmp 0x14000d9c0
mov rcx, qword [rdi]
lea r9, [rsp + 0x48]
xor r8d, r8d
lea rdx, [0x14000d2cc]
call fcn.14009f9c0
mov rcx, qword [rdi]
call fcn.1400a317c
mov qword [rdi], r13
test rsi, rsi
je 0x14000d9cd
mov rcx, rsi
call fcn.14009f130
mov eax, dword [0x140307da4]
dec eax
mov dword [0x140307da4], eax
test eax, eax
jg 0x14000d9e4
call fcn.1400e5760
mov rcx, qword [0x140307db0]
test rcx, rcx
je 0x14000d9f5
call fcn.1401e18f8
xor eax, eax
mov rcx, qword [rbp + 0x13a0]
xor rcx, rsp
call fcn.1401d8f10
mov rbx, qword [rsp + 0x14f0]
add rsp, 0x14b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1401d903c
int3