Function at 0x180009840
Capabilities:
Get common file path
Get disk information
Get disk size
Get file system object information
Get session user name
Get startup folder

Disassembly:
push rbp
push rbx
push r13
push r14
lea rbp, [rsp - 0x1058]
mov eax, 0x1158
call fcn.180026800
sub rsp, rax
mov rax, qword [0x1800438e8]
xor rax, rsp
mov qword [rbp + 0x1040], rax
mov r14, rcx
mov qword [rsp + 0x1188], rsi
lea rdx, [rbp + 0xc30]
mov ecx, 0x200
mov qword [rsp + 0x1190], rdi
mov dword [rsp + 0x40], pe_nt_image_headers64
mov qword [rsp + 0x1198], r12
mov byte [rbp + 0x430], 7
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
xor ebx, ebx
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0xe30]
lea r12, [rbp + 0xc30]
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea rsi, [rbp + 0xe30]
lea rdi, str.SYSTEM
mov ecx, 7
repe cmpsw word [rsi], word [rdi]
sete byte [rbp + 0x431]
call fcn.180009660
lea edx, [rbx + 0x10]
mov rdi, rax
lea rax, [rbp + 0x432]
xor r9d, r9d
mov r8, rdi
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp + 0x432]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea r13d, [rax + rax + 4]
cmp word [rbp + 0xc30], bx
je 0x180009ac4
mov qword [rsp + 0x1150], r15
lea rcx, [rbp + 0x220]
xor edx, edx
mov r8d, 0x208
call fcn.180021060
mov dword [rsp + 0x38], 0x104
lea rax, [rbp + 0x220]
mov qword [rsp + 0x30], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r12
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
lea r8, [rsp + 0x60]
mov r9d, 0x2b8
mov edx, 0x80
mov rcx, r12
mov dword [rsp + 0x20], 0x410
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
lea rcx, [rbp + 0x178]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rbp + 0x220]
lea r15d, [rax + rax + 2]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [rax + rax + 2]
mov dword [rsp + 0x44], eax
movzx eax, word [r12]
cmp ax, 0x41
je 0x180009a0a
cmp ax, 0x42
je 0x180009a0a
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x48]
xor r9d, r9d
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x180009a0a
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x48]
shr rdi, 0x14
shr rbx, 0x14
jmp 0x180009a0c
mov edi, ebx
movzx eax, byte [r12]
mov rcx, r12
mov byte [rbp + r13 + 0x430], al
lea eax, [r13 + 1]
mov byte [rbp + rax + 0x430], 0
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [rbp + r13 + 0x434], edi
mov edx, eax
lea eax, [r13 + 2]
movsxd rdi, r15d
mov byte [rbp + rax + 0x430], dl
lea eax, [r13 + 3]
lea rcx, [rbp + r13 + 0x43c]
lea rdx, [rbp + 0x178]
mov r8, rdi
mov dword [rbp + r13 + 0x438], ebx
mov byte [rbp + rax + 0x430], 0
call fcn.18001bea0
movsxd rbx, dword [rsp + 0x44]
lea rax, [rdi + r13]
lea rdx, [rbp + 0x220]
mov r8, rbx
lea rcx, [rbp + rax + 0x43c]
call fcn.18001bea0
lea edx, [rbx + r15]
mov rcx, r12
lea r13d, [r13 + rdx + 0xc]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, 0
inc eax
cdqe
lea r12, [r12 + rax*2]
cmp word [r12], 0
jne 0x180009940
mov r15, qword [rsp + 0x1150]
cmp dword [r14 + 0x10], 0
mov r12, qword [rsp + 0x1198]
mov rdi, qword [rsp + 0x1190]
mov rsi, qword [rsp + 0x1188]
jne 0x180009af9
mov rcx, qword [r14 + 8]
lea rdx, [rbp + 0x430]
mov r8d, r13d
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
jmp 0x180009afb
mov eax, ebx
mov rcx, qword [rbp + 0x1040]
xor rcx, rsp
call fcn.18001be70
add rsp, 0x1158
pop r14
pop r13
pop rbx
pop rbp
ret