Function at 0x140003be0
Capabilities:
Check if file exists
Connect network resource
Query environment variable

Disassembly:
push rsi
push rdi
mov eax, 0x13e8
call fcn.14001da50
sub rsp, rax
mov dword [rsp + 0x68], 0
lea rcx, [rsp + 0x38]
call fcn.14000419c
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x70]
call fcn.14000fc6c
mov qword [rsp + 0x78], rax
mov r8d, 0x104
lea rdx, [rsp + 0x7c0]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea rcx, [rsp + 0x39]
call fcn.140004258
mov qword [rsp + 0x80], rax
mov rcx, qword [rsp + 0x80]
call fcn.14000fc10
mov qword [rsp + 0x98], rax
lea rdx, [rsp + 0x7c0]
lea rcx, [rsp + 0x120]
call fcn.14000cc84
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0xa0], rax
mov r8, qword [rsp + 0x98]
mov rdx, qword [rsp + 0xa0]
lea rcx, [rsp + 0x100]
call fcn.140014c8c
nop
lea rcx, [rsp + 0x120]
call fcn.140010670
lea rcx, [rsp + 0x100]
call fcn.1400037a4
movzx eax, al
test eax, eax
je 0x140004182
xor ecx, ecx
call fcn.140024058
nop
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
lea rax, [rsp + 0x1b0]
lea rcx, str.C:Program_Files
mov rdi, rax
mov rsi, rcx
mov ecx, 0x22
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x1d2]
mov rdi, rax
xor eax, eax
mov ecx, 0x1e6
rep stosb byte [rdi], al
lea rdx, str.Example
lea rcx, [rsp + 0x1b0]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rdx, [rsp + 0x1b0]
lea rcx, str.PathAppend:__s_n
call fcn.140001188
lea rcx, [rsp + 0x1b0]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140003d5f
lea rcx, str.PathFileExists:_Path_exists_n
call fcn.140001188
jmp 0x140003d6b
lea rcx, str.PathFileExists:_Path_does_not_exist_n
call fcn.140001188
lea rcx, [rsp + 0x1b0]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov rdx, rax
lea rcx, str.PathFindFileName:__s_n
call fcn.140001188
lea rcx, [rsp + 0x1b0]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea rdx, [rsp + 0x1b0]
lea rcx, str.PathRemoveFileSpec:__s_n
call fcn.140001188
lea rcx, [rsp + 0x1b0]
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x140003dca
lea rcx, str.PathIsDirectory:_Is_a_directory_n
call fcn.140001188
jmp 0x140003dd6
lea rcx, str.PathIsDirectory:_Is_not_a_directory_n
call fcn.140001188
lea r8, str.System32
lea rdx, str.C:Windows
lea rcx, [rsp + 0x9d0]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
lea rdx, [rsp + 0x9d0]
lea rcx, str.PathCombine:__s_n
call fcn.140001188
lea rdx, str.string2
lea rcx, str.string1
call qword [sym.imp.SHLWAPI.dll_StrCmpW]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
jne 0x140003e33
lea rax, str.Equal
mov qword [rsp + 0x60], rax
jmp 0x140003e5e
cmp dword [rsp + 0x3c], 0
jge 0x140003e48
lea rax, str.Less_than
mov qword [rsp + 0x58], rax
jmp 0x140003e54
lea rax, str.Greater_than
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x60], rax
mov rdx, qword [rsp + 0x60]
lea rcx, str.StrCmp:__s_n
call fcn.140001188
movups xmm0, xmmword [str.Hello_]
movdqu xmmword [rsp + 0x140], xmm0
lea rax, [rsp + 0x150]
mov rdi, rax
xor eax, eax
mov ecx, 0x54
rep stosb byte [rdi], al
lea rdx, str.world_
lea rcx, [rsp + 0x140]
call qword [sym.imp.SHLWAPI.dll_StrCatW]
lea rdx, [rsp + 0x140]
lea rcx, str.StrCat:__s_n
call fcn.140001188
lea rcx, [0x140051c40]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, eax
lea rcx, str.lstrlen:__d_characters_n
call fcn.140001188
lea rdx, str.world
lea rcx, str.Hello__world_
call qword [sym.imp.SHLWAPI.dll_StrStrW]
mov qword [rsp + 0xa8], rax
cmp qword [rsp + 0xa8], 0
je 0x140003f0c
lea rcx, str.StrStr:_Found_world_in_Hello__world__n
call fcn.140001188
jmp 0x140003f18
lea rcx, str.StrStr:_Did_not_find_world_in_Hello__world__n
call fcn.140001188
call qword [sym.imp.ole32.dll_CoUninitialize]
mov dword [rsp + 0xd4], 1
mov qword [rsp + 0xe0], 0
lea rax, [0x140051d88]
mov qword [rsp + 0xe8], rax
mov qword [rsp + 0xf8], 0
xor r9d, r9d
lea r8, str.username
lea rdx, str.password
lea rcx, [rsp + 0xd0]
call qword [sym.imp.MPR.dll_WNetAddConnection2W]
mov dword [rsp + 0x30], eax
mov ecx, dword [rsp + 0x30]
call fcn.140003724
mov r8d, 1
xor edx, edx
lea rcx, [0x140051dd8]
call qword [sym.imp.MPR.dll_WNetCancelConnection2W]
mov dword [rsp + 0x30], eax
mov ecx, dword [rsp + 0x30]
call fcn.140003724
mov dword [rsp + 0x34], 0x800
lea r9, [rsp + 0x34]
lea r8, [rsp + 0xbe0]
mov edx, 1
lea rcx, str._server_share
call qword [sym.imp.MPR.dll_WNetGetUniversalNameW]
mov dword [rsp + 0x30], eax
mov ecx, dword [rsp + 0x30]
call fcn.140003724
mov dword [rsp + 0x34], 0x800
lea r8, [rsp + 0x34]
lea rdx, [rsp + 0xbe0]
lea rcx, [0x140051e18]
call qword [sym.imp.MPR.dll_WNetGetConnectionW]
mov dword [rsp + 0x30], eax
mov ecx, dword [rsp + 0x30]
call fcn.140003724
mov dword [rsp + 0x20], 0x100
lea r9, [rsp + 0x5c0]
mov r8d, 0x100
lea rdx, [rsp + 0x3c0]
lea rcx, [rsp + 0x40]
call qword [sym.imp.MPR.dll_WNetGetLastErrorW]
lea rdx, str.Error:
lea rcx, [0x14005b710]
call fcn.140014070
mov qword [rsp + 0xb0], rax
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x44], eax
mov edx, dword [rsp + 0x44]
mov rcx, qword [rsp + 0xb0]
call fcn.14000bd24
lea rdx, [0x140051e28]
mov rcx, rax
call fcn.140014070
lea rdx, [rsp + 0x3c0]
mov rcx, rax
call fcn.140014070
lea rdx, [0x140051e20]
mov rcx, rax
call fcn.140014070
lea rdx, [rsp + 0x5c0]
mov rcx, rax
call fcn.140014070
mov qword [rsp + 0xb8], rax
lea rax, [0x140014638]
mov qword [rsp + 0xc0], rax
mov rcx, qword [rsp + 0xb8]
call qword [rsp + 0xc0]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 2
call qword [sym.imp.MPR.dll_WNetOpenEnumW]
mov dword [rsp + 0x30], eax
mov ecx, dword [rsp + 0x30]
call fcn.140003724
mov dword [rsp + 0x48], 0xffffffff
mov dword [rsp + 0x34], 0x800
lea r9, [rsp + 0x34]
lea r8, [rsp + 0xbe0]
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.MPR.dll_WNetEnumResourceW]
mov dword [rsp + 0x30], eax
mov ecx, dword [rsp + 0x30]
call fcn.140003724
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.MPR.dll_WNetCloseEnum]
mov dword [rsp + 0x30], eax
mov ecx, dword [rsp + 0x30]
call fcn.140003724
lea rax, [rsp + 0xbe0]
mov qword [rsp + 0xc8], rax
mov dword [rsp + 0x4c], 0x800
xor r9d, r9d
lea r8, [rsp + 0x4c]
lea rdx, [rsp + 0xbe0]
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.MPR.dll_WNetGetResourceInformationW]
mov dword [rsp + 0x30], eax
mov ecx, dword [rsp + 0x30]
call fcn.140003724
nop
lea rcx, [rsp + 0x100]
call fcn.140010670
add rsp, 0x13e8
pop rdi
pop rsi
ret