Function at 0x140350224
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x418]
sub rsp, 0x4f0
mov qword [rbp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1405420e0]
xor rax, rsp
mov qword [rbp + 0x3e0], rax
mov rbx, rcx
mov qword [rbp - 0x58], rcx
xor r12d, r12d
mov dword [rsp + 0x30], r12d
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], r12
movdqu xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x38], r12
lea rax, [0x1403b4c28]
mov qword [rbp + 0x38], rax
lea rax, [rbp - 0x48]
mov qword [rbp + 0x40], rax
lea rax, [rbp + 0x38]
mov qword [rbp + 0x70], rax
lea rcx, [rbp + 0x38]
call fcn.14024e048
mov r14, qword [rbx]
mov qword [rsp + 0x68], r14
mov rax, qword [rbx + 8]
mov qword [rbp - 0x70], rax
cmp r14, rax
je 0x140350967
lea r13, [0x1403cb630]
or r15, 0xffffffffffffffff
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x78], r12
call fcn.1400c948c
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r12
call fcn.140144f6c
mov qword [rsp + 0x50], rax
mov rcx, qword [r14]
add rcx, 0x60
cmp qword [rcx + 0x18], 8
jb 0x14035030a
mov rcx, qword [rcx]
mov r8d, 0x105
lea rdx, [rbp + 0x1d0]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
test eax, eax
jne 0x1403503c9
call fcn.1400550c0
mov r10, qword [rax + 8]
cmp dword [r10], 3
jbe 0x140350428
lea rax, str.Failed_to_expand_application_path_for_system_account
mov qword [rbp + 0x1b0], rax
mov qword [rbp + 0x1b8], WSAStartup
mov rax, qword [r14]
add rax, 0x60
cmp qword [rax + 0x18], 8
jb 0x140350368
mov rax, qword [rax]
mov rdx, r13
mov rcx, r12
test rax, rax
je 0x140350383
mov rdx, rax
mov rcx, r15
inc rcx
cmp word [rax + rcx*2], r12w
jne 0x140350379
mov qword [rbp + 0x1c0], rdx
lea eax, [rcx*2 + 2]
mov dword [rbp + 0x1c8], eax
mov dword [rbp + 0x1cc], r12d
lea rax, [rbp + 0x190]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x14048dfb4]
mov rcx, r10
call fcn.140001208
jmp 0x140350428
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x20], r12
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], r12w
mov rdx, r13
lea rcx, [rbp - 0x30]
call fcn.140055574
nop
mov qword [rbp], r12
mov qword [rbp + 8], 7
mov word [rbp - 0x10], r12w
lea rdx, [rbp + 0x1d0]
lea rcx, [rbp - 0x10]
call fcn.140055574
nop
lea r9, [rbp - 0x30]
lea r8, [rbp - 0x10]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.14035012c
mov rdi, qword [rbp - 0x48]
mov rsi, qword [rbp - 0x40]
jmp 0x1403506aa
mov rdx, qword [r14]
add rdx, 0x60
cmp qword [rdx + 0x18], 8
jb 0x140350446
mov rdx, qword [rdx]
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x140350454
mov rcx, qword [rax]
jmp 0x140350457
mov rcx, r12
mov r9d, 0x105
lea r8, [rbp + 0x1d0]
call qword [sym.imp.USERENV.dll_ExpandEnvironmentStringsForUserW]
nop dword [rax + rax]
test eax, eax
jne 0x140350582
call fcn.1400550c0
mov rbx, qword [rax + 8]
cmp dword [rbx], 3
jbe 0x1403506a6
lea rax, str.Failed_to_expand_application_path
mov qword [rbp + 0x100], rax
mov qword [rbp + 0x108], VarR8FromUI1
mov rax, qword [r14]
add rax, 0x60
cmp qword [rax + 0x18], 8
jb 0x1403504b4
mov rax, qword [rax]
mov rdx, r13
mov rcx, r12
test rax, rax
je 0x1403504cf
mov rdx, rax
mov rcx, r15
inc rcx
cmp word [rax + rcx*2], r12w
jne 0x1403504c5
mov qword [rbp + 0x110], rdx
lea eax, [rcx*2 + 2]
mov dword [rbp + 0x118], eax
mov dword [rbp + 0x11c], r12d
mov rax, qword [rdi]
cmp qword [rax + 0x18], 8
jb 0x1403504f7
mov rax, qword [rax]
mov rdx, r13
mov rcx, r12
test rax, rax
je 0x140350512
mov rdx, rax
mov rcx, r15
inc rcx
cmp word [rax + rcx*2], r12w
jne 0x140350508
mov qword [rbp + 0x120], rdx
lea eax, [rcx*2 + 2]
mov dword [rbp + 0x128], eax
mov dword [rbp + 0x12c], r12d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov dword [rsp + 0x60], eax
lea rax, [rsp + 0x60]
mov qword [rbp + 0x130], rax
mov qword [rbp + 0x138], 4
lea rax, [rbp + 0xe0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 6
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x14048e136]
mov rcx, rbx
call fcn.140001208
jmp 0x1403506a6
call fcn.1400550c0
mov r10, qword [rax + 8]
cmp dword [r10], 4
jbe 0x140350650
lea rax, str.Application_path_expansion
mov qword [rbp + 0x160], rax
mov qword [rbp + 0x168], 0x36
lea rcx, [rbp + 0x1d0]
mov rax, r15
inc rax
cmp word [rcx + rax*2], r12w
jne 0x1403505b8
lea rcx, [rbp + 0x1d0]
mov qword [rbp + 0x170], rcx
lea eax, [rax*2 + 2]
mov dword [rbp + 0x178], eax
mov dword [rbp + 0x17c], r12d
mov rax, qword [rdi]
cmp qword [rax + 0x18], 8
jb 0x1403505f1
mov rax, qword [rax]
mov rdx, r13
mov rcx, r12
test rax, rax
je 0x14035060c
mov rdx, rax
mov rcx, r15
inc rcx
cmp word [rax + rcx*2], r12w
jne 0x140350602
mov qword [rbp + 0x180], rdx
lea eax, [rcx*2 + 2]
mov dword [rbp + 0x188], eax
mov dword [rbp + 0x18c], r12d
lea rax, [rbp + 0x140]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 5
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x14048dfef]
mov rcx, r10
call fcn.140001208
lea rax, [rbp + 0x78]
mov qword [rbp - 0x68], rax
mov r8, qword [rdi]
lea rdx, [0x1403e82f4]
lea rcx, [rbp + 0x78]
call fcn.1400a88b0
mov rbx, rax
mov qword [rbp + 0x20], r12
mov qword [rbp + 0x28], 7
mov word [rbp + 0x10], r12w
lea rdx, [rbp + 0x1d0]
lea rcx, [rbp + 0x10]
call fcn.140055574
nop
mov r9, rbx
lea r8, [rbp + 0x10]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.14035012c
add rdi, 0x20
cmp rdi, rsi
jne 0x140350435
mov rdi, qword [rsp + 0x70]
mov rbx, qword [rdi]
cmp rbx, rdi
je 0x140350916
mov r13, qword [r14]
mov ecx, 0xb8
call fcn.140356b9c
mov qword [rbp - 0x60], rax
mov ecx, 1
mov dword [rax + 8], ecx
mov dword [rax + 0xc], ecx
lea rcx, vtable.std::_Ref_count_obj_struct_sense::Common::AllowRule_.0
mov qword [rax], rcx
lea r12, [rax + 0x10]
mov qword [rbp - 0x68], r12
xor eax, eax
mov qword [r12 + 0x10], rax
lea edx, [rax + 7]
mov qword [r12 + 0x18], rdx
mov word [r12], ax
mov qword [r12 + 0x30], rax
mov qword [r12 + 0x38], rdx
mov word [r12 + 0x20], ax
mov qword [r12 + 0x50], rax
mov qword [r12 + 0x58], rdx
mov word [r12 + 0x40], ax
lea rcx, [r12 + 0x60]
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], rdx
mov word [rcx], ax
lea rsi, [r12 + 0x80]
mov qword [rsi + 0x10], rax
mov qword [rsi + 0x18], rdx
mov word [rsi], ax
lea rdx, [r13 + 0x60]
call fcn.14006fe84
lea rdx, [r13 + 0x80]
mov rcx, rsi
call fcn.14006fe84
mov al, byte [r13 + 0xa0]
mov byte [r12 + 0xa0], al
mov rdx, r13
mov rcx, r12
call fcn.14006fe84
lea rdx, [r13 + 0x20]
lea rcx, [r12 + 0x20]
call fcn.14006fe84
lea rdx, [r13 + 0x40]
lea rcx, [r12 + 0x40]
call fcn.14006fe84
nop
or dword [rsp + 0x30], 1
mov qword [rbp - 0x80], r12
mov r15, qword [rbp - 0x60]
mov qword [rbp - 0x78], r15
lea rcx, [r12 + 0x60]
lea r14, [rbx + 0x20]
mov rdx, r14
call fcn.14006fe84
mov rdx, r14
lea rcx, [rsp + 0x50]
call fcn.140309950
mov r8, rax
mov rdx, r12
lea rcx, [rbp + 0x98]
call fcn.14007a424
mov rdx, rax
mov rcx, r12
call fcn.140085570
lea rcx, [rbp + 0x98]
call fcn.140055f70
mov rdx, r14
lea rcx, [rsp + 0x50]
call fcn.140309950
mov r8, rax
lea rdx, [r12 + 0x20]
lea rcx, [rbp + 0xb8]
call fcn.14007a424
mov rdx, rax
lea rcx, [r12 + 0x20]
call fcn.140085570
lea rcx, [rbp + 0xb8]
call fcn.140055f70
mov rcx, qword [rsp + 0x40]
cmp qword [rsp + 0x48], rcx
setne al
xor r12d, r12d
test al, al
je 0x140350865
mov qword [rcx], r12
mov qword [rcx + 8], r12
lock inc dword [r15 + 8]
mov rax, qword [rbp - 0x80]
mov rsi, qword [rsp + 0x40]
mov qword [rsi], rax
mov qword [rcx + 8], r15
add rsi, 0x10
mov qword [rsp + 0x40], rsi
jmp 0x14035087b
lea r8, [rbp - 0x80]
mov rdx, rcx
lea rcx, [rsp + 0x38]
call fcn.1400c0c18
mov rsi, qword [rsp + 0x40]
mov rcx, qword [rbp - 0x78]
or r15, 0xffffffffffffffff
test rcx, rcx
je 0x1403508cb
mov eax, r15d
lock xadd dword [rcx + 8], eax
add eax, r15d
jne 0x1403508c6
mov rsi, qword [rbp - 0x78]
mov rax, qword [rsi]
mov rcx, rsi
mov rax, qword [rax]
call qword [str.p76_]
mov eax, r15d
lock xadd dword [rsi + 0xc], eax
add eax, r15d
jne 0x1403508c6
mov rcx, qword [rbp - 0x78]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [str.p76_]
mov rsi, qword [rsp + 0x40]
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], r12b
je 0x1403508f3
mov rax, qword [rbx + 8]
jmp 0x1403508e8
cmp rbx, qword [rax + 0x10]
jne 0x1403508ee
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], r12b
je 0x1403508db
mov rbx, rax
jmp 0x1403508ff
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], r12b
je 0x1403508f3
cmp rbx, rdi
mov r14, qword [rsp + 0x68]
jne 0x1403506c4
lea r13, [0x1403cb630]
jmp 0x14035091b
mov rsi, qword [rsp + 0x40]
lea rcx, [rsp + 0x50]
call fcn.1401f2f74
mov edx, 0x60
mov rcx, qword [rsp + 0x50]
call fcn.140356b5c
nop
lea rcx, [rsp + 0x70]
call fcn.1400c93f0
mov edx, 0x40
mov rcx, qword [rsp + 0x70]
call fcn.140356b5c
add r14, 0x10
mov qword [rsp + 0x68], r14
cmp r14, qword [rbp - 0x70]
jne 0x1403502d1
mov rbx, qword [rbp - 0x58]
jmp 0x14035096c
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
cmp rbx, rax
je 0x140350987
mov r8, rsi
mov rdx, qword [rsp + 0x38]
mov rcx, rbx
call fcn.14009212c
nop
lea rcx, [rbp - 0x48]
call fcn.1402d5ab8
nop
lea rcx, [rsp + 0x38]
call fcn.14005d9ac
mov rcx, qword [rbp + 0x3e0]
xor rcx, rsp
call fcn.140356560
lea r11, [rsp + 0x4f0]
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