Function at 0x180013090
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 [0x1800cb660]
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 0x180013529
xor r15d, r15d
mov word [rsp + 0x60], r15w
xor edx, edx
mov r8d, 0x410
lea rcx, [rsp + 0x62]
call fcn.180037550
mov r8d, 0x208
mov rdx, rsi
lea rcx, [rsp + 0x60]
call fcn.180035de4
cmp word [rsp + 0x60], 0x5c
jne 0x1800134aa
mov word [rbp + 0x380], r15w
xor edx, edx
mov r8d, 0x410
lea rcx, [rbp + 0x382]
call fcn.180037550
lea r8d, [r15 + 0xc]
lea rdx, str.SystemRoot_
lea rcx, [rsp + 0x60]
call fcn.180035998
test eax, eax
jne 0x1800131e6
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 0x180013170
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 0x1800131a0
mov r8d, 0x209
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x380]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x180013529
cmp eax, 0x104
jb 0x1800134aa
jmp 0x180013529
mov r8d, 4
lea rdx, str.___
mov rcx, rsi
call fcn.180035998
test eax, eax
jne 0x180013232
mov r8d, 0x208
lea rdx, [rsp + 0x68]
lea rcx, [rbp + 0x380]
call fcn.180035de4
mov r8d, 0x208
lea rdx, [rbp + 0x380]
lea rcx, [rsp + 0x60]
call fcn.180035de4
jmp 0x1800134aa
mov r8d, reloc.WS2_32.dll_recv
lea rdx, str.DeviceHarddisk
mov rcx, rsi
call fcn.180035998
test eax, eax
jne 0x18001337a
mov r8d, 0x208
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x380]
call fcn.180035de4
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.180028df0
nop
lea rcx, [rsp + 0x20]
call fcn.180028df0
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x38]
call fcn.180013850
mov edi, r15d
cmp dword [rsp + 0x28], r15d
jle 0x180013360
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.180035998
test eax, eax
jne 0x1800132f8
movzx eax, word [rbp + r14*2 + 0x380]
cmp ax, 0x5c
je 0x180013306
cmp ax, 0x2f
je 0x180013306
inc edi
add rbx, 8
cmp edi, dword [rsp + 0x28]
jge 0x180013360
jmp 0x1800132c0
sub r13d, r14d
add r13d, 2
cmp r13d, 0x104
jae 0x180013360
movsxd rcx, edi
mov rax, qword [rsp + 0x38]
mov r8d, 2
mov rdx, qword [rax + rcx*8]
lea rcx, [rsp + 0x60]
call fcn.180035de4
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 0x180013350
lea rcx, [rsp + 0x20]
call fcn.180027980
nop
lea rcx, [rsp + 0x38]
call fcn.180027980
jmp 0x1800134aa
mov r8d, reloc.WS2_32.dll_socket
lea rdx, str.DeviceTSafeDiskVolume
mov rcx, rsi
call fcn.180035998
test eax, eax
jne 0x1800134aa
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
sub rcx, 7
cmp rcx, 0x208
ja 0x1800133df
xor edx, edx
mov r8d, 0x412
lea rcx, [rsp + 0x60]
call fcn.180037550
lea r9, [rsi + 0x30]
movzx r8d, word [rsi + 0x2e]
lea rdx, str._TSD_VOLUME__c:_s
lea rcx, [rsp + 0x60]
call fcn.18000fe20
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
dec rcx
cmp rcx, 0x19
jbe 0x1800134aa
movzx eax, word [rsi + 0x30]
cmp ax, 0x5c
je 0x18001340f
cmp ax, 0x2f
jne 0x1800134aa
mov eax, dword [0x1800a54fc]
mov dword [rsp + 0x58], eax
movzx eax, word [0x1800a5500]
mov word [rsp + 0x5c], ax
movzx eax, word [rsi + 0x2e]
mov word [rsp + 0x58], ax
cmp ax, 0x43
jb 0x18001343a
cmp ax, 0x5a
jbe 0x180013444
sub ax, 0x63
cmp ax, 0x17
ja 0x1800134aa
mov r8d, 0x208
lea rdx, [rbp + 0x380]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
dec eax
cmp eax, 0x206
ja 0x1800134aa
mov r8d, 0x18
lea rdx, [rbp + 0x380]
mov rcx, rsi
call fcn.180035998
test eax, eax
jne 0x1800134aa
xor edx, edx
mov r8d, 0x412
lea rcx, [rsp + 0x60]
call fcn.180037550
movzx r8d, word [rsi + 0x2e]
lea r9, [rsi + 0x30]
lea rdx, str._c:_s
lea rcx, [rsp + 0x60]
call fcn.18000fe20
lea rcx, [rsp + 0x60]
call fcn.180013560
mov word [rbp + 0x7a0], r15w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x7a2]
call fcn.180037550
cmp qword [0x1800e7880], 0
je 0x180013516
mov edx, 0x7e
lea rcx, [rsp + 0x60]
call fcn.1800364b8
test rax, rax
je 0x180013516
mov r8d, 0x104
lea rdx, [rbp + 0x7a0]
lea rcx, [rsp + 0x60]
call qword [0x1800e7880]
dec eax
cmp eax, 0x102
lea rdx, [rbp + 0x7a0]
jbe 0x18001351b
lea rdx, [rsp + 0x60]
mov r8d, 0x103
mov rcx, rsi
call fcn.180035de4
mov rcx, qword [rbp + 0x9b0]
xor rcx, rsp
call fcn.1800356a0
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