Function at 0x140013300
Capabilities:
Set current directory

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
mov eax, 0x1578
call fcn.14026deb0
sub rsp, rax
mov rax, qword [0x140325ed8]
xor rax, rsp
mov qword [rsp + 0x1560], rax
mov qword [rsp + 0x48], 0
mov r9d, 1
mov r8d, 8
mov edx, 0x400
lea rcx, [rsp + 0x120]
call fcn.140113960
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
cmp qword [rax - 0x10], 0
jbe 0x14001337f
mov rax, qword [rsp + 0x60]
mov rax, qword [rax - 0x18]
mov rcx, qword [rsp + 0x60]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x78], rax
jmp 0x140013388
mov qword [rsp + 0x78], 0
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x1580]
mov qword [rcx + rax], rdx
mov rax, qword [rsp + 0x1580]
cmp qword [rax + 0x80], 0
je 0x1400133c9
mov ecx, 2
mov rax, qword [rsp + 0x1580]
call qword [rax + 0x80]
jmp 0x1400133cf
call qword [sym.imp.USER32.dll_SetProcessDPIAware]
cmp dword [rsp + 0x1588], 1
jne 0x140013414
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x1590]
mov rax, qword [rcx + rax]
lea rcx, [0x14032cb80]
sub rcx, rax
movzx edx, byte [rax]
cmp dl, byte [rax + rcx]
jne 0x14001340b
inc rax
test dl, dl
jne 0x1400133f8
xor eax, eax
jmp 0x140013410
sbb eax, eax
or eax, 1
test eax, eax
je 0x140013459
cmp dword [rsp + 0x1588], 2
jne 0x14001346d
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0x1590]
mov rax, qword [rcx + rax]
lea rcx, [0x14032cb78]
sub rcx, rax
movzx edx, byte [rax]
cmp dl, byte [rax + rcx]
jne 0x140013450
inc rax
test dl, dl
jne 0x14001343d
xor eax, eax
jmp 0x140013455
sbb eax, eax
or eax, 1
test eax, eax
jne 0x14001346d
mov rcx, qword [rsp + 0x1580]
call fcn.14000d290
xor eax, eax
jmp 0x140013fac
cmp dword [rsp + 0x1588], 2
jne 0x1400134f2
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0x1590]
mov rax, qword [rcx + rax]
lea rcx, str.__netinfo
sub rcx, rax
movzx edx, byte [rax]
cmp dl, byte [rax + rcx]
jne 0x1400134a9
inc rax
test dl, dl
jne 0x140013496
xor eax, eax
jmp 0x1400134ae
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1400134f2
lea rcx, [rsp + 0x80]
call fcn.14001bd90
mov dword [rsp + 0x70], eax
cmp dword [rsp + 0x70], 0
jle 0x1400134eb
mov rdx, qword [rsp + 0x80]
lea rcx, str._s_r_n
call fcn.1400012d0
mov rcx, qword [rsp + 0x80]
call fcn.14027a7c0
xor eax, eax
jmp 0x140013fac
mov rax, qword [rsp + 0x1580]
cmp qword [rax + 0x38], 0
jne 0x14001357d
mov rax, qword [rsp + 0x1580]
mov rcx, qword [rsp + 0x60]
mov qword [rax + 0x38], rcx
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x60]
mov byte [rcx + rax], 0
mov r8d, 0x800
lea rdx, [rsp + 0x560]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x60]
mov eax, dword [rax - 0x18]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
lea r8, [rsp + 0x560]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rax, qword [rsp + 0x1580]
add rax, 0xc10
mov rdx, rax
mov rax, qword [rsp + 0x1580]
mov rcx, qword [rax + 0x38]
call fcn.140006430
mov dword [rsp + 0x50], 1
jmp 0x1400135b3
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x1588]
cmp dword [rsp + 0x50], eax
jge 0x1400136c1
movsxd rax, dword [rsp + 0x50]
mov edx, 0x1000
mov rcx, qword [rsp + 0x1590]
mov rcx, qword [rcx + rax*8]
call fcn.140001160
cdqe
movsxd rcx, dword [rsp + 0x50]
mov r9d, 1
lea r8, [0x14032cb5c]
mov rdx, rax
mov rax, qword [rsp + 0x1590]
mov rcx, qword [rax + rcx*8]
call fcn.1401237f0
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 2
jle 0x1400136bc
movsxd rax, dword [rsp + 0x50]
mov r8d, 2
lea rdx, [0x14032cb58]
mov rcx, qword [rsp + 0x1590]
mov rcx, qword [rcx + rax*8]
call fcn.140279b30
test eax, eax
jne 0x1400136bc
mov eax, dword [rsp + 0x54]
sub eax, 2
cmp eax, 0xd
jne 0x1400136bc
movsxd rax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x1590]
mov rax, qword [rcx + rax*8]
add rax, 2
mov r8d, reloc.WS2_32.dll_listen
lea rdx, str.configUsesCWD
mov rcx, rax
call fcn.140279b30
test eax, eax
jne 0x1400136bc
movsxd rax, dword [rsp + 0x50]
movsxd rcx, dword [rsp + 0x54]
mov rdx, qword [rsp + 0x1590]
mov rax, qword [rdx + rax*8]
lea rax, [rax + rcx + 1]
mov r8d, 1
lea rdx, [0x14032cb14]
mov rcx, rax
call fcn.140279b30
test eax, eax
jne 0x1400136bc
mov rax, qword [rsp + 0x1580]
mov dword [rax + 0x50], 1
jmp 0x1400136c1
jmp 0x1400135a9
xor r8d, r8d
lea rdx, str..log
mov rax, qword [rsp + 0x1580]
mov rcx, qword [rax + 0x38]
call fcn.140004e00
xor edx, edx
mov rcx, rax
call fcn.140123d20
mov qword [0x1403b96a8], rax
call fcn.140110610
mov r8, qword [rsp + 0x1580]
lea rdx, [0x14000d2d0]
mov rax, qword [rsp + 0x1580]
mov rcx, qword [rax]
call fcn.140114220
mov eax, 8
imul rax, rax, 0
mov r9d, 1
lea r8, [0x14032caf4]
mov rdx, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1590]
mov rcx, qword [rcx + rax]
call fcn.140123990
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
jle 0x1400137d1
movsxd rax, dword [rsp + 0x58]
mov ecx, 8
imul rcx, rcx, 0
mov r9, rax
mov rax, qword [rsp + 0x1590]
mov r8, qword [rax + rcx]
mov edx, 0x10000
lea rcx, [0x1403becc0]
call fcn.14027940c
movsxd rax, dword [rsp + 0x58]
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0x88], 0x10000
jae 0x140013799
jmp 0x14001379e
call fcn.14026da68
lea rax, [0x1403becc0]
mov rcx, qword [rsp + 0x88]
mov byte [rax + rcx], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0xffffffff
lea rcx, [0x1403becc0]
call fcn.140112d50
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov rax, qword [rsp + 0x1580]
mov qword [rsp + 0x100], rax
lea rax, [rsp + 0x1588]
mov qword [rsp + 0x108], rax
mov rax, qword [rsp + 0x1590]
mov qword [rsp + 0x110], rax
mov rax, qword [rsp + 0x1580]
cmp qword [rax + 0x20], 0
jne 0x140013888
cmp dword [rsp + 0x1588], 2
jl 0x14001384c
mov eax, 8
imul rax, rax, 1
mov r9d, 3
lea r8, [0x14032cad4]
mov rdx, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1590]
mov rcx, qword [rcx + rax]
call fcn.1401235e0
test eax, eax
jne 0x140013888
cmp dword [rsp + 0x1588], 2
jl 0x1400138ce
mov eax, 8
imul rax, rax, 1
mov r9d, 4
lea r8, [0x14032cb38]
mov rdx, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1590]
mov rcx, qword [rcx + rax]
call fcn.1401235e0
test eax, eax
je 0x1400138ce
lea r9, [rsp + 0x100]
xor r8d, r8d
lea rdx, [0x140013200]
mov rax, qword [rsp + 0x1580]
mov rcx, qword [rax]
call fcn.1401148d0
mov rax, qword [rsp + 0x1580]
mov rcx, qword [rax]
call fcn.14011ab50
mov rax, qword [rsp + 0x1580]
mov qword [rax], 0
jmp 0x140013f7d
lea r9, [rsp + 0x100]
xor r8d, r8d
lea rdx, [0x140013270]
mov rax, qword [rsp + 0x1580]
mov rcx, qword [rax]
call fcn.1401148d0
mov rax, qword [rsp + 0x1580]
mov rcx, qword [rax]
call fcn.14011ab50
mov rax, qword [rsp + 0x1580]
mov qword [rax], 0
mov rax, qword [rsp + 0x1580]
cmp qword [rax + 0x48], 0
je 0x140013f7d
mov rax, qword [rsp + 0x1580]
cmp dword [rax + 0xbe0], 0
je 0x140013f5c
mov rax, qword [rsp + 0x1580]
cmp dword [rax + 0xdc0], 0
jne 0x140013c36
call fcn.1400fcc30
mov qword [rsp + 0x68], rax
mov qword [rsp + 0xa8], 0
mov rax, qword [rsp + 0x1580]
mov rdx, qword [rax + 0x48]
mov rcx, qword [rsp + 0x68]
call fcn.1401060f0
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x68]
call fcn.140036d50
test rax, rax
jbe 0x140013c14
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x68]
call fcn.1400307b0
lea r8, [rsp + 0x40]
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x68]
call fcn.1400359f0
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0x40]
inc rax
mov qword [rsp + 0xc8], rax
mov rcx, qword [rsp + 0x40]
inc rcx
call fcn.1401200d0
mov ecx, 0xffffffff
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0xc8]
cmp rcx, rax
jae 0x140013aea
mov rax, qword [rsp + 0x40]
inc rax
mov rcx, rax
call fcn.1401200d0
mov rcx, qword [rsp + 0x40]
inc rcx
mov edx, 0xffffffff
sub rdx, rcx
mov rcx, rdx
cmp rax, rcx
jae 0x140013aea
mov rax, qword [rsp + 0x40]
inc rax
mov rcx, rax
call fcn.1401200d0
mov rcx, qword [rsp + 0x40]
lea rax, [rcx + rax + 1]
mov ecx, 0xffffffe7
cmp rax, rcx
jae 0x140013aea
mov rax, qword [rsp + 0x40]
inc rax
mov rcx, rax
call fcn.1401200d0
test rax, rax
je 0x140013a81
mov rax, qword [rsp + 0x40]
inc rax
mov rcx, rax
call fcn.1401200d0
mov rcx, qword [rsp + 0x40]
lea rax, [rcx + rax + 0x19]
mov ecx, 0xffffffe7
cmp rax, rcx
jae 0x140013aea
mov rax, qword [rsp + 0x40]
inc rax
mov rcx, rax
call fcn.1401200d0
test rax, rax
jbe 0x140013aa4
mov qword [rsp + 0x90], 0x18
jmp 0x140013ab0
mov qword [rsp + 0x90], 0
mov rax, qword [rsp + 0x40]
inc rax
mov rcx, rax
call fcn.1401200d0
mov rcx, qword [rsp + 0x90]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x40]
lea rax, [rcx + rax + 0x19]
mov rcx, rax
call fcn.14027bb94
mov qword [rsp + 0x98], rax
jmp 0x140013af6
mov qword [rsp + 0x98], 0
mov rax, qword [rsp + 0x40]
inc rax
mov rcx, rax
call fcn.1401200d0
cdqe
mov ecx, dword [rsp + 0x40]
inc ecx
movsxd rcx, ecx
xor r9d, r9d
mov r8, rax
mov rdx, rcx
mov rcx, qword [rsp + 0x98]
call fcn.140113960
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
cmp qword [rax - 0x10], 0
jbe 0x140013b55
mov rax, qword [rsp + 0x48]
mov rax, qword [rax - 0x18]
mov rcx, qword [rsp + 0x48]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0xa0], rax
jmp 0x140013b61
mov qword [rsp + 0xa0], 0
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0x40]
inc rax
mov r9, qword [rsp + 0x40]
mov r8, qword [rsp + 0xa8]
mov rdx, rax
mov rcx, qword [rsp + 0x48]
call fcn.140001020
mov rcx, qword [rsp + 0x68]
call fcn.1400c98a0
cmp qword [rsp + 0x40], 0x7fffffff
jbe 0x140013bda
mov rcx, qword [rsp + 0x48]
call fcn.140113b40
mov qword [rsp + 0x48], 0
mov rax, qword [rsp + 0x1580]
cmp dword [rax + 0xbec], 0
je 0x140013bd8
lea rcx, str._Service_Parameters___ERROR
call fcn.140125090
jmp 0x140013c12
lea r8, [rsp + 0xd0]
mov edx, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
call fcn.1401200f0
mov rax, qword [rsp + 0x1580]
cmp dword [rax + 0xbec], 0
je 0x140013c12
mov rdx, qword [rsp + 0x48]
lea rcx, str._Service_Parameters____s
call fcn.140125090
jmp 0x140013c31
mov rax, qword [rsp + 0x1580]
cmp dword [rax + 0xbec], 0
je 0x140013c31
lea rcx, str._Service_Parameters___NONE
call fcn.140125090
jmp 0x140013f5c
mov rax, qword [rsp + 0x1580]
mov rax, qword [rax + 0xdd8]
lea rcx, str.meshagent
sub rcx, rax
movzx edx, byte [rax]
cmp dl, byte [rax + rcx]
jne 0x140013c62
inc rax
test dl, dl
jne 0x140013c4f
xor eax, eax
jmp 0x140013c67
sbb eax, eax
or eax, 1
test eax, eax
je 0x140013f5c
mov rax, qword [rsp + 0x1580]
mov rax, qword [rax + 0xdd8]
mov rax, qword [rax - 0x18]
add rax, 0x1e
mov qword [rsp + 0xd8], rax
mov rcx, qword [rsp + 0x1580]
mov rcx, qword [rcx + 0xdd8]
mov rcx, qword [rcx - 0x18]
add rcx, 0x1e
call fcn.1401200d0
mov ecx, 0xffffffff
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0xd8]
cmp rcx, rax
jae 0x140013e7a
mov rax, qword [rsp + 0x1580]
mov rax, qword [rax + 0xdd8]
mov rax, qword [rax - 0x18]
add rax, 0x1e
mov rcx, rax
call fcn.1401200d0
mov rcx, qword [rsp + 0x1580]
mov rcx, qword [rcx + 0xdd8]
mov rcx, qword [rcx - 0x18]
add rcx, 0x1e
mov edx, 0xffffffff
sub rdx, rcx
mov rcx, rdx
cmp rax, rcx
jae 0x140013e7a
mov rax, qword [rsp + 0x1580]
mov rax, qword [rax + 0xdd8]
mov rax, qword [rax - 0x18]
mov qword [rsp + 0xe0], rax
mov rcx, qword [rsp + 0x1580]
mov rcx, qword [rcx + 0xdd8]
mov rcx, qword [rcx - 0x18]
add rcx, 0x1e
call fcn.1401200d0
mov rcx, qword [rsp + 0xe0]
lea rax, [rcx + rax + 0x1e]
mov ecx, 0xffffffe7
cmp rax, rcx
jae 0x140013e7a
mov rax, qword [rsp + 0x1580]
mov rax, qword [rax + 0xdd8]
mov rax, qword [rax - 0x18]
add rax, 0x1e
mov rcx, rax
call fcn.1401200d0
test rax, rax
je 0x140013dd8
mov rax, qword [rsp + 0x1580]
mov rax, qword [rax + 0xdd8]
mov rax, qword [rax - 0x18]
mov qword [rsp + 0xe8], rax
mov rcx, qword [rsp + 0x1580]
mov rcx, qword [rcx + 0xdd8]
mov rcx, qword [rcx - 0x18]
add rcx, 0x1e
call fcn.1401200d0
mov rcx, qword [rsp + 0xe8]
lea rax, [rcx + rax + 0x36]
mov ecx, 0xffffffe7
cmp rax, rcx
jae 0x140013e7a
mov rax, qword [rsp + 0x1580]
mov rax, qword [rax + 0xdd8]
mov rax, qword [rax - 0x18]
add rax, 0x1e
mov rcx, rax
call fcn.1401200d0
test rax, rax
jbe 0x140013e0a
mov qword [rsp + 0xb0], 0x18
jmp 0x140013e16
mov qword [rsp + 0xb0], 0
mov rax, qword [rsp + 0x1580]
mov rax, qword [rax + 0xdd8]
mov qword [rsp + 0xf0], rax
mov rcx, qword [rsp + 0x1580]
mov rcx, qword [rcx + 0xdd8]
mov rcx, qword [rcx - 0x18]
add rcx, 0x1e
call fcn.1401200d0
mov rcx, qword [rsp + 0xf0]
mov rcx, qword [rcx - 0x18]
mov rdx, qword [rsp + 0xb0]
add rdx, rcx
mov rcx, rdx
lea rax, [rax + rcx + 0x36]
mov rcx, rax
call fcn.14027bb94
mov qword [rsp + 0xb8], rax
jmp 0x140013e86
mov qword [rsp + 0xb8], 0
mov rax, qword [rsp + 0x1580]
mov rax, qword [rax + 0xdd8]
mov rax, qword [rax - 0x18]
add rax, 0x1e
mov rcx, rax
call fcn.1401200d0
cdqe
mov rcx, qword [rsp + 0x1580]
mov rcx, qword [rcx + 0xdd8]
mov ecx, dword [rcx - 0x18]
add ecx, 0x1e
movsxd rcx, ecx
xor r9d, r9d
mov r8, rax
mov rdx, rcx
mov rcx, qword [rsp + 0xb8]
call fcn.140113960
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
cmp qword [rax - 0x10], 0
jbe 0x140013f03
mov rax, qword [rsp + 0x48]
mov rax, qword [rax - 0x18]
mov rcx, qword [rsp + 0x48]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0xc0], rax
jmp 0x140013f0f
mov qword [rsp + 0xc0], 0
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0x1580]
mov r9, qword [rax + 0xdd8]
lea r8, str.____meshServiceName__s___
mov rax, qword [rsp + 0x48]
mov rdx, qword [rax - 0x18]
mov rcx, qword [rsp + 0x48]
call fcn.140001420
lea r8, [rsp + 0xf8]
mov edx, eax
mov rcx, qword [rsp + 0x48]
call fcn.1401200f0
mov rax, qword [rsp + 0x1580]
mov rcx, qword [rax + 0x48]
call fcn.14012ccb0
mov rax, qword [rsp + 0x1580]
mov qword [rax + 0x48], 0
cmp qword [rsp + 0x48], 0
je 0x140013f8f
mov rcx, qword [rsp + 0x48]
call fcn.140113b40
call fcn.140110740
cmp qword [0x1403b96a8], 0
je 0x140013faa
mov rcx, qword [0x1403b96a8]
call fcn.14027a7c0
xor eax, eax
mov rcx, qword [rsp + 0x1560]
xor rcx, rsp
call fcn.14026d940
add rsp, 0x1578
ret