Function at 0x140045310
Capabilities:
Query environment variable

Disassembly:
push rdi
push r12
push r14
push r15
sub rsp, 0x78
mov rax, qword [0x1400981e8]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor r14d, r14d
mov r15, r8
mov r12, rdx
mov rdi, rcx
test r8, r8
je 0x140045340
mov word [rdx], r14w
lea rdx, str.System
call fcn.140056d68
test eax, eax
jne 0x140045365
mov r8, rdi
mov rdx, r15
mov rcx, r12
call fcn.140048b10
mov al, 1
jmp 0x1400455db
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 0x1400453cd
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.1400605c8
test eax, eax
je 0x140045508
inc esi
add r14, 0x218
cmp esi, 1
jb 0x1400453a0
mov dword [rsp + 0x44], ebx
xor r14d, r14d
mov r8d, 8
lea rdx, str.Device_
mov rcx, rdi
call fcn.140057430
test eax, eax
jne 0x1400455c2
lea r8d, [rax + 0xe]
mov dword [rsp + 0x48], r14d
lea rdx, [rdi + 0x10]
lea rcx, str.HarddiskVolume
call fcn.140057430
test eax, eax
jne 0x14004546e
lea rcx, [rdi + 0x2c]
lea r8, [rsp + 0x48]
lea rdx, [0x14008a960]
call fcn.140042620
cmp eax, 1
jne 0x14004546e
mov r9d, dword [rsp + 0x48]
lea eax, [r9 - 1]
cmp eax, 0x17
ja 0x14004546e
add r9d, 0x42
mov word [rsp + 0x50], r14w
lea r8, [0x14008af58]
mov edx, 3
lea rcx, [rsp + 0x50]
call fcn.14003dfd0
cmp eax, ebx
je 0x14004546e
mov r9, r15
lea rdx, [rsp + 0x50]
mov r8, r12
mov rcx, rdi
call fcn.140044e30
test al, al
jne 0x1400455b3
mov r8d, 8
lea rdx, str.Device_
mov rcx, rdi
call fcn.140057430
test eax, eax
jne 0x1400455f4
lea r8d, [rax + 4]
lea rdx, [rdi + 0x10]
lea rcx, str.Mup_
call fcn.140057430
test eax, eax
je 0x1400454f5
mov r8d, 0x11
lea rdx, [rdi + 0x10]
lea rcx, str.LanmanRedirector_
call fcn.140057430
test eax, eax
je 0x1400454f5
mov r8d, 6
lea rdx, [rdi + 0x10]
lea rcx, str.NwRdr_
call fcn.140057430
test eax, eax
je 0x1400454f5
mov r8d, 0x12
lea rdx, [rdi + 0x10]
lea rcx, str.NetWareRedirector_
call fcn.140057430
test eax, eax
jne 0x1400455f4
mov r8, r15
mov rdx, r12
mov rcx, rdi
call fcn.140045160
jmp 0x1400455c4
mov dword [rsp + 0x44], esi
cmp esi, ebx
je 0x1400453ca
movsxd rax, esi
imul rbx, rax, 0x218
cmp byte [rbx + r13 + 0x10], 0
lea rsi, [rbx + r13]
jne 0x14004554f
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 0x1400455b7
mov byte [rsi + 0x10], 1
lea r8, [r13 + 0x12]
add r8, rbx
cmp word [r8], 0
je 0x1400455c2
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 0x140045570
nop dword [rax + rax]
inc rbx
cmp word [rdi + rbx*2 + 2], 0
jne 0x140045580
inc rax
add rax, rbx
cmp rax, r15
ja 0x1400455c2
lfence
mov rdx, r15
mov rcx, r12
call fcn.140048b10
lea r8, [rdi + 2]
mov rdx, r15
mov rcx, r12
call fcn.140048b80
mov al, 1
jmp 0x1400455c4
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.1400498a0
add rsp, 0x78
pop r15
pop r14
pop r12
pop rdi
ret
mov edx, 0x5c
lea rcx, [rdi + 0x10]
call fcn.14004b660
mov r8d, 8
lea rdx, str.Harddisk
lea rcx, [rdi + 0x10]
mov rsi, rax
call fcn.140057430
test eax, eax
jne 0x14004566c
cmp word [rdi + 0x22], 0x5c
jne 0x14004562c
lea rcx, [rdi + 0x24]
jmp 0x14004565f
lea rcx, [rdi + 0x20]
mov r8d, 9
lea rdx, str.DmVolumes
call fcn.140057430
test eax, eax
jne 0x14004566c
lea edx, [rax + 0x5c]
lea rcx, [rdi + 0x34]
call fcn.14004b660
test rax, rax
je 0x1400455c2
lea rcx, [rax + 2]
mov edx, 0x5c
call fcn.14004b660
mov rsi, rax
test rsi, rsi
jne 0x140045684
mov rax, rbx
cmp word [rdi + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140045674
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 [0x140098130]
mov qword [rsp + 0x50], rax
cmp rax, rbx
je 0x140045846
lea rcx, [rbp*2 + 6]
mov dword [rsp + 0x4c], r14d
call fcn.14004fe74
mov ecx, 0x200
mov r13, rax
call fcn.14004fe74
mov r14, rax
test r13, r13
je 0x140045828
test rax, rax
je 0x140045828
movzx ecx, bp
lea rdx, [rbp + 1]
add cx, cx
mov r8, rdi
mov word [r13], cx
lea rcx, [r13 + 2]
call fcn.140048b10
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 [0x140098138]
test eax, eax
jne 0x1400457cf
cmp dword [r14], eax
je 0x14004582d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x14004582d
mov edi, dword [r14]
mov rcx, r14
call fcn.14004fe60
mov ecx, edi
call fcn.14004fe74
mov r14, rax
test rax, rax
je 0x14004582d
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 [0x140098138]
test eax, eax
je 0x14004582d
lea r8, [r14 + 4]
mov rax, rbx
nop word [rax + rax]
inc rax
cmp word [r8 + rax*2], 0
jne 0x1400457e0
nop dword [rax + rax]
inc rbx
cmp word [rsi + rbx*2], 0
jne 0x1400457f0
inc rax
add rax, rbx
cmp r15, rax
jb 0x14004582d
lfence
mov rdx, r15
mov rcx, r12
call fcn.140048b10
mov r8, rsi
mov rdx, r15
mov rcx, r12
call fcn.140048b80
mov byte [rsp + 0x40], 1
jmp 0x14004582d
mov rbp, qword [rsp + 0x50]
mov rcx, r14
call fcn.14004fe60
mov rcx, r13
call fcn.14004fe60
mov rcx, rbp
call qword [0x140098118]
movzx eax, byte [rsp + 0x40]
jmp 0x1400455c4