Function at 0x14000af54
Capabilities:
Check if file exists
Query environment variable

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x208]
sub rsp, 0x2f0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1401411c8]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
mov r14, rcx
mov esi, 7
mov qword [rsp + 0x78], rsi
xor r15d, r15d
mov qword [rsp + 0x70], r15
mov word [rsp + 0x60], r15w
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], r15
mov edi, 0x104
or rbx, 0xffffffffffffffff
cmp byte [rcx + 0x118], r15b
je 0x14000b1b0
mov r8d, edi
lea rdx, [rbp - 0x30]
xor ecx, ecx
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetModuleFileNameW]
test eax, eax
je 0x14000b1a5
mov qword [rbp - 0x68], rsi
mov qword [rbp - 0x70], r15
mov word [rbp - 0x80], r15w
lea r8, [rbp - 0x30]
cmp word [rbp - 0x30], r15w
je 0x14000b008
add r8, 2
cmp word [r8], r15w
jne 0x14000affe
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x80]
call fcn.14000e724
nop
lea rcx, [rbp - 0x80]
call fcn.14000d898
lea rdx, str.wwwnext
mov r8, rdx
add r8, 2
cmp word [r8], r15w
jne 0x14000b029
lea rcx, [rbp - 0x80]
call fcn.14000e724
mov qword [rbp - 0x48], rsi
mov qword [rbp - 0x50], r15
mov word [rbp - 0x60], r15w
mov r9, rbx
xor r8d, r8d
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x60]
call fcn.140006c68
cmp qword [rsp + 0x78], 8
jb 0x14000b06f
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x70], r15
mov word [rsp + 0x60], r15w
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x60]
call fcn.1400085a4
cmp qword [rbp - 0x48], 8
jb 0x14000b09e
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathFileExistsW]
test eax, eax
jne 0x14000b194
mov qword [rsp + 0x70], r15
lea rax, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rax, qword [rsp + 0x60]
mov word [rax], r15w
lea rcx, [rbp - 0x80]
call fcn.14000d898
lea rdx, [0x1400fc060]
mov r8, rdx
add r8, 2
cmp word [r8], r15w
jne 0x14000b0ea
lea rcx, [rbp - 0x80]
call fcn.14000e724
mov qword [rbp - 0x48], rsi
mov qword [rbp - 0x50], r15
mov word [rbp - 0x60], r15w
mov r9, rbx
xor r8d, r8d
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x60]
call fcn.140006c68
cmp qword [rsp + 0x78], 8
jb 0x14000b130
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x70], r15
mov word [rsp + 0x60], r15w
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x60]
call fcn.1400085a4
cmp qword [rbp - 0x48], 8
jb 0x14000b15f
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathFileExistsW]
test eax, eax
jne 0x14000b194
mov qword [rsp + 0x70], r15
lea rax, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rax, qword [rsp + 0x60]
mov word [rax], r15w
cmp qword [rbp - 0x68], 8
jb 0x14000b1a5
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
cmp qword [rsp + 0x70], r15
jne 0x14000b24b
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], r15
mov rdx, rdi
lea rcx, [rbp - 0x80]
call fcn.14000db88
nop
mov r8, qword [rbp - 0x78]
mov rdi, qword [rbp - 0x80]
sub r8, rdi
sar r8, 1
mov rdx, rdi
lea rcx, str._windir_WebManagementwww
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x14000b21c
mov rcx, qword [rbp + 0x208]
lea r8, str.onecoreuap_adminwebbhttpsrvexe_service.cpp
mov edx, 0x2ea
call fcn.1400036b8
mov ebx, eax
test rdi, rdi
je 0x14000b436
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
jmp 0x14000b436
cmp word [rdi], r15w
jne 0x14000b227
mov rbx, r15
jmp 0x14000b231
inc rbx
cmp word [rdi + rbx*2], r15w
jne 0x14000b227
mov r8, rbx
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.140007004
nop
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
cmp dword [0x140142444], 4
jb 0x14000b276
lea r8, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae r8, qword [rsp + 0x60]
lea rdx, str.WebB:_Content_folder:__S
mov ecx, 4
call fcn.14003929c
lea rax, section..data
mov rcx, qword [section..data]
cmp rcx, rax
je 0x14000b2bb
test byte [rcx + 0x1c], 2
je 0x14000b2bb
cmp byte [rcx + 0x19], 4
jb 0x14000b2bb
lea r9, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae r9, qword [rsp + 0x60]
mov edx, 0x13
lea r8, [0x1400fc950]
mov rcx, qword [rcx + 0x10]
call fcn.1400076d8
mov qword [rbp - 0x48], rsi
mov qword [rbp - 0x50], r15
mov word [rbp - 0x60], r15w
mov r8d, 1
lea rdx, [0x1400fc0bc]
lea rcx, [rbp - 0x60]
call fcn.140007004
nop
mov byte [rsp + 0x20], r15b
mov r9b, 1
lea r8, [rbp - 0x60]
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x80]
call fcn.14003ac8c
nop
cmp qword [rbp - 0x48], 8
jb 0x14000b30b
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp - 0x48], rsi
mov qword [rbp - 0x50], r15
mov word [rbp - 0x60], r15w
mov rsi, qword [rbp - 0x80]
mov rbx, qword [rsi]
jmp 0x14000b371
lea rdi, [rbx + 0x10]
test byte [rdi + 0x28], 0x10
je 0x14000b36e
cmp qword [rdi + 0x18], 8
jb 0x14000b337
mov rcx, qword [rdi]
jmp 0x14000b33a
mov rcx, rdi
lea rdx, [0x1400fc0c0]
call qword [sym.imp.msvcrt.dll__wcsicmp]
lea rcx, [rsp + 0x38]
test eax, eax
jne 0x14000b35a
mov rdx, rdi
call fcn.14000d7f8
jmp 0x14000b36e
mov qword [rsp + 0x20], rdi
mov r8, qword [rsp + 0x38]
lea rdx, [rsp + 0x58]
call fcn.14000ddd0
mov rbx, qword [rbx]
cmp rbx, rsi
jne 0x14000b321
cmp qword [rsp + 0x70], 3
jb 0x14000b394
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x60]
mov rcx, r14
call fcn.14001a7b4
mov ebx, eax
jmp 0x14000b399
mov ebx, 0x80070057
mov dword [rsp + 0x30], ebx
test ebx, ebx
jns 0x14000b429
cmp dword [0x14013e040], 5
jbe 0x14000b413
movabs rdx, 0x400000000000
test qword [0x14013e050], rdx
je 0x14000b413
mov rax, qword [0x14013e058]
and rax, rdx
cmp rax, qword [0x14013e058]
jne 0x14000b413
lea rax, [rsp + 0x30]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 4
lea rax, [rbp - 0x60]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140116661]
lea rcx, [0x14013e040]
call fcn.140001144
mov ebx, dword [rsp + 0x30]
mov ecx, ebx
and ecx, 0x1fff0000
movzx eax, bx
cmp ecx, 0x70000
cmove ebx, eax
jmp 0x14000b42c
mov ebx, r15d
lea rcx, [rbp - 0x80]
call fcn.14000d768
nop
lea rcx, [rsp + 0x38]
call fcn.140006ab8
nop
cmp qword [rsp + 0x78], 8
jb 0x14000b454
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov eax, ebx
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.1400c20a0
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret