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

Disassembly:
push rsi
push rdi
mov eax, 0x13c8
call fcn.14001c600
sub rsp, rax
lea rcx, [rsp + 0x38]
call fcn.14000acd0
mov rcx, rax
call fcn.140009880
mov r8d, 0x104
lea rdx, [rsp + 0x7a0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea rcx, [rsp + 0x39]
call fcn.14000b180
mov rcx, rax
call fcn.1400098e0
mov qword [rsp + 0x78], rax
lea rdx, [rsp + 0x7a0]
lea rcx, [rsp + 0xf8]
call fcn.140006510
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x80], rax
mov r8, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0xd8]
call fcn.140001b70
nop
lea rcx, [rsp + 0xf8]
call fcn.1400088f0
lea rcx, [rsp + 0xd8]
call fcn.1400157f0
movzx eax, al
test eax, eax
je 0x1400124d6
xor ecx, ecx
call fcn.140023bfc
nop
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
lea rax, [rsp + 0x190]
lea rcx, [0x140046660]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x22
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x1b2]
mov rdi, rax
xor eax, eax
mov ecx, 0x1e6
rep stosb byte [rdi], al
lea rdx, str.Example
lea rcx, [rsp + 0x190]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rdx, [rsp + 0x190]
lea rcx, str.PathAppend:__s_n
call fcn.1400197d0
lea rcx, [rsp + 0x190]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400120ba
lea rcx, str.PathFileExists:_Path_exists_n
call fcn.1400197d0
jmp 0x1400120c6
lea rcx, str.PathFileExists:_Path_does_not_exist_n
call fcn.1400197d0
lea rcx, [rsp + 0x190]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov rdx, rax
lea rcx, str.PathFindFileName:__s_n
call fcn.1400197d0
lea rcx, [rsp + 0x190]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea rdx, [rsp + 0x190]
lea rcx, str.PathRemoveFileSpec:__s_n
call fcn.1400197d0
lea rcx, [rsp + 0x190]
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x140012125
lea rcx, str.PathIsDirectory:_Is_a_directory_n
call fcn.1400197d0
jmp 0x140012131
lea rcx, str.PathIsDirectory:_Is_not_a_directory_n
call fcn.1400197d0
lea r8, str.System32
lea rdx, str.C:Windows
lea rcx, [rsp + 0x9b0]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
lea rdx, [rsp + 0x9b0]
lea rcx, str.PathCombine:__s_n
call fcn.1400197d0
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 0x14001218e
lea rax, str.Equal
mov qword [rsp + 0x58], rax
jmp 0x1400121b9
cmp dword [rsp + 0x3c], 0
jge 0x1400121a3
lea rax, str.Less_than
mov qword [rsp + 0x50], rax
jmp 0x1400121af
lea rax, str.Greater_than
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov rdx, qword [rsp + 0x58]
lea rcx, str.StrCmp:__s_n
call fcn.1400197d0
lea rax, [rsp + 0x120]
lea rcx, str.Hello_
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x130]
mov rdi, rax
xor eax, eax
mov ecx, 0x54
rep stosb byte [rdi], al
lea rdx, str.world_
lea rcx, [rsp + 0x120]
call qword [sym.imp.SHLWAPI.dll_StrCatW]
lea rdx, [rsp + 0x120]
lea rcx, str.StrCat:__s_n
call fcn.1400197d0
lea rcx, [0x140046960]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, eax
lea rcx, str.lstrlen:__d_characters_n
call fcn.1400197d0
lea rdx, str.world
lea rcx, str.Hello__world_
call qword [sym.imp.SHLWAPI.dll_StrStrW]
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0x88], 0
je 0x140012273
lea rcx, str.StrStr:_Found_world_in_Hello__world__n
call fcn.1400197d0
jmp 0x14001227f
lea rcx, str.StrStr:_Did_not_find_world_in_Hello__world__n
call fcn.1400197d0
call qword [sym.imp.ole32.dll_CoUninitialize]
mov dword [rsp + 0xac], 1
mov qword [rsp + 0xb8], 0
lea rax, [0x140046aa8]
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0xd0], 0
xor r9d, r9d
lea r8, str.username
lea rdx, str.password
lea rcx, [rsp + 0xa8]
call sub.MPR.dll_WNetAddConnection2W
mov dword [rsp + 0x30], eax
mov ecx, dword [rsp + 0x30]
call fcn.14000df40
mov r8d, 1
xor edx, edx
lea rcx, [0x140046af8]
call sub.MPR.dll_WNetCancelConnection2W
mov dword [rsp + 0x30], eax
mov ecx, dword [rsp + 0x30]
call fcn.14000df40
mov dword [rsp + 0x34], 0x800
lea r9, [rsp + 0x34]
lea r8, [rsp + 0xbc0]
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.14000df40
mov dword [rsp + 0x34], 0x800
lea r8, [rsp + 0x34]
lea rdx, [rsp + 0xbc0]
lea rcx, [0x140046b38]
call sub.MPR.dll_WNetGetConnectionW
mov dword [rsp + 0x30], eax
mov ecx, dword [rsp + 0x30]
call fcn.14000df40
mov dword [rsp + 0x20], 0x100
lea r9, [rsp + 0x5a0]
mov r8d, 0x100
lea rdx, [rsp + 0x3a0]
lea rcx, [rsp + 0x40]
call sub.MPR.dll_WNetGetLastErrorW
lea rdx, str.Error:
lea rcx, [0x14005b830]
call fcn.140001640
mov qword [rsp + 0x90], rax
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x44], eax
mov edx, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x90]
call fcn.140008f30
lea rdx, [0x140046b48]
mov rcx, rax
call fcn.140001640
lea rdx, [rsp + 0x3a0]
mov rcx, rax
call fcn.140001640
lea rdx, [0x140046b40]
mov rcx, rax
call fcn.140001640
lea rdx, [rsp + 0x5a0]
mov rcx, rax
call fcn.140001640
mov qword [rsp + 0x98], rax
lea rdx, [0x140003cd0]
mov rcx, qword [rsp + 0x98]
call fcn.140008f00
lea rax, [rsp + 0x60]
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.14000df40
mov dword [rsp + 0x48], 0xffffffff
mov dword [rsp + 0x34], 0x800
lea r9, [rsp + 0x34]
lea r8, [rsp + 0xbc0]
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x60]
call sub.MPR.dll_WNetEnumResourceW
mov dword [rsp + 0x30], eax
mov ecx, dword [rsp + 0x30]
call fcn.14000df40
mov rcx, qword [rsp + 0x60]
call sub.MPR.dll_WNetCloseEnum
mov dword [rsp + 0x30], eax
mov ecx, dword [rsp + 0x30]
call fcn.14000df40
lea rax, [rsp + 0xbc0]
mov qword [rsp + 0xa0], rax
mov dword [rsp + 0x4c], 0x800
xor r9d, r9d
lea r8, [rsp + 0x4c]
lea rdx, [rsp + 0xbc0]
mov rcx, qword [rsp + 0xa0]
call sub.MPR.dll_WNetGetResourceInformationW
mov dword [rsp + 0x30], eax
mov ecx, dword [rsp + 0x30]
call fcn.14000df40
nop
lea rcx, [rsp + 0xd8]
call fcn.1400088f0
add rsp, 0x13c8
pop rdi
pop rsi
ret