Function at 0x1401a4df0
Capabilities:
Query environment variable

Disassembly:
push rdi
push r12
push r14
push r15
sub rsp, 0x78
mov rax, qword [0x14024fa28]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor r14d, r14d
mov r15, r8
mov r12, rdx
mov rdi, rcx
test r8, r8
je 0x1401a4e20
mov word [rdx], r14w
lea rdx, str.System
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x1401a4e46
mov r8, rdi
mov rdx, r15
mov rcx, r12
call fcn.1401aec20
mov al, 1
jmp 0x1401a50cb
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 0x1401a4eae
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 qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
test eax, eax
je 0x1401a4ff0
inc esi
add r14, 0x218
cmp esi, 1
jb 0x1401a4e80
mov dword [rsp + 0x44], ebx
xor r14d, r14d
mov r8d, 8
lea rdx, str.Device_
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
jne 0x1401a50b2
lea r8d, [rax + 0xe]
mov dword [rsp + 0x48], r14d
lea rdx, [rdi + 0x10]
lea rcx, str.HarddiskVolume
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
jne 0x1401a4f51
lea rcx, [rdi + 0x2c]
lea r8, [rsp + 0x48]
lea rdx, [0x1401fa058]
call fcn.140035fe0
cmp eax, 1
jne 0x1401a4f51
mov r9d, dword [rsp + 0x48]
lea eax, [r9 - 1]
cmp eax, 0x17
ja 0x1401a4f51
add r9d, 0x42
mov word [rsp + 0x50], r14w
lea r8, [0x14020cf68]
mov edx, 3
lea rcx, [rsp + 0x50]
call fcn.140040350
cmp eax, ebx
je 0x1401a4f51
mov r9, r15
lea rdx, [rsp + 0x50]
mov r8, r12
mov rcx, rdi
call fcn.1401a4900
test al, al
jne 0x1401a50a3
mov r8d, 8
lea rdx, str.Device_
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
jne 0x1401a50e4
lea r8d, [rax + 4]
lea rdx, [rdi + 0x10]
lea rcx, str.Mup_
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
je 0x1401a4fdd
mov r8d, reloc.WS2_32.dll_recvfrom
lea rdx, [rdi + 0x10]
lea rcx, str.LanmanRedirector_
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
je 0x1401a4fdd
mov r8d, 6
lea rdx, [rdi + 0x10]
lea rcx, str.NwRdr_
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
je 0x1401a4fdd
mov r8d, reloc.WS2_32.dll_select
lea rdx, [rdi + 0x10]
lea rcx, str.NetWareRedirector_
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
jne 0x1401a50e4
mov r8, r15
mov rdx, r12
mov rcx, rdi
call fcn.1401a4c30
jmp 0x1401a50b4
mov dword [rsp + 0x44], esi
cmp esi, ebx
je 0x1401a4eab
movsxd rax, esi
imul rbx, rax, 0x218
cmp byte [rbx + r13 + 0x10], 0
lea rsi, [rbx + r13]
jne 0x1401a5037
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 0x1401a50a7
mov byte [rsi + 0x10], 1
lea r8, [r13 + 0x12]
add r8, rbx
cmp word [r8], 0
je 0x1401a50b2
mov rax, qword [rbx + r13 + 8]
mov rbx, 0xffffffffffffffff
lea rdi, [rdi + rax*2]
mov rax, rbx
nop dword [rax + rax]
inc rax
cmp word [r8 + rax*2], 0
jne 0x1401a5060
nop dword [rax + rax]
inc rbx
cmp word [rdi + rbx*2 + 2], 0
jne 0x1401a5070
inc rax
add rax, rbx
cmp rax, r15
ja 0x1401a50b2
lfence
mov rdx, r15
mov rcx, r12
call fcn.1401aec20
lea r8, [rdi + 2]
mov rdx, r15
mov rcx, r12
call fcn.1401aed20
mov al, 1
jmp 0x1401a50b4
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.1401c5190
add rsp, 0x78
pop r15
pop r14
pop r12
pop rdi
ret
mov edx, 0x5c
lea rcx, [rdi + 0x10]
call qword [sym.imp.VCRUNTIME140.dll_wcschr]
mov r8d, 8
lea rdx, str.Harddisk
lea rcx, [rdi + 0x10]
mov rsi, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
jne 0x1401a5161
cmp word [rdi + 0x22], 0x5c
jne 0x1401a511e
lea rcx, [rdi + 0x24]
jmp 0x1401a5153
lea rcx, [rdi + 0x20]
mov r8d, 9
lea rdx, str.DmVolumes
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
jne 0x1401a5161
lea edx, [rax + 0x5c]
lea rcx, [rdi + 0x34]
call qword [sym.imp.VCRUNTIME140.dll_wcschr]
test rax, rax
je 0x1401a50b2
lea rcx, [rax + 2]
mov edx, 0x5c
call qword [sym.imp.VCRUNTIME140.dll_wcschr]
mov rsi, rax
test rsi, rsi
jne 0x1401a5180
mov rax, rbx
nop dword [rax]
cmp word [rdi + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x1401a5170
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 [case.0x1401ba071.53]
mov qword [rsp + 0x50], rax
cmp rax, rbx
je 0x1401a5348
lea rcx, [rbp*2 + 6]
mov dword [rsp + 0x4c], r14d
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ecx, 0x200
mov r13, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
test r13, r13
je 0x1401a5328
test rax, rax
je 0x1401a5328
movzx ecx, bp
lea rdx, [rbp + 1]
add cx, cx
mov r8, rdi
mov word [r13], cx
lea rcx, [r13 + 2]
call fcn.1401aec20
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 [case.0x1401ba071.52]
test eax, eax
jne 0x1401a52cf
cmp dword [r14], eax
je 0x1401a532d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x1401a532d
mov edi, dword [r14]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
test rax, rax
je 0x1401a532d
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 [case.0x1401ba071.52]
test eax, eax
je 0x1401a532d
lea r8, [r14 + 4]
mov rax, rbx
nop word [rax + rax]
inc rax
cmp word [r8 + rax*2], 0
jne 0x1401a52e0
nop dword [rax + rax]
inc rbx
cmp word [rsi + rbx*2], 0
jne 0x1401a52f0
inc rax
add rax, rbx
cmp r15, rax
jb 0x1401a532d
lfence
mov rdx, r15
mov rcx, r12
call fcn.1401aec20
mov r8, rsi
mov rdx, r15
mov rcx, r12
call fcn.1401aed20
mov byte [rsp + 0x40], 1
jmp 0x1401a532d
mov rbp, qword [rsp + 0x50]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rbp
call qword [case.0x1401b9e8b.6]
movzx eax, byte [rsp + 0x40]
jmp 0x1401a50b4