Function at 0x140042320
Capabilities:
Query environment variable

Disassembly:
push rdi
push r12
push r14
push r15
sub rsp, 0x78
mov rax, qword [0x1400962f8]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor r14d, r14d
mov r15, r8
mov r12, rdx
mov rdi, rcx
test r8, r8
je 0x140042350
mov word [rdx], r14w
lea rdx, str.System
call fcn.140054fd8
test eax, eax
jne 0x140042375
mov r8, rdi
mov rdx, r15
mov rcx, r12
call fcn.140045c10
mov al, 1
jmp 0x1400425eb
cmp word [rdi], 0x5c
mov qword [rsp + 0xb8], rbx
mov rbx, 0xffffffffffffffff
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x60], r13
jne 0x1400423dd
lea r13, str.SystemRoot
mov esi, r14d
mov r14, r13
nop word [rax + rax]
mov r8, qword [r14 + 8]
lea rdx, [rdi + 2]
mov rcx, qword [r14]
call fcn.14005e838
test eax, eax
je 0x140042518
inc esi
add r14, 0x218
cmp esi, 1
jb 0x1400423b0
mov dword [rsp + 0x44], ebx
xor r14d, r14d
mov r8d, 8
lea rdx, str.Device_
mov rcx, rdi
call fcn.1400556a0
test eax, eax
jne 0x1400425d2
lea r8d, [rax + 0xe]
mov dword [rsp + 0x48], r14d
lea rdx, [rdi + 0x10]
lea rcx, str.HarddiskVolume
call fcn.1400556a0
test eax, eax
jne 0x14004247e
lea rcx, [rdi + 0x2c]
lea r8, [rsp + 0x48]
lea rdx, [0x140089040]
call fcn.14003f6a0
cmp eax, 1
jne 0x14004247e
mov r9d, dword [rsp + 0x48]
lea eax, [r9 - 1]
cmp eax, 0x17
ja 0x14004247e
add r9d, 0x42
mov word [rsp + 0x50], r14w
lea r8, [0x140089638]
mov edx, 3
lea rcx, [rsp + 0x50]
call fcn.14003b2f0
cmp eax, ebx
je 0x14004247e
mov r9, r15
lea rdx, [rsp + 0x50]
mov r8, r12
mov rcx, rdi
call fcn.140041e40
test al, al
jne 0x1400425c3
mov r8d, 8
lea rdx, str.Device_
mov rcx, rdi
call fcn.1400556a0
test eax, eax
jne 0x140042604
lea r8d, [rax + 4]
lea rdx, [rdi + 0x10]
lea rcx, str.Mup_
call fcn.1400556a0
test eax, eax
je 0x140042505
mov r8d, 0x11
lea rdx, [rdi + 0x10]
lea rcx, str.LanmanRedirector_
call fcn.1400556a0
test eax, eax
je 0x140042505
mov r8d, 6
lea rdx, [rdi + 0x10]
lea rcx, str.NwRdr_
call fcn.1400556a0
test eax, eax
je 0x140042505
mov r8d, 0x12
lea rdx, [rdi + 0x10]
lea rcx, str.NetWareRedirector_
call fcn.1400556a0
test eax, eax
jne 0x140042604
mov r8, r15
mov rdx, r12
mov rcx, rdi
call fcn.140042170
jmp 0x1400425d4
mov dword [rsp + 0x44], esi
cmp esi, ebx
je 0x1400423da
movsxd rax, esi
imul rbx, rax, 0x218
cmp byte [rbx + r13 + 0x10], 0
lea rsi, [rbx + r13]
jne 0x14004255f
mov rcx, qword [rbx + r13]
lea r14, [rbx + r13]
lea rdx, [r14 + 0x12]
mov r8d, 0x100
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xff
ja 0x1400425c7
mov byte [rsi + 0x10], 1
lea r8, [r13 + 0x12]
add r8, rbx
cmp word [r8], 0
je 0x1400425d2
mov rax, qword [rbx + r13 + 8]
mov rbx, 0xffffffffffffffff
lea rdi, [rdi + rax*2]
mov rax, rbx
inc rax
cmp word [r8 + rax*2], 0
jne 0x140042580
nop dword [rax + rax]
inc rbx
cmp word [rdi + rbx*2 + 2], 0
jne 0x140042590
inc rax
add rax, rbx
cmp rax, r15
ja 0x1400425d2
lfence
mov rdx, r15
mov rcx, r12
call fcn.140045c10
lea r8, [rdi + 2]
mov rdx, r15
mov rcx, r12
call fcn.140045c80
mov al, 1
jmp 0x1400425d4
xor ecx, ecx
mov word [r14 + 0x12], cx
mov byte [rsi + 0x10], 1
xor al, al
mov rsi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rbx, qword [rsp + 0xb8]
mov r13, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140047b10
add rsp, 0x78
pop r15
pop r14
pop r12
pop rdi
ret
mov edx, 0x5c
lea rcx, [rdi + 0x10]
call fcn.1400498d0
mov r8d, 8
lea rdx, str.Harddisk
lea rcx, [rdi + 0x10]
mov rsi, rax
call fcn.1400556a0
test eax, eax
jne 0x14004267c
cmp word [rdi + 0x22], 0x5c
jne 0x14004263c
lea rcx, [rdi + 0x24]
jmp 0x14004266f
lea rcx, [rdi + 0x20]
mov r8d, 9
lea rdx, str.DmVolumes
call fcn.1400556a0
test eax, eax
jne 0x14004267c
lea edx, [rax + 0x5c]
lea rcx, [rdi + 0x34]
call fcn.1400498d0
test rax, rax
je 0x1400425d2
lea rcx, [rax + 2]
mov edx, 0x5c
call fcn.1400498d0
mov rsi, rax
test rsi, rsi
jne 0x140042694
mov rax, rbx
cmp word [rdi + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140042684
lea rsi, [rdi + rax*2]
xor r9d, r9d
mov qword [rsp + 0x30], r14
mov rbp, rsi
mov dword [rsp + 0x28], 0x40
sub rbp, rdi
mov byte [rsp + 0x40], 0
mov edx, 0x80
sar rbp, 1
lea r8d, [r9 + 7]
mov dword [rsp + 0x20], 3
lea rcx, str..MountPointManager
call qword [0x140096148]
mov qword [rsp + 0x50], rax
cmp rax, rbx
je 0x140042856
lea rcx, [rbp*2 + 6]
mov dword [rsp + 0x4c], r14d
call fcn.14004e0e4
mov ecx, 0x200
mov r13, rax
call fcn.14004e0e4
mov r14, rax
test r13, r13
je 0x140042838
test rax, rax
je 0x140042838
movzx ecx, bp
lea rdx, [rbp + 1]
add cx, cx
mov r8, rdi
mov word [r13], cx
lea rcx, [r13 + 2]
call fcn.140045c10
xor ecx, ecx
lea eax, [rbp*2 + 4]
mov rbp, qword [rsp + 0x50]
mov r9d, eax
mov qword [rsp + 0x38], rcx
mov r8, r13
lea rcx, [rsp + 0x4c]
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x30], rcx
mov edx, 0x6d0030
mov dword [rsp + 0x28], 0x200
mov rcx, rbp
mov qword [rsp + 0x20], r14
call qword [0x140096140]
test eax, eax
jne 0x1400427df
cmp dword [r14], eax
je 0x14004283d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x14004283d
mov edi, dword [r14]
mov rcx, r14
call fcn.14004e0d0
mov ecx, edi
call fcn.14004e0e4
mov r14, rax
test rax, rax
je 0x14004283d
mov r9d, dword [rsp + 0x44]
xor eax, eax
mov qword [rsp + 0x38], rax
mov r8, r13
lea rax, [rsp + 0x4c]
mov edx, 0x6d0030
mov qword [rsp + 0x30], rax
mov rcx, rbp
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], r14
call qword [0x140096140]
test eax, eax
je 0x14004283d
lea r8, [r14 + 4]
mov rax, rbx
nop word [rax + rax]
inc rax
cmp word [r8 + rax*2], 0
jne 0x1400427f0
nop dword [rax + rax]
inc rbx
cmp word [rsi + rbx*2], 0
jne 0x140042800
inc rax
add rax, rbx
cmp r15, rax
jb 0x14004283d
lfence
mov rdx, r15
mov rcx, r12
call fcn.140045c10
mov r8, rsi
mov rdx, r15
mov rcx, r12
call fcn.140045c80
mov byte [rsp + 0x40], 1
jmp 0x14004283d
mov rbp, qword [rsp + 0x50]
mov rcx, r14
call fcn.14004e0d0
mov rcx, r13
call fcn.14004e0d0
mov rcx, rbp
call qword [0x140096008]
movzx eax, byte [rsp + 0x40]
jmp 0x1400425d4