Function at 0x140113520
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x140148058]
xor rax, rsp
mov qword [rbp + 0x170], rax
xor r12d, r12d
mov r14, rcx
mov esi, r8d
mov rdi, rdx
lea rcx, [rsp + 0x62]
mov r8d, 0x206
xor edx, edx
mov r15d, r9d
mov ebx, 0x80070057
mov qword [rsp + 0x48], r12
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x44], r12d
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x50], r12
mov word [rsp + 0x60], r12w
call sub.msvcrt.dll_memset
test r14, r14
jne 0x1401135c7
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x14011388a
test byte [rcx + 0x1c], 1
je 0x14011388a
lea edx, [r12 + 0x6a]
jmp 0x1401136e8
test rdi, rdi
jne 0x1401135f5
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x14011388a
test byte [rcx + 0x1c], 1
je 0x14011388a
lea edx, [rdi + 0x6b]
jmp 0x1401136e8
mov ebx, 0x104
lea rdx, [rsp + 0x60]
lea rcx, [0x140001598]
mov r8d, ebx
call sub.KERNEL32.dll_ExpandEnvironmentStringsW
dec eax
cmp eax, 0x103
ja 0x14011382d
lea r9, [rsp + 0x60]
lea r8, [0x1400014f0]
mov edx, ebx
mov rcx, rdi
mov qword [rsp + 0x20], r14
call fcn.1400780b0
mov ebx, eax
test eax, eax
jns 0x140113667
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x14011387b
test byte [rcx + 0x1c], 1
je 0x14011387b
mov edx, WSAGetLastError
jmp 0x140113868
xor edx, edx
mov rcx, rdi
call fcn.140110938
mov ebx, eax
test eax, eax
jns 0x1401136a2
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x14011387b
test byte [rcx + 0x1c], 1
je 0x14011387b
mov edx, WSAGetLastError
jmp 0x140113868
test esi, esi
je 0x1401137dc
lea r8, [rsp + 0x48]
mov edx, r15d
xor ecx, ecx
mov ebx, 0x8007000c
call fcn.140112930
test eax, eax
jne 0x1401136fd
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x14011387b
test byte [rcx + 0x1c], 1
je 0x14011387b
mov edx, reloc.WSOCK32.dll_WSAGetLastError
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400015b8]
call fcn.14000fcb0
jmp 0x14011387b
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x44]
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorDacl]
test eax, eax
je 0x1401137e4
cmp dword [rsp + 0x40], r12d
je 0x1401137e4
mov rcx, qword [rsp + 0x48]
lea r8, [rsp + 0x44]
lea rdx, [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorOwner]
test eax, eax
jne 0x14011377d
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x14011387b
test byte [rcx + 0x1c], 1
je 0x14011387b
call sub.KERNEL32.dll_GetLastError
mov rcx, qword [0x140148ea8]
mov edx, 0x71
mov r9d, eax
jmp 0x14011386b
mov rax, qword [rsp + 0x58]
mov r9, qword [rsp + 0x50]
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], rax
mov edx, 1
mov r8d, 0x80000005
mov rcx, rdi
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov r9d, eax
test eax, eax
je 0x1401137dc
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x14011387b
test byte [rcx + 0x1c], 1
je 0x14011387b
mov edx, 0x72
jmp 0x14011386b
mov ebx, r12d
jmp 0x14011387b
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x14011387b
test byte [rcx + 0x1c], 1
je 0x14011387b
call sub.KERNEL32.dll_GetLastError
mov rcx, qword [0x140148ea8]
mov r9d, dword [rsp + 0x40]
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400015b8]
mov edx, 0x70
mov dword [rsp + 0x20], eax
call fcn.140011e38
jmp 0x14011387b
call sub.KERNEL32.dll_GetLastError
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, 0x80004005
test ebx, ebx
cmovns ebx, eax
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x14011387b
test byte [rcx + 0x1c], 1
je 0x14011387b
mov edx, WSAGetLastError
mov r9d, ebx
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400015b8]
call fcn.14000fd64
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14011388a
call sub.KERNEL32.dll_LocalFree
mov eax, ebx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140001000
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret