Function at 0x180011b10
Capabilities:
Get disk information
Query environment variable

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x9e8]
sub rsp, 0xac0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1800c4650]
xor rax, rsp
mov qword [rbp + 0x9b0], rax
mov rsi, rcx
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
dec rcx
je 0x180011fa9
xor r15d, r15d
mov word [rsp + 0x60], r15w
xor edx, edx
mov r8d, 0x410
lea rcx, [rsp + 0x62]
call fcn.180034650
mov r8d, 0x208
mov rdx, rsi
lea rcx, [rsp + 0x60]
call fcn.1800330b0
cmp word [rsp + 0x60], 0x5c
jne 0x180011f2a
mov word [rbp + 0x380], r15w
xor edx, edx
mov r8d, 0x410
lea rcx, [rbp + 0x382]
call fcn.180034650
lea r8d, [r15 + 0xc]
lea rdx, str.SystemRoot_
lea rcx, [rsp + 0x60]
call fcn.180032a98
test eax, eax
jne 0x180011c66
mov ecx, r15d
lea rdx, str._SystemRoot_
nop dword [rax + rax]
movzx eax, word [rcx + rdx]
mov word [rbp + rcx + 0x380], ax
add rcx, 2
test ax, ax
jne 0x180011bf0
mov eax, 0x5c
mov word [rbp + 0x398], ax
mov rcx, r15
nop word [rax + rax]
movzx eax, word [rsp + rcx + 0x78]
mov word [rbp + rcx + 0x39a], ax
add rcx, 2
test ax, ax
jne 0x180011c20
mov r8d, 0x209
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x380]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x180011fa9
cmp eax, 0x104
jb 0x180011f2a
jmp 0x180011fa9
mov r8d, 4
lea rdx, str.___
mov rcx, rsi
call fcn.180032a98
test eax, eax
jne 0x180011cb2
mov r8d, 0x208
lea rdx, [rsp + 0x68]
lea rcx, [rbp + 0x380]
call fcn.1800330b0
mov r8d, 0x208
lea rdx, [rbp + 0x380]
lea rcx, [rsp + 0x60]
call fcn.1800330b0
jmp 0x180011f2a
mov r8d, reloc.WS2_32.dll_recv
lea rdx, str.DeviceHarddisk
mov rcx, rsi
call fcn.180032a98
test eax, eax
jne 0x180011dfa
mov r8d, 0x208
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x380]
call fcn.1800330b0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp + 0x380]
repne scasw ax, word [rdi]
not rcx
lea r13, [rcx - 1]
lea rcx, [rsp + 0x38]
call fcn.18004db80
nop
lea rcx, [rsp + 0x20]
call fcn.18004db80
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x38]
call fcn.1800122d0
mov edi, r15d
cmp dword [rsp + 0x28], r15d
jle 0x180011de0
mov rbx, r15
nop word [rax + rax]
mov rcx, qword [rsp + 0x20]
mov rax, qword [rbx + rcx]
mov r14d, dword [rax - 8]
mov r8d, r14d
lea rdx, [rbp + 0x380]
mov rcx, rax
call fcn.180032a98
test eax, eax
jne 0x180011d78
movzx eax, word [rbp + r14*2 + 0x380]
cmp ax, 0x5c
je 0x180011d86
cmp ax, 0x2f
je 0x180011d86
inc edi
add rbx, 8
cmp edi, dword [rsp + 0x28]
jge 0x180011de0
jmp 0x180011d40
sub r13d, r14d
add r13d, 2
cmp r13d, 0x104
jae 0x180011de0
movsxd rcx, edi
mov rax, qword [rsp + 0x38]
mov r8d, 2
mov rdx, qword [rax + rcx*8]
lea rcx, [rsp + 0x60]
call fcn.1800330b0
lea rcx, [rbp + r14*2 + 0x380]
lea rdx, [rsp + 0x64]
sub rdx, rcx
nop word [rax + rax]
movzx eax, word [rcx]
mov word [rdx + rcx], ax
add rcx, 2
test ax, ax
jne 0x180011dd0
lea rcx, [rsp + 0x20]
call fcn.180024cf0
nop
lea rcx, [rsp + 0x38]
call fcn.180024cf0
jmp 0x180011f2a
mov r8d, reloc.WS2_32.dll_socket
lea rdx, str.DeviceTSafeDiskVolume
mov rcx, rsi
call fcn.180032a98
test eax, eax
jne 0x180011f2a
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
sub rcx, 7
cmp rcx, 0x208
ja 0x180011e5f
xor edx, edx
mov r8d, 0x412
lea rcx, [rsp + 0x60]
call fcn.180034650
lea r9, [rsi + 0x30]
movzx r8d, word [rsi + 0x2e]
lea rdx, str._TSD_VOLUME__c:_s
lea rcx, [rsp + 0x60]
call fcn.18000eb60
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
dec rcx
cmp rcx, 0x19
jbe 0x180011f2a
movzx eax, word [rsi + 0x30]
cmp ax, 0x5c
je 0x180011e8f
cmp ax, 0x2f
jne 0x180011f2a
mov eax, dword [0x1800a1454]
mov dword [rsp + 0x58], eax
movzx eax, word [0x1800a1458]
mov word [rsp + 0x5c], ax
movzx eax, word [rsi + 0x2e]
mov word [rsp + 0x58], ax
cmp ax, 0x43
jb 0x180011eba
cmp ax, 0x5a
jbe 0x180011ec4
sub ax, 0x63
cmp ax, 0x17
ja 0x180011f2a
mov r8d, 0x208
lea rdx, [rbp + 0x380]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
dec eax
cmp eax, 0x206
ja 0x180011f2a
mov r8d, 0x18
lea rdx, [rbp + 0x380]
mov rcx, rsi
call fcn.180032a98
test eax, eax
jne 0x180011f2a
xor edx, edx
mov r8d, 0x412
lea rcx, [rsp + 0x60]
call fcn.180034650
movzx r8d, word [rsi + 0x2e]
lea r9, [rsi + 0x30]
lea rdx, str._c:_s
lea rcx, [rsp + 0x60]
call fcn.18000eb60
lea rcx, [rsp + 0x60]
call fcn.180011fe0
mov word [rbp + 0x7a0], r15w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x7a2]
call fcn.180034650
cmp qword [0x1800dfe00], 0
je 0x180011f96
mov edx, 0x7e
lea rcx, [rsp + 0x60]
call fcn.180033740
test rax, rax
je 0x180011f96
mov r8d, 0x104
lea rdx, [rbp + 0x7a0]
lea rcx, [rsp + 0x60]
call qword [0x1800dfe00]
dec eax
cmp eax, 0x102
lea rdx, [rbp + 0x7a0]
jbe 0x180011f9b
lea rdx, [rsp + 0x60]
mov r8d, 0x103
mov rcx, rsi
call fcn.1800330b0
mov rcx, qword [rbp + 0x9b0]
xor rcx, rsp
call fcn.1800327a0
lea r11, [rsp + 0xac0]
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