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

Disassembly:
push rsi
push rdi
mov eax, 0x14d8
call fcn.140074cc0
sub rsp, rax
mov dword [rsp + 0x40], 0
lea rcx, [rsp + 0x3c]
call fcn.1400109d0
mov qword [rsp + 0x198], rax
mov rcx, qword [rsp + 0x198]
call fcn.140067670
mov qword [rsp + 0xb8], rax
mov r8d, 0x104
lea rdx, [rsp + 0x8b0]
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea rcx, [rsp + 0x3d]
call fcn.140010e80
mov qword [rsp + 0xc0], rax
mov rcx, qword [rsp + 0xc0]
call fcn.140067770
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0x8b0]
lea rcx, [rsp + 0x208]
call fcn.14000bc10
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0xd8], rax
mov qword [rsp + 0x48], 0xffffffffffffffff
inc qword [rsp + 0x48]
mov rax, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0x48]
cmp word [rax + rcx*2], 0
jne 0x140064fc2
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0xe8], rax
mov r8, qword [rsp + 0xe8]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0xf0]
call fcn.1400648f0
mov qword [rsp + 0xf8], rax
mov rdx, qword [rsp + 0xf8]
lea rcx, [rsp + 0x1e8]
call fcn.14000bb60
mov eax, dword [rsp + 0x40]
or eax, 1
mov dword [rsp + 0x40], eax
lea rcx, [rsp + 0x208]
call fcn.140064260
lea rcx, [rsp + 0x1e8]
call fcn.14006af10
movzx eax, al
test eax, eax
je 0x14006585a
xor ecx, ecx
call fcn.14007c1e4
nop
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jge 0x1400650b3
lea rdx, str.CoInitialize_failed
lea rcx, [0x1400baaf0]
call fcn.140001ea0
mov qword [rsp + 0x100], rax
lea rax, [0x1400098e0]
mov qword [rsp + 0x108], rax
mov rcx, qword [rsp + 0x100]
call qword [rsp + 0x108]
lea rcx, str.Hello__OLE_Automation
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
jne 0x14006510c
lea rdx, str.SysAllocString_failed
lea rcx, [0x1400baaf0]
call fcn.140001ea0
mov qword [rsp + 0x110], rax
lea rax, [0x1400098e0]
mov qword [rsp + 0x118], rax
mov rcx, qword [rsp + 0x110]
call qword [rsp + pe_nt_image_headers64]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov dword [rsp + 0x78], 0xa
mov dword [rsp + 0x7c], 0
lea r8, [rsp + 0x78]
mov edx, 1
mov cx, 3
call qword [sym.imp.OLEAUT32.dll_SafeArrayDestroy]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
jne 0x1400651a9
lea rdx, str.SafeArrayCreate_failed
lea rcx, [0x1400baaf0]
call fcn.140001ea0
mov qword [rsp + 0x120], rax
lea rax, [0x1400098e0]
mov qword [rsp + 0x128], rax
mov rcx, qword [rsp + 0x120]
call qword [rsp + 0x128]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.OLEAUT32.dll_SafeArrayGetDim]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jge 0x140065201
lea rdx, str.SafeArrayDestroy_failed
lea rcx, [0x1400baaf0]
call fcn.140001ea0
mov qword [rsp + 0x130], rax
lea rax, [0x1400098e0]
mov qword [rsp + 0x138], rax
mov rcx, qword [rsp + 0x130]
call qword [rsp + 0x138]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov qword [rsp + 0x60], 0
lea rdx, [rsp + 0x60]
lea rcx, str.stdole2.tlb
call qword [sym.imp.OLEAUT32.dll_LoadRegTypeLib]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jge 0x140065266
lea rdx, str.LoadTypeLib_failed
lea rcx, [0x1400baaf0]
call fcn.140001ea0
mov qword [rsp + 0x140], rax
lea rax, [0x1400098e0]
mov qword [rsp + 0x148], rax
mov rcx, qword [rsp + 0x140]
call qword [rsp + 0x148]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rax, qword [rsp + 0x60]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x60]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
lea rcx, [rsp + 0x1a0]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x1a0]
call qword [sym.imp.OLEAUT32.dll_VariantCopyInd]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jge 0x1400652f2
lea rdx, str.VariantCopy_failed
lea rcx, [0x1400baaf0]
call fcn.140001ea0
mov qword [rsp + 0x150], rax
lea rax, [0x1400098e0]
mov qword [rsp + 0x158], rax
mov rcx, qword [rsp + 0x150]
call qword [rsp + 0x158]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov r9w, 8
xor r8d, r8d
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x1a0]
call qword [sym.imp.OLEAUT32.dll_VariantTimeToDosDateTime]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jge 0x140065376
lea rdx, str.VariantChangeType_failed
lea rcx, [0x1400baaf0]
call fcn.140001ea0
mov qword [rsp + 0x160], rax
lea rax, [0x1400098e0]
mov qword [rsp + 0x168], rax
mov rcx, qword [rsp + 0x160]
call qword [rsp + 0x168]
lea rcx, [rsp + 0x1a0]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
call qword [sym.imp.ole32.dll_CoUninitialize]
lea rcx, [rsp + 0x1a0]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
call qword [sym.imp.ole32.dll_CoUninitialize]
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
lea rax, [rsp + 0x2a0]
lea rcx, str.C:Program_Files
mov rdi, rax
mov rsi, rcx
mov ecx, 0x22
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x2c2]
mov rdi, rax
xor eax, eax
mov ecx, 0x1e6
rep stosb byte [rdi], al
lea rdx, str.Example
lea rcx, [rsp + 0x2a0]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rdx, [rsp + 0x2a0]
lea rcx, str.PathAppend:__s_n
call fcn.140071870
lea rcx, [rsp + 0x2a0]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140065419
lea rcx, str.PathFileExists:_Path_exists_n
call fcn.140071870
jmp 0x140065425
lea rcx, str.PathFileExists:_Path_does_not_exist_n
call fcn.140071870
lea rcx, [rsp + 0x2a0]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov rdx, rax
lea rcx, str.PathFindFileName:__s_n
call fcn.140071870
lea rcx, [rsp + 0x2a0]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea rdx, [rsp + 0x2a0]
lea rcx, str.PathRemoveFileSpec:__s_n
call fcn.140071870
lea rcx, [rsp + 0x2a0]
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x140065484
lea rcx, str.PathIsDirectory:_Is_a_directory_n
call fcn.140071870
jmp 0x140065490
lea rcx, str.PathIsDirectory:_Is_not_a_directory_n
call fcn.140071870
lea r8, str.System32
lea rdx, str.C:Windows
lea rcx, [rsp + 0xac0]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
lea rdx, [rsp + 0xac0]
lea rcx, str.PathCombine:__s_n
call fcn.140071870
lea rdx, str.string2
lea rcx, str.string1
call qword [sym.imp.SHLWAPI.dll_StrCmpW]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x1400654f0
lea rax, str.Equal
mov qword [rsp + 0x90], rax
jmp 0x140065527
cmp dword [rsp + 0x44], 0
jge 0x140065508
lea rax, str.Less_than
mov qword [rsp + 0x88], rax
jmp 0x140065517
lea rax, str.Greater_than
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x90], rax
mov rdx, qword [rsp + 0x90]
lea rcx, str.StrCmp:__s_n
call fcn.140071870
lea rax, [rsp + 0x230]
lea rcx, str.Hello_
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x240]
mov rdi, rax
xor eax, eax
mov ecx, 0x54
rep stosb byte [rdi], al
lea rdx, str.world_
lea rcx, [rsp + 0x230]
call qword [sym.imp.SHLWAPI.dll_StrCatW]
lea rdx, [rsp + 0x230]
lea rcx, str.StrCat:__s_n
call fcn.140071870
lea rcx, [0x1400a24c0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, eax
lea rcx, str.lstrlen:__d_characters_n
call fcn.140071870
lea rdx, str.world
lea rcx, str.Hello__world_
call qword [sym.imp.SHLWAPI.dll_StrStrW]
mov qword [rsp + 0x170], rax
cmp qword [rsp + 0x170], 0
je 0x1400655e4
lea rcx, str.StrStr:_Found_world_in_Hello__world__n
call fcn.140071870
jmp 0x1400655f0
lea rcx, str.StrStr:_Did_not_find_world_in_Hello__world__n
call fcn.140071870
call qword [sym.imp.ole32.dll_CoUninitialize]
mov dword [rsp + 0x1bc], 1
mov qword [rsp + 0x1c8], 0
lea rax, [0x1400a2608]
mov qword [rsp + 0x1d0], rax
mov qword [rsp + 0x1e0], 0
xor r9d, r9d
lea r8, str.username
lea rdx, str.password
lea rcx, [rsp + 0x1b8]
call sub.MPR.dll_WNetAddConnection2W
mov dword [rsp + 0x30], eax
mov ecx, dword [rsp + 0x30]
call fcn.1400140a0
mov r8d, 1
xor edx, edx
lea rcx, [0x1400a2658]
call sub.MPR.dll_WNetCancelConnection2W
mov dword [rsp + 0x30], eax
mov ecx, dword [rsp + 0x30]
call fcn.1400140a0
mov dword [rsp + 0x38], 0x800
lea r9, [rsp + 0x38]
lea r8, [rsp + 0xcd0]
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.1400140a0
mov dword [rsp + 0x38], 0x800
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0xcd0]
lea rcx, [0x1400a2698]
call sub.MPR.dll_WNetGetConnectionW
mov dword [rsp + 0x30], eax
mov ecx, dword [rsp + 0x30]
call fcn.1400140a0
mov dword [rsp + 0x20], 0x100
lea r9, [rsp + 0x6b0]
mov r8d, 0x100
lea rdx, [rsp + 0x4b0]
lea rcx, [rsp + 0x50]
call sub.MPR.dll_WNetGetLastErrorW
lea rdx, str.Error:
lea rcx, [0x1400bac10]
call fcn.140002460
mov qword [rsp + 0x178], rax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x54], eax
mov edx, dword [rsp + 0x54]
mov rcx, qword [rsp + 0x178]
call fcn.14000ecd0
lea rdx, [0x1400a26a8]
mov rcx, rax
call fcn.140002460
lea rdx, [rsp + 0x4b0]
mov rcx, rax
call fcn.140002460
lea rdx, [0x1400a26a0]
mov rcx, rax
call fcn.140002460
lea rdx, [rsp + 0x6b0]
mov rcx, rax
call fcn.140002460
mov qword [rsp + 0x180], rax
lea rax, [0x140009940]
mov qword [rsp + 0x188], rax
mov rcx, qword [rsp + 0x180]
call qword [rsp + 0x188]
lea rax, [rsp + 0x98]
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.1400140a0
mov dword [rsp + 0x58], 0xffffffff
mov dword [rsp + 0x38], 0x800
lea r9, [rsp + 0x38]
lea r8, [rsp + 0xcd0]
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x98]
call sub.MPR.dll_WNetEnumResourceW
mov dword [rsp + 0x30], eax
mov ecx, dword [rsp + 0x30]
call fcn.1400140a0
mov rcx, qword [rsp + 0x98]
call sub.MPR.dll_WNetCloseEnum
mov dword [rsp + 0x30], eax
mov ecx, dword [rsp + 0x30]
call fcn.1400140a0
lea rax, [rsp + 0xcd0]
mov qword [rsp + 0x190], rax
mov dword [rsp + 0x5c], 0x800
xor r9d, r9d
lea r8, [rsp + 0x5c]
lea rdx, [rsp + 0xcd0]
mov rcx, qword [rsp + 0x190]
call sub.MPR.dll_WNetGetResourceInformationW
mov dword [rsp + 0x30], eax
mov ecx, dword [rsp + 0x30]
call fcn.1400140a0
nop
lea rcx, [rsp + 0x1e8]
call fcn.140064260
add rsp, 0x14d8
pop rdi
pop rsi
ret