Function at 0x1400137d0
Capabilities:
Check if file exists
Connect network resource
Enumerate network shares
Query environment variable

Disassembly:
push rsi
push rdi
mov eax, 0x1418
call fcn.140020060
sub rsp, rax
mov dword [rsp + 0x3c], 0
lea rcx, [rsp + 0x38]
call fcn.14000b100
mov qword [rsp + 0x80], rax
mov rcx, qword [rsp + 0x80]
call fcn.140015b80
mov qword [rsp + 0x88], rax
mov r8d, 0x104
lea rdx, [rsp + 0x7f0]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea rcx, [rsp + 0x39]
call fcn.14000b5b0
mov qword [rsp + 0x90], rax
mov rcx, qword [rsp + 0x90]
call fcn.140015c80
mov qword [rsp + 0x60], rax
lea rdx, [rsp + 0x7f0]
lea rcx, [rsp + 0x148]
call fcn.140006e50
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0x48], 0xffffffffffffffff
inc qword [rsp + 0x48]
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x48]
cmp word [rax + rcx*2], 0
jne 0x1400138a2
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0xb8], rax
mov r8, qword [rsp + 0xb8]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0xc0]
call fcn.1400133d0
mov qword [rsp + 0xc8], rax
mov rdx, qword [rsp + 0xc8]
lea rcx, [rsp + 0x128]
call fcn.140006da0
mov eax, dword [rsp + 0x3c]
or eax, 1
mov dword [rsp + 0x3c], eax
lea rcx, [rsp + 0x148]
call fcn.140012e20
lea rcx, [rsp + 0x128]
call fcn.140017ef0
movzx eax, al
test eax, eax
je 0x140013dee
xor ecx, ecx
call fcn.140027594
nop
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
lea rax, [rsp + 0x1e0]
lea rcx, [0x14004a660]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x22
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x202]
mov rdi, rax
xor eax, eax
mov ecx, 0x1e6
rep stosb byte [rdi], al
lea rdx, str.Example
lea rcx, [rsp + 0x1e0]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rdx, [rsp + 0x1e0]
lea rcx, str.PathAppend:__s_n
call fcn.14001d210
lea rcx, [rsp + 0x1e0]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400139c8
lea rcx, str.PathFileExists:_Path_exists_n
call fcn.14001d210
jmp 0x1400139d4
lea rcx, str.PathFileExists:_Path_does_not_exist_n
call fcn.14001d210
lea rcx, [rsp + 0x1e0]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov rdx, rax
lea rcx, str.PathFindFileName:__s_n
call fcn.14001d210
lea rcx, [rsp + 0x1e0]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea rdx, [rsp + 0x1e0]
lea rcx, str.PathRemoveFileSpec:__s_n
call fcn.14001d210
lea rcx, [rsp + 0x1e0]
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x140013a33
lea rcx, str.PathIsDirectory:_Is_a_directory_n
call fcn.14001d210
jmp 0x140013a3f
lea rcx, str.PathIsDirectory:_Is_not_a_directory_n
call fcn.14001d210
lea r8, str.System32
lea rdx, str.C:Windows
lea rcx, [rsp + 0xa00]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
lea rdx, [rsp + 0xa00]
lea rcx, str.PathCombine:__s_n
call fcn.14001d210
lea rdx, str.string2
lea rcx, str.string1
call qword [sym.imp.SHLWAPI.dll_StrCmpW]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x140013a9c
lea rax, str.Equal
mov qword [rsp + 0x70], rax
jmp 0x140013ac7
cmp dword [rsp + 0x40], 0
jge 0x140013ab1
lea rax, str.Less_than
mov qword [rsp + 0x68], rax
jmp 0x140013abd
lea rax, str.Greater_than
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rax
mov rdx, qword [rsp + 0x70]
lea rcx, str.StrCmp:__s_n
call fcn.14001d210
lea rax, [rsp + 0x170]
lea rcx, str.Hello_
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x180]
mov rdi, rax
xor eax, eax
mov ecx, 0x54
rep stosb byte [rdi], al
lea rdx, str.world_
lea rcx, [rsp + 0x170]
call qword [sym.imp.SHLWAPI.dll_StrCatW]
lea rdx, [rsp + 0x170]
lea rcx, str.StrCat:__s_n
call fcn.14001d210
lea rcx, [0x14004a960]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, eax
lea rcx, str.lstrlen:__d_characters_n
call fcn.14001d210
lea rdx, str.world
lea rcx, str.Hello__world_
call qword [sym.imp.SHLWAPI.dll_StrStrW]
mov qword [rsp + 0xd0], rax
cmp qword [rsp + 0xd0], 0
je 0x140013b81
lea rcx, str.StrStr:_Found_world_in_Hello__world__n
call fcn.14001d210
jmp 0x140013b8d
lea rcx, str.StrStr:_Did_not_find_world_in_Hello__world__n
call fcn.14001d210
call qword [sym.imp.ole32.dll_CoUninitialize]
mov dword [rsp + 0xfc], 1
mov qword [rsp + 0x108], 0
lea rax, [0x14004aaa8]
mov qword [rsp + 0x110], rax
mov qword [rsp + 0x120], 0
xor r9d, r9d
lea r8, str.username
lea rdx, str.password
lea rcx, [rsp + 0xf8]
call sub.MPR.dll_WNetAddConnection2W
mov dword [rsp + 0x30], eax
mov ecx, dword [rsp + 0x30]
call fcn.14000e520
mov r8d, 1
xor edx, edx
lea rcx, [0x14004aaf8]
call sub.MPR.dll_WNetCancelConnection2W
mov dword [rsp + 0x30], eax
mov ecx, dword [rsp + 0x30]
call fcn.14000e520
mov dword [rsp + 0x34], 0x800
lea r9, [rsp + 0x34]
lea r8, [rsp + 0xc10]
mov edx, 1
lea rcx, str._server_share
call sub.MPR.dll_WNetGetUniversalNameW
mov dword [rsp + 0x30], eax
mov ecx, dword [rsp + 0x30]
call fcn.14000e520
mov dword [rsp + 0x34], 0x800
lea r8, [rsp + 0x34]
lea rdx, [rsp + 0xc10]
lea rcx, [0x14004ab38]
call sub.MPR.dll_WNetGetConnectionW
mov dword [rsp + 0x30], eax
mov ecx, dword [rsp + 0x30]
call fcn.14000e520
mov dword [rsp + 0x20], 0x100
lea r9, [rsp + 0x5f0]
mov r8d, 0x100
lea rdx, [rsp + 0x3f0]
lea rcx, [rsp + 0x50]
call sub.MPR.dll_WNetGetLastErrorW
lea rdx, str.Error:
lea rcx, [0x14005f830]
call fcn.1400017b0
mov qword [rsp + 0xd8], rax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x54], eax
mov edx, dword [rsp + 0x54]
mov rcx, qword [rsp + 0xd8]
call fcn.140009720
lea rdx, [0x14004ab48]
mov rcx, rax
call fcn.1400017b0
lea rdx, [rsp + 0x3f0]
mov rcx, rax
call fcn.1400017b0
lea rdx, [0x14004ab40]
mov rcx, rax
call fcn.1400017b0
lea rdx, [rsp + 0x5f0]
mov rcx, rax
call fcn.1400017b0
mov qword [rsp + 0xe0], rax
lea rax, [0x140005440]
mov qword [rsp + 0xe8], rax
mov rcx, qword [rsp + 0xe0]
call qword [rsp + 0xe8]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 2
call sub.MPR.dll_WNetOpenEnumW
mov dword [rsp + 0x30], eax
mov ecx, dword [rsp + 0x30]
call fcn.14000e520
mov dword [rsp + 0x58], 0xffffffff
mov dword [rsp + 0x34], 0x800
lea r9, [rsp + 0x34]
lea r8, [rsp + 0xc10]
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x78]
call sub.MPR.dll_WNetEnumResourceW
mov dword [rsp + 0x30], eax
mov ecx, dword [rsp + 0x30]
call fcn.14000e520
mov rcx, qword [rsp + 0x78]
call sub.MPR.dll_WNetCloseEnum
mov dword [rsp + 0x30], eax
mov ecx, dword [rsp + 0x30]
call fcn.14000e520
lea rax, [rsp + 0xc10]
mov qword [rsp + 0xf0], rax
mov dword [rsp + 0x5c], 0x800
xor r9d, r9d
lea r8, [rsp + 0x5c]
lea rdx, [rsp + 0xc10]
mov rcx, qword [rsp + 0xf0]
call sub.MPR.dll_WNetGetResourceInformationW
mov dword [rsp + 0x30], eax
mov ecx, dword [rsp + 0x30]
call fcn.14000e520
nop
lea rcx, [rsp + 0x128]
call fcn.140012e20
add rsp, 0x1418
pop rdi
pop rsi
ret