Function at 0x140341744
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x258]
sub rsp, 0x330
mov rax, qword [0x1404e1800]
xor rax, rsp
mov qword [rbp + 0x220], rax
mov rsi, rcx
mov qword [rbp - 0x40], rcx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
and qword [rsp + 0x78], 0
movdqu xmmword [rbp - 0x70], xmm0
and qword [rbp - 0x60], 0
lea rcx, [rbp - 0x70]
call fcn.14026e580
mov r13, qword [rsi]
mov r14, qword [rsi + 8]
mov qword [rbp - 0x48], r14
mov r12, qword [rsp + 0x70]
cmp r13, r14
je 0x140341b86
lea rcx, [rbp - 0x58]
call fcn.140170220
nop
lea rcx, [rbp - 0x80]
call fcn.1401037f4
nop
mov rcx, qword [r13]
add rcx, 0x60
cmp qword [rcx + 0x18], 8
jb 0x1403417e3
mov rcx, qword [rcx]
mov r8d, 0x105
lea rdx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
test eax, eax
jne 0x140341853
call fcn.140091ae4
cmp dword [rax], 3
jbe 0x140341890
mov rcx, qword [r13]
add rcx, 0x60
cmp qword [rcx + 0x18], 8
jb 0x14034181d
mov rcx, qword [rcx]
mov qword [rsp + 0x40], rcx
lea rcx, str.Failed_to_expand_application_path_for_system_account
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x20], rcx
lea rdx, [0x14045a331]
mov rcx, rax
call fcn.1400056ec
jmp 0x140341890
lea rax, [rbp - 0x30]
mov qword [rsp + 0x50], rax
lea rdx, [0x1403a9f84]
lea rcx, [rbp - 0x30]
call fcn.14008c350
mov rbx, rax
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x10]
call fcn.14008c350
nop
mov r9, rbx
mov r8, rax
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x58]
call fcn.140341514
mov rdi, qword [rbp - 0x70]
mov rsi, qword [rbp - 0x68]
jmp 0x140341a14
mov rdx, qword [r13]
add rdx, 0x60
cmp qword [rdx + 0x18], 8
jb 0x1403418af
mov rdx, qword [rdx]
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x1403418bd
mov rcx, qword [rax]
jmp 0x1403418bf
xor ecx, ecx
mov r9d, 0x105
lea r8, [rbp + 0x10]
call qword [sym.imp.USERENV.dll_ExpandEnvironmentStringsForUserW]
nop dword [rax + rax]
test eax, eax
jne 0x140341972
call fcn.140091ae4
mov rbx, rax
cmp dword [rax], 3
jbe 0x140341a10
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov dword [rsp + 0x60], eax
mov rcx, qword [rdi]
cmp qword [rcx + 0x18], 8
jb 0x14034190b
mov rcx, qword [rcx]
mov qword [rsp + 0x48], rcx
mov rax, qword [r13]
add rax, 0x60
cmp qword [rax + 0x18], 8
jb 0x140341922
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
lea rax, str.Failed_to_expand_application_path
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [0x14045a276]
mov rcx, rbx
call fcn.140001fa0
jmp 0x140341a10
call fcn.140091ae4
cmp dword [rax], 4
jbe 0x1403419d0
mov rcx, qword [rdi]
cmp qword [rcx + 0x18], 8
jb 0x140341989
mov rcx, qword [rcx]
mov qword [rsp + 0x50], rcx
lea rcx, [rbp + 0x10]
mov qword [rsp + 0x48], rcx
lea rcx, str.Application_path_expansion
mov qword [rsp + 0x40], rcx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rcx
lea rdx, [0x14045a238]
mov rcx, rax
call fcn.1400092bc
lea rax, [rbp - 0x10]
mov qword [rsp + 0x50], rax
mov r8, qword [rdi]
lea rdx, [0x1403dad44]
lea rcx, [rbp - 0x10]
call fcn.140077558
mov rbx, rax
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x30]
call fcn.14008c350
nop
mov r9, rbx
mov r8, rax
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x58]
call fcn.140341514
add rdi, 0x20
cmp rdi, rsi
jne 0x14034189d
mov rbx, qword [rbp - 0x58]
mov rax, qword [rbx]
mov qword [rsp + 0x40], rax
cmp rax, rbx
sete cl
test cl, cl
jne 0x140341b59
lea r15, [rax + 0x20]
mov rsi, qword [r13]
mov ecx, 0xb8
call fcn.140112a2c
mov r14, rax
mov qword [rbp - 0x38], rax
mov eax, 1
mov dword [r14 + 8], eax
mov dword [r14 + 0xc], eax
lea rax, vtable.std::_Ref_count_obj_struct_sense::Common::AllowRule_.0
mov qword [r14], rax
mov rdx, rsi
lea rcx, [r14 + 0x10]
call fcn.1403411d0
nop
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
mov r8, r14
lea rdx, [r14 + 0x10]
lea rcx, [rsp + 0x50]
call fcn.1400718e8
nop
mov rdi, qword [rsp + 0x50]
lea rcx, [rdi + 0x60]
mov rdx, r15
call fcn.14007d520
mov rdx, r15
lea rcx, [rbp - 0x80]
call fcn.1402e7f3c
mov r8, rax
mov rdx, rdi
lea rcx, [rbp - 0x10]
call fcn.140077980
mov rdx, rax
mov rcx, rdi
call fcn.14008aed0
lea rcx, [rbp - 0x10]
call fcn.14007a7c0
mov rdx, r15
lea rcx, [rbp - 0x80]
call fcn.1402e7f3c
mov r8, rax
lea rdx, [rdi + 0x20]
lea rcx, [rbp - 0x10]
call fcn.140077980
mov rdx, rax
lea rcx, [rdi + 0x20]
call fcn.14008aed0
lea rcx, [rbp - 0x10]
call fcn.14007a7c0
cmp qword [rsp + 0x78], r12
je 0x140341b1f
lea rdx, [rsp + 0x50]
mov rcx, r12
call fcn.14006a6bc
add r12, 0x10
mov qword [rsp + 0x70], r12
jmp 0x140341b36
lea r8, [rsp + 0x50]
mov rdx, r12
lea rcx, [rsp + 0x68]
call fcn.140286674
mov r12, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140341b45
call fcn.14007e3e0
lea rcx, [rsp + 0x40]
call fcn.1400b085c
mov rax, qword [rsp + 0x40]
jmp 0x140341a29
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x80]
call fcn.14010cd28
nop
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 0x58]
call fcn.140125430
add r13, 0x10
cmp r13, qword [rbp - 0x48]
jne 0x1403417bd
mov rsi, qword [rbp - 0x40]
lea rax, [rsp + 0x68]
cmp rsi, rax
je 0x140341ba1
mov r8, r12
mov rdx, qword [rsp + 0x68]
mov rcx, rsi
call fcn.140340d00
nop
mov rbx, qword [rbp - 0x70]
test rbx, rbx
je 0x140341bd6
mov rdx, qword [rbp - 0x68]
mov rcx, rbx
call fcn.14026d894
mov rdx, qword [rbp - 0x60]
sub rdx, rbx
and rdx, 0xffffffffffffffe0
mov rcx, rbx
call fcn.14007e6f0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x70], xmm0
and qword [rbp - 0x60], 0
lea rcx, [rsp + 0x68]
call fcn.14006ed00
mov rcx, qword [rbp + 0x220]
xor rcx, rsp
call fcn.140112420
lea r11, [rsp + 0x330]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret