Function at 0x180038840
Capabilities:
Get disk information
Get disk size
Get file system object information

Disassembly:
mov r11, rsp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x800
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rbp
mov rax, qword [0x1800f0938]
xor rax, rsp
mov qword [rsp + 0x7f0], rax
mov r12, rdx
mov rbp, rcx
mov qword [r11 - 0x798], 7
xor r13d, r13d
mov qword [r11 - 0x7a0], r13
mov word [rsp + 0x78], r13w
mov qword [r11 - 0x770], 7
mov qword [r11 - 0x778], r13
mov word [r11 - 0x788], r13w
mov qword [r11 - 0x748], 7
mov qword [r11 - 0x750], r13
mov word [r11 - 0x760], r13w
mov dword [r11 - 0x740], r13d
mov qword [r11 - 0x738], r13
mov qword [r11 - 0x730], r13
mov byte [r11 - 0x728], r13b
mov qword [r11 - 0x718], r13
xor edx, edx
mov r8d, 0x2b0
lea rcx, [r11 - 0x710]
call fcn.180099ff0
cmp qword [rbp + 0x20], 8
jb 0x180038911
lea rbx, [rbp + 8]
mov rcx, qword [rbx]
jmp 0x180038918
lea rbx, [rbp + 8]
mov rcx, rbx
mov dword [rsp + 0x20], 0x610
mov r9d, 0x2b8
lea r8, [rsp + 0x110]
xor edx, edx
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test rax, rax
jne 0x1800389c7
cmp qword [rsp + 0xe0], 8
jb 0x180038957
mov rcx, qword [rsp + 0xc8]
call fcn.180098980
mov qword [rsp + 0xe0], 7
mov qword [rsp + 0xd8], r13
mov word [rsp + 0xc8], 0
cmp qword [rsp + 0xb8], 8
jb 0x18003898d
mov rcx, qword [rsp + 0xa0]
call fcn.180098980
mov qword [rsp + 0xb8], 7
mov qword [rsp + 0xb0], r13
mov word [rsp + 0xa0], 0
cmp qword [rsp + 0x90], 8
jb 0x1800389c0
mov rcx, qword [rsp + 0x78]
call fcn.180098980
xor al, al
jmp 0x180039041
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x120]
repne scasw ax, word [rdi]
not rcx
lea rsi, [rcx - 1]
lea rax, [rsp + 0x78]
mov rdi, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x90]
cmp rdx, 8
cmovae rax, rdi
lea rcx, [rsp + 0x120]
movabs r14, 0x7ffffffffffffffe
mov r8, qword [rsp + 0x88]
cmp rcx, rax
jb 0x180038a68
lea rax, [rsp + 0x78]
cmp rdx, 8
cmovae rax, rdi
lea rax, [rax + r8*2]
lea rcx, [rsp + 0x120]
cmp rax, rcx
jbe 0x180038a68
lea rax, [rsp + 0x78]
cmp rdx, 8
cmovae rax, rdi
lea r8, [rsp + 0x120]
sub r8, rax
sar r8, 1
mov r9, rsi
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x70]
call fcn.1800030f0
jmp 0x180038b12
cmp rsi, r14
jbe 0x180038a87
call fcn.180097730
mov rdx, qword [rsp + 0x90]
mov r8, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x78]
cmp rdx, rsi
jae 0x180038aa8
mov rdx, rsi
lea rcx, [rsp + 0x70]
call fcn.180003d30
mov rdx, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x78]
jmp 0x180038ac7
test rsi, rsi
jne 0x180038ac7
mov qword [rsp + 0x88], r13
lea rax, [rsp + 0x78]
cmp rdx, 8
cmovae rax, rdi
mov word [rax], si
jmp 0x180038b12
test rsi, rsi
je 0x180038b12
lea rcx, [rsp + 0x78]
cmp rdx, 8
cmovae rcx, rdi
lea rdi, [rsi + rsi]
add rdx, rdx
mov r9, rdi
lea r8, [rsp + 0x120]
call fcn.180098b20
mov qword [rsp + 0x88], rsi
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x90], 8
cmovae rax, qword [rsp + 0x78]
mov word [rax + rdi], 0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x328]
repne scasw ax, word [rdi]
not rcx
lea rsi, [rcx - 1]
lea rax, [rsp + 0xa0]
mov rdi, qword [rsp + 0xa0]
mov rdx, qword [rsp + 0xb8]
cmp rdx, 8
cmovae rax, rdi
lea rcx, [rsp + 0x328]
mov r8, qword [rsp + 0xb0]
cmp rcx, rax
jb 0x180038bbb
lea rax, [rsp + 0xa0]
cmp rdx, 8
cmovae rax, rdi
lea rax, [rax + r8*2]
lea rcx, [rsp + 0x328]
cmp rax, rcx
jbe 0x180038bbb
lea rax, [rsp + 0xa0]
cmp rdx, 8
cmovae rax, rdi
lea r8, [rsp + 0x328]
sub r8, rax
sar r8, 1
mov r9, rsi
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0x98]
call fcn.1800030f0
jmp 0x180038c7a
cmp rsi, r14
jbe 0x180038bdd
call fcn.180097730
mov rdx, qword [rsp + 0xb8]
mov r8, qword [rsp + 0xb0]
mov rdi, qword [rsp + 0xa0]
cmp rdx, rsi
jae 0x180038c04
mov rdx, rsi
lea rcx, [rsp + 0x98]
call fcn.180003d30
mov rdx, qword [rsp + 0xb8]
mov rdi, qword [rsp + 0xa0]
jmp 0x180038c26
test rsi, rsi
jne 0x180038c26
mov qword [rsp + 0xb0], r13
lea rax, [rsp + 0xa0]
cmp rdx, 8
cmovae rax, rdi
mov word [rax], si
jmp 0x180038c7a
test rsi, rsi
je 0x180038c7a
lea rcx, [rsp + 0xa0]
cmp rdx, 8
cmovae rcx, rdi
lea rdi, [rsi + rsi]
add rdx, rdx
mov r9, rdi
lea r8, [rsp + 0x328]
call fcn.180098b20
mov qword [rsp + 0xb0], rsi
lea rax, [rsp + 0xa0]
cmp qword [rsp + 0xb8], 8
cmovae rax, qword [rsp + 0xa0]
mov word [rax + rdi], 0
mov word [rsp + 0x5e0], 0
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x5e2]
call fcn.180099ff0
mov dword [rsp + 0x54], r13d
mov dword [rsp + 0x50], r13d
mov dword [rsp + 0x58], r13d
mov word [rsp + 0x3d0], 0
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x3d2]
call fcn.180099ff0
cmp qword [rbp + 0x20], 8
jb 0x180038cd3
mov rcx, qword [rbx]
jmp 0x180038cd6
mov rcx, rbx
mov dword [rsp + 0x38], 0x104
lea rax, [rsp + 0x3d0]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x54]
mov r8d, 0x104
lea rdx, [rsp + 0x5e0]
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x180038f1c
mov word [rsp + 0x5d8], 0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x3d0]
repne scasw ax, word [rdi]
not rcx
lea rsi, [rcx - 1]
lea rax, [rsp + 0xc8]
mov rdi, qword [rsp + 0xc8]
mov rdx, qword [rsp + 0xe0]
cmp rdx, 8
cmovae rax, rdi
lea rcx, [rsp + 0x3d0]
mov r8, qword [rsp + 0xd8]
cmp rcx, rax
jb 0x180038dd3
lea rax, [rsp + 0xc8]
cmp rdx, 8
cmovae rax, rdi
lea rax, [rax + r8*2]
lea rcx, [rsp + 0x3d0]
cmp rax, rcx
jbe 0x180038dd3
lea rax, [rsp + 0xc8]
cmp rdx, 8
cmovae rax, rdi
lea r8, [rsp + 0x3d0]
sub r8, rax
sar r8, 1
mov r9, rsi
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0xc0]
call fcn.1800030f0
jmp 0x180038e92
cmp rsi, r14
jbe 0x180038df5
call fcn.180097730
mov rdx, qword [rsp + 0xe0]
mov r8, qword [rsp + 0xd8]
mov rdi, qword [rsp + 0xc8]
cmp rdx, rsi
jae 0x180038e1c
mov rdx, rsi
lea rcx, [rsp + 0xc0]
call fcn.180003d30
mov rdx, qword [rsp + 0xe0]
mov rdi, qword [rsp + 0xc8]
jmp 0x180038e3e
test rsi, rsi
jne 0x180038e3e
mov qword [rsp + 0xd8], r13
lea rax, [rsp + 0xc8]
cmp rdx, 8
cmovae rax, rdi
mov word [rax], si
jmp 0x180038e92
test rsi, rsi
je 0x180038e92
lea rcx, [rsp + 0xc8]
cmp rdx, 8
cmovae rcx, rdi
lea rdi, [rsi + rsi]
add rdx, rdx
mov r9, rdi
lea r8, [rsp + 0x3d0]
call fcn.180098b20
mov qword [rsp + 0xd8], rsi
lea rax, [rsp + 0xc8]
cmp qword [rsp + 0xe0], 8
cmovae rax, qword [rsp + 0xc8]
mov word [rax + rdi], 0
mov byte [rsp + 0x100], 1
mov dword [rsp + 0x40], r13d
mov dword [rsp + 0x48], r13d
mov dword [rsp + 0x4c], r13d
mov dword [rsp + 0x44], r13d
cmp qword [rbp + 0x20], 8
jb 0x180038eb8
mov rbx, qword [rbx]
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x4c]
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x180038f3c
mov edx, dword [rsp + 0x48]
mov eax, edx
mov ecx, dword [rsp + 0x40]
imul eax, ecx
mov dword [rsp + 0xe8], eax
mov eax, dword [rsp + 0x44]
imul rax, rcx
imul rax, rdx
mov qword [rsp + 0xf0], rax
mov eax, dword [rsp + 0x4c]
imul rax, rcx
imul rax, rdx
mov qword [rsp + 0xf8], rax
jmp 0x180038f3c
mov dword [rsp + 0xe8], r13d
mov qword [rsp + 0xf0], r13
mov qword [rsp + 0xf8], r13
mov byte [rsp + 0x100], 0
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x70]
mov rcx, r12
call fcn.1800030f0
lea rcx, [r12 + 0x28]
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x98]
call fcn.1800030f0
lea rcx, [r12 + 0x50]
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0xc0]
call fcn.1800030f0
mov edx, dword [rsp + 0xe8]
mov dword [r12 + 0x78], edx
mov rax, qword [rsp + 0xf0]
mov qword [r12 + 0x80], rax
mov rax, qword [rsp + 0xf8]
mov qword [r12 + 0x88], rax
movzx eax, byte [rsp + 0x100]
mov byte [r12 + 0x90], al
cmp qword [rsp + 0xe0], 8
jb 0x180038fd6
mov rcx, qword [rsp + 0xc8]
call fcn.180098980
mov qword [rsp + 0xe0], 7
mov qword [rsp + 0xd8], r13
mov word [rsp + 0xc8], 0
cmp qword [rsp + 0xb8], 8
jb 0x18003900c
mov rcx, qword [rsp + 0xa0]
call fcn.180098980
mov qword [rsp + 0xb8], 7
mov qword [rsp + 0xb0], r13
mov word [rsp + 0xa0], 0
cmp qword [rsp + 0x90], 8
jb 0x18003903f
mov rcx, qword [rsp + 0x78]
call fcn.180098980
mov al, 1
mov rcx, qword [rsp + 0x7f0]
xor rcx, rsp
call fcn.180099050
lea r11, [rsp + 0x800]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret