Function at 0x14002ad20
Capabilities:
Get disk size

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1d0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x220], rbx
mov rax, qword [0x1401cee90]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov r15, rdx
mov r12, rcx
mov rax, qword [rcx]
cmp dword [rax - 0x10], 0
jne 0x14002adc0
mov rax, qword [rdx]
lea rdx, [rax - 0x18]
mov rbx, qword [rdx]
cmp dword [rdx + 8], 0
je 0x14002adb9
cmp dword [rdx + 0x10], 0
jge 0x14002ad99
cmp dword [rax - 0xc], 0
jge 0x14002ad8c
mov ecx, 0x80070057
call fcn.140001920
int3
xor ebp, ebp
mov dword [rax - 0x10], ebp
mov rax, qword [r15]
mov word [rax], bp
jmp 0x14002adb9
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14002ada9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x18]
add rax, 0x18
mov qword [r15], rax
mov al, 1
jmp 0x14002b177
mov byte [rsp + 0x30], 0
mov r8d, dword [0x1401d6d80]
mov ecx, r8d
imul ecx, r8d
mov eax, 0xb21642c9
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x17
sub ecx, edx
or rsi, 0xffffffffffffffff
cmp ecx, 0xb
jne 0x14002ae39
mov eax, 0x51eb851f
imul r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x64
sub r8d, edx
add r8d, 0x141
movsxd rcx, r8d
mov eax, 4
mul rcx
cmovo rax, rsi
mov rcx, rax
call fcn.1400d4448
mov rcx, rax
call fcn.1400d5528
mov r8d, dword [0x1401d6d80]
lea ecx, [r8 + 1]
imul ecx, r8d
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0xf
sub ecx, edx
cmp ecx, 4
jne 0x14002aebc
mov rax, qword [str.XgjCUtgw4x]
mov qword [rsp + 0x40], rax
movzx eax, word [0x14015b290]
mov word [rsp + 0x48], ax
movzx eax, byte [0x14015b292]
mov byte [rsp + 0x4a], al
lea rdx, [rsp + 0x40]
mov rcx, rsi
nop dword [rax]
inc rcx
cmp byte [rdx + rcx], 0
jne 0x14002ae90
mov eax, 4
mul rcx
cmovo rax, rsi
mov rcx, rax
call fcn.1400d4448
mov rcx, rax
call fcn.1400d5528
mov r8d, dword [0x1401d6d80]
imul r8d, r8d
and r8d, 0x80000003
jge 0x14002aed3
dec r8d
or r8d, 0xfffffffc
inc r8d
xor ebp, ebp
cmp r8d, 3
jne 0x14002aef0
mov qword [rsp + 0x20], rbp
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
mov rdi, qword [r12]
lea rcx, str.D_r_
mov rax, qword [str.D_r_]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x38], rbx
test rdi, rdi
je 0x14002af3d
test rdi, 0xffffffffffff0000
jne 0x14002af3d
movzx edi, di
mov ecx, edi
call fcn.1400019e0
test rax, rax
je 0x14002af4f
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.14001bc10
jmp 0x14002af4a
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.14001b2f0
mov rbx, qword [rsp + 0x38]
mov ecx, dword [0x1401d6d80]
lea edx, [rcx + 2]
lea eax, [rcx + 1]
imul edx, eax
imul edx, ecx
and edx, 0x8000000f
jge 0x14002af70
dec edx
or edx, 0xfffffff0
inc edx
cmp edx, 5
jne 0x14002af7b
dec dword [0x1401d7698]
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rbp
mov r9d, esi
mov r8, rbx
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd r13, eax
test eax, eax
jne 0x14002b013
mov rdx, qword [r12]
lea rcx, [rdx - 0x18]
mov rdi, qword [r15]
sub rdi, 0x18
cmp rcx, rdi
je 0x14002aff6
cmp dword [rdi + 0x10], eax
jl 0x14002afe9
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x14002afe9
call fcn.1400027c0
mov rbx, rax
lock add dword [rdi + 0x10], 0xffffffff
jg 0x14002afdb
mov rcx, qword [rdi]
mov r8, qword [rcx]
mov rdx, rdi
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rbx + 0x18]
mov qword [r15], rax
mov rbx, qword [rsp + 0x38]
jmp 0x14002aff6
mov r8d, dword [rdx - 0x10]
mov rcx, r15
call fcn.140002670
nop
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14002b172
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x14002b172
mov eax, 2
mul r13
cmovo rax, rsi
mov rcx, rax
call fcn.1400d4448
mov r14, rax
lea r8, [r13*2]
xor edx, edx
mov rcx, rax
call fcn.1400da240
mov r11d, dword [0x1401d6d80]
lea eax, [r11 + 2]
lea ecx, [r11 + 1]
imul eax, ecx
imul eax, r11d
and eax, 0x80000007
jge 0x14002b060
dec eax
or eax, 0xfffffff8
inc eax
cmp eax, 7
jne 0x14002b090
mov r8d, ebp
lea r9, [rsp + 0x60]
mov r10d, r11d
lea ecx, [r11 + r8]
mov eax, r10d
cdq
idiv ecx
mov dword [r9], edx
inc r8d
dec r10d
lea r9, [r9 + 4]
movsxd rax, r8d
cmp rax, 0x57
jb 0x14002b070
lea eax, [r13*2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r14
mov r9d, dword [rbx - 0x10]
mov r8, rbx
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x14002b127
mov rdx, qword [r12]
lea rcx, [rdx - 0x18]
mov rdi, qword [r15]
sub rdi, 0x18
cmp rcx, rdi
je 0x14002b111
cmp dword [rdi + 0x10], eax
jl 0x14002b104
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x14002b104
call fcn.1400027c0
mov rbx, rax
lock add dword [rdi + 0x10], 0xffffffff
jg 0x14002b0f6
mov rcx, qword [rdi]
mov r8, qword [rcx]
mov rdx, rdi
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rbx + 0x18]
mov qword [r15], rax
mov rbx, qword [rsp + 0x38]
jmp 0x14002b111
mov r8d, dword [rdx - 0x10]
mov rcx, r15
call fcn.140002670
nop
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14002b165
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x14002b165
test r14, r14
je 0x14002b13d
mov rax, rsi
nop
inc rax
cmp word [r14 + rax*2], 0
jne 0x14002b130
mov ebp, eax
mov r8d, ebp
mov rdx, r14
mov rcx, r15
call fcn.140002670
mov byte [rsp + 0x30], 1
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14002b165
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
test r14, r14
je 0x14002b172
mov rcx, r14
call fcn.1400d5528
movzx eax, byte [rsp + 0x30]
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1400d4e00
mov rbx, qword [rsp + 0x220]
add rsp, 0x1d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret