Function at 0x14000ddb0
Capabilities:
Get disk size

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x300]
sub rsp, 0x400
mov qword [rbp], 0xfffffffffffffffe
mov qword [rsp + 0x448], rbx
mov rax, qword [0x1401cde90]
xor rax, rsp
mov qword [rbp + 0x2f0], rax
mov r14, r8
mov r13, rcx
mov qword [rsp + 0x68], rcx
xor dil, dil
xor esi, esi
cmp edx, 1
jb 0x14000e7a1
mov eax, dword [rsp + 0x58]
and eax, 0xffffff00
mov dword [rsp + 0x58], eax
btr eax, 8
mov dword [rsp + 0x58], eax
mov qword [rsp + 0x60], rsi
mov r15d, dword [rbp - 0x58]
and r15d, 0xffffff02
or r15d, 2
mov dword [rbp - 0x58], r15d
mov qword [rbp - 0x50], rsi
mov dword [rbp - 0x60], edx
lea rdx, str.callbackId
lea rcx, [rsp + 0x50]
call fcn.14003ce50
mov rdi, rax
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x78]
call fcn.14003c2b0
nop
movsx ecx, byte [rdi + 8]
movzx eax, byte [rbp - 0x70]
mov byte [rdi + 8], al
mov r8d, dword [rbp - 0x70]
mov eax, r8d
xor eax, ecx
movzx eax, al
xor r8d, eax
mov dword [rbp - 0x70], r8d
mov rbx, qword [rdi]
mov rax, qword [rbp - 0x78]
mov qword [rdi], rax
mov qword [rbp - 0x78], rbx
mov ecx, dword [rdi + 8]
mov edx, ecx
shl edx, 0x17
sar edx, 0x1f
mov eax, ecx
xor eax, r8d
and eax, 0x100
xor eax, ecx
mov dword [rdi + 8], eax
shl edx, 8
xor edx, r8d
and edx, 0x100
xor r8d, edx
mov dword [rbp - 0x70], r8d
movsx eax, r8b
lea r12, vtable.Json::ValueAllocator.0
lea rdi, vtable.Json::DefaultValueAllocator.0
cmp eax, 4
je 0x14000df05
add eax, 0xfffffffa
cmp eax, 1
ja 0x14000df4a
mov qword [rsp + 0x38], rbx
test rbx, rbx
je 0x14000df4a
mov r8, qword [rbx]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rbp - 0x10]
mov rcx, rbx
call fcn.14003db20
nop
mov rcx, qword [rbx]
call fcn.1400d37c0
mov rcx, rbx
call fcn.1400d37c0
jmp 0x14000df4a
bt r8d, 8
jae 0x14000df4a
mov eax, dword [0x1401d7ac8]
test al, 1
jne 0x14000df3a
or eax, 1
mov dword [0x1401d7ac8], eax
mov qword [0x1401d79d0], r12
mov qword [0x1401d79d0], rdi
lea rcx, [0x140127380]
call fcn.1400d3ef0
nop
mov rcx, qword [0x1401d1030]
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + 0x20]
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x14000df74
lea rbx, [rcx - 8]
lea r9, [0x14003beb0]
mov r8d, dword [rbx]
mov edx, 8
call fcn.1400d3cf4
mov rcx, rbx
call fcn.1400d3f08
nop
movsx eax, byte [rbp - 0x58]
cmp eax, 4
je 0x14000dfbb
add eax, 0xfffffffa
cmp eax, 1
ja 0x14000e001
mov rbx, qword [rbp - 0x60]
mov qword [rsp + 0x38], rbx
test rbx, rbx
je 0x14000e001
mov r8, qword [rbx]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rbp - 8]
mov rcx, rbx
call fcn.14003db20
nop
mov rcx, qword [rbx]
call fcn.1400d37c0
mov rcx, rbx
call fcn.1400d37c0
jmp 0x14000e001
bt r15d, 8
jae 0x14000e001
mov eax, dword [0x1401d7ac8]
test al, 1
jne 0x14000dff0
or eax, 1
mov dword [0x1401d7ac8], eax
mov qword [0x1401d79d0], r12
mov qword [0x1401d79d0], rdi
lea rcx, [0x140127380]
call fcn.1400d3ef0
nop
mov rcx, qword [0x1401d1030]
mov rax, qword [rcx]
mov rdx, qword [rbp - 0x60]
call qword [rax + 0x20]
lea rdx, str.retObject
lea rcx, [rsp + 0x50]
call fcn.14003ce50
mov rdi, rax
mov rdx, r14
lea rcx, [rsp + 0x70]
call fcn.14003c2b0
nop
movsx ecx, byte [rdi + 8]
movzx eax, byte [rsp + 0x78]
mov byte [rdi + 8], al
mov r8d, dword [rsp + 0x78]
xor ecx, r8d
movzx eax, cl
xor r8d, eax
mov dword [rsp + 0x78], r8d
mov rbx, qword [rdi]
mov rax, qword [rsp + 0x70]
mov qword [rdi], rax
mov qword [rsp + 0x70], rbx
mov ecx, dword [rdi + 8]
mov edx, ecx
shl edx, 0x17
sar edx, 0x1f
mov eax, ecx
xor eax, r8d
and eax, 0x100
xor eax, ecx
mov dword [rdi + 8], eax
shl edx, 8
xor edx, r8d
and edx, 0x100
xor r8d, edx
mov dword [rsp + 0x78], r8d
movsx eax, r8b
cmp eax, 4
je 0x14000e0c3
add eax, 0xfffffffa
cmp eax, 1
ja 0x14000e10f
mov qword [rsp + 0x38], rbx
test rbx, rbx
je 0x14000e10f
mov r8, qword [rbx]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rbp - 0x48]
mov rcx, rbx
call fcn.14003db20
nop
mov rcx, qword [rbx]
call fcn.1400d37c0
mov rcx, rbx
call fcn.1400d37c0
jmp 0x14000e10f
bt r8d, 8
jae 0x14000e10f
mov eax, dword [0x1401d7ac8]
test al, 1
jne 0x14000e0ff
or eax, 1
mov dword [0x1401d7ac8], eax
mov qword [0x1401d79d0], r12
lea rax, vtable.Json::DefaultValueAllocator.0
mov qword [0x1401d79d0], rax
lea rcx, [0x140127380]
call fcn.1400d3ef0
nop
mov rcx, qword [0x1401d1030]
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + 0x20]
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x14000e138
lea rbx, [rcx - 8]
lea r9, [0x14003beb0]
mov r8d, dword [rbx]
mov edx, 8
call fcn.1400d3cf4
mov rcx, rbx
call fcn.1400d3f08
lea rcx, str.__r_
mov rax, qword [str.__r_]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x48], rax
cmp byte [r14 + 8], 0
je 0x14000e1bb
lea rdx, [0x140153b20]
mov rcx, r14
call fcn.14003d050
lea rbx, [0x1401d6bb0]
cmp rax, rbx
je 0x14000e1bb
cmp byte [r14 + 8], 0
jne 0x14000e180
mov rax, rbx
jmp 0x14000e18f
lea rdx, [0x140153b38]
mov rcx, r14
call fcn.14003d050
cmp byte [rax + 8], 4
jne 0x14000e1bb
cmp byte [r14 + 8], 0
je 0x14000e1ae
lea rdx, str.function
mov rcx, r14
call fcn.14003d050
mov rbx, rax
mov rdx, qword [rbx]
lea rcx, [rsp + 0x48]
call fcn.1400034f0
lea rax, vtable.Json::Writer.0
mov qword [rbp + 8], rax
lea r15, vtable.Json::FastWriter.0
mov qword [rbp + 8], r15
mov qword [rbp + 0x20], rsi
mov qword [rbp + 0x28], rsi
mov qword [rbp + 0x28], 0xf
mov qword [rbp + 0x20], rsi
mov byte [rbp + 0x10], 0
mov byte [rbp + 0x30], 0
lea rax, [rbp - 0x38]
mov qword [rsp + 0x38], rax
lea r8, [rsp + 0x50]
lea rdx, [rbp + 0x38]
lea rcx, [rbp + 8]
call fcn.14003f740
nop
cmp qword [rax + 0x18], 0x10
jb 0x14000e213
mov rax, qword [rax]
mov qword [rbp - 0x20], 0xf
mov qword [rbp - 0x28], rsi
mov byte [rbp - 0x38], 0
or rbx, 0xffffffffffffffff
cmp byte [rax], 0
jne 0x14000e231
mov r8, rsi
jmp 0x14000e23e
mov r8, rbx
inc r8
cmp byte [rax + r8], 0
jne 0x14000e234
mov rdx, rax
lea rcx, [rbp - 0x38]
call fcn.1400013f0
nop
lea rdx, [rbp - 0x38]
lea rcx, [rsp + 0x30]
call fcn.140022b50
nop
cmp qword [rbp + 0x50], 0x10
jb 0x14000e26a
mov rcx, qword [rbp + 0x38]
call fcn.1400d37c0
mov qword [rbp + 0x50], 0xf
mov qword [rbp + 0x48], rsi
mov byte [rbp + 0x38], 0
mov ecx, dword [0x1401d5d60]
lea r8d, [rcx + 2]
lea eax, [rcx + 1]
imul r8d, eax
imul r8d, ecx
mov eax, 0x92492493
imul r8d
add edx, r8d
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0xe
sub r8d, edx
cmp r8d, 0xd
jne 0x14000e2c5
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
mov rax, qword [rsp + 0x30]
mov r14d, dword [rax - 0x10]
mov r12d, 1
test r14d, r14d
jne 0x14000e367
lea rdi, [0x140153a04]
sub rdi, rax
sar rdi, 1
mov edx, r12d
sub edx, dword [rax - 8]
mov ecx, dword [rax - 0xc]
sub ecx, 2
or ecx, edx
jge 0x14000e30e
lea edx, [r12 + 1]
lea rcx, [rsp + 0x30]
call fcn.140002560
mov rax, qword [rsp + 0x30]
movsxd rdx, dword [rax - 0xc]
mov r9d, 4
mov rcx, rax
add rdx, rdx
cmp rdi, r14
ja 0x14000e32e
lea r8, [rax + rdi*2]
call fcn.1400d400c
jmp 0x14000e33a
lea r8, [0x140153a04]
call fcn.1400d41cc
mov rax, qword [rsp + 0x30]
cmp dword [rax - 0xc], 2
jl 0x14000e35c
mov dword [rax - 0x10], 2
mov rax, qword [rsp + 0x30]
mov word [rax + 4], si
mov rax, qword [rsp + 0x30]
jmp 0x14000e367
mov ecx, 0x80070057
call fcn.140001920
int3
mov r9d, dword [rax - 0x10]
lea ecx, [r9 - 1]
test ecx, ecx
js 0x14000e796
cmp ecx, r9d
jg 0x14000e796
movsxd rcx, ecx
cmp word [rax + rcx*2], 0xa
jne 0x14000e521
dec r9d
xor r8d, r8d
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x30]
call fcn.14000fe20
nop
mov r13, qword [rax]
lea rdx, [r13 - 0x18]
mov rcx, qword [rsp + 0x30]
lea rdi, [rcx - 0x18]
cmp rdx, rdi
je 0x14000e4ff
cmp dword [rdi + 0x10], 0
jl 0x14000e3f1
mov rax, qword [rdi]
cmp qword [rdx], rax
jne 0x14000e3f1
mov rcx, rdx
call fcn.1400025c0
mov r14, rax
lock add dword [rdi + 0x10], 0xffffffff
jg 0x14000e3e8
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [r14 + 0x18]
jmp 0x14000e4fa
movsxd r14, dword [r13 - 0x10]
test r14d, r14d
jne 0x14000e453
mov r14, qword [rdi]
cmp dword [rdi + 8], 0
je 0x14000e4ff
cmp dword [rdi + 0x10], 0
jge 0x14000e42e
cmp dword [rcx - 0xc], 0
jge 0x14000e41e
mov ecx, 0x80070057
call fcn.140001920
int3
mov dword [rcx - 0x10], esi
mov rax, qword [rsp + 0x30]
mov word [rax], si
jmp 0x14000e4ff
lock add dword [rdi + 0x10], 0xffffffff
jg 0x14000e441
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x18]
add rax, 0x18
jmp 0x14000e4fa
test r13, r13
jne 0x14000e463
mov ecx, 0x80070057
call fcn.140001920
int3
mov eax, dword [rcx - 0x10]
mov dword [rsp + 0x40], eax
mov r15, r13
sub r15, rcx
sar r15, 1
test r14d, r14d
jns 0x14000e483
mov ecx, 0x80070057
call fcn.140001920
int3
sub r12d, dword [rdi + 0x10]
mov eax, dword [rdi + 0xc]
sub eax, r14d
or eax, r12d
jge 0x14000e4a4
mov edx, r14d
lea rcx, [rsp + 0x30]
call fcn.140002560
mov rcx, qword [rsp + 0x30]
mov eax, dword [rsp + 0x40]
lea rdi, [r14 + r14]
movsxd rdx, dword [rcx - 0xc]
mov r9, rdi
add rdx, rdx
cmp r15, rax
ja 0x14000e4c6
lea r8, [rcx + r15*2]
call fcn.1400d400c
jmp 0x14000e4ce
mov r8, r13
call fcn.1400d41cc
mov rax, qword [rsp + 0x30]
cmp r14d, dword [rax - 0xc]
jg 0x14000e4ef
mov dword [rax - 0x10], r14d
mov rax, qword [rsp + 0x30]
mov word [rdi + rax], si
lea r15, vtable.Json::FastWriter.0
jmp 0x14000e4ff
mov ecx, 0x80070057
call fcn.140001920
int3
mov qword [rsp + 0x30], rax
mov rdx, qword [rbp - 0x40]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14000e517
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r13, qword [rsp + 0x68]
mov rax, qword [rsp + 0x30]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x68], rcx
lea rdi, [rax - 0x18]
mov rcx, qword [rdi]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rdi + 0x10], 0
jl 0x14000e54f
cmp rax, qword [rdi]
jne 0x14000e54f
mov r14, rdi
lock inc dword [rdi + 0x10]
jmp 0x14000e58e
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rdi + 8]
call qword [rax]
mov r14, rax
test rax, rax
jne 0x14000e56b
call fcn.140002650
int3
mov eax, dword [rdi + 8]
mov dword [r14 + 8], eax
mov eax, dword [rdi + 8]
inc eax
movsxd rdx, eax
lea r9, [rdx + rdx]
lea r8, [rdi + 0x18]
add rdx, rdx
lea rcx, [r14 + 0x18]
call fcn.1400d41cc
lea rax, [r14 + 0x18]
mov qword [rsp + 0x40], rax
mov rax, qword [r13]
lea rdx, [rsp + 0x38]
mov rcx, r13
call qword [rax + 0xd8]
mov rdx, rax
mov rax, qword [r13]
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x40]
mov rcx, r13
call qword [rax + 0xd0]
test al, al
sete dil
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14000e5e2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test dil, dil
je 0x14000e65c
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14000e601
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov qword [rbp + 8], r15
cmp qword [rbp + 0x28], 0x10
jb 0x14000e615
mov rcx, qword [rbp + 0x10]
call fcn.1400d37c0
mov qword [rbp + 0x28], 0xf
mov qword [rbp + 0x20], rsi
mov byte [rbp + 0x10], 0
lea rax, vtable.Json::Writer.0
mov qword [rbp + 8], rax
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14000e64a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rsp + 0x50]
call fcn.14003c410
xor dil, dil
jmp 0x14000e7a1
mov dil, 1
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14000e679
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov qword [rbp + 8], r15
cmp qword [rbp + 0x28], 0x10
jb 0x14000e68d
mov rcx, qword [rbp + 0x10]
call fcn.1400d37c0
mov qword [rbp + 0x28], 0xf
mov qword [rbp + 0x20], rsi
mov byte [rbp + 0x10], 0
lea rax, vtable.Json::Writer.0
mov qword [rbp + 8], rax
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14000e6c2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
movsx eax, byte [rsp + 0x58]
cmp eax, 4
je 0x14000e712
add eax, 0xfffffffa
cmp eax, 1
ja 0x14000e76a
mov rbx, qword [rsp + 0x50]
mov qword [rbp - 0x48], rbx
test rbx, rbx
je 0x14000e76a
mov r8, qword [rbx]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rbp - 0x18]
mov rcx, rbx
call fcn.14003db20
nop
mov rcx, qword [rbx]
call fcn.1400d37c0
mov rcx, rbx
call fcn.1400d37c0
jmp 0x14000e76a
test dword [rsp + 0x58], 0x100
je 0x14000e76a
mov eax, dword [0x1401d7ac8]
test al, 1
jne 0x14000e758
or eax, 1
mov dword [0x1401d7ac8], eax
lea rax, vtable.Json::ValueAllocator.0
mov qword [0x1401d79d0], rax
lea rax, vtable.Json::DefaultValueAllocator.0
mov qword [0x1401d79d0], rax
lea rcx, [0x140127380]
call fcn.1400d3ef0
nop
mov rcx, qword [0x1401d1030]
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x50]
call qword [rax + 0x20]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14000e7a1
lea rbx, [rcx - 8]
lea r9, [0x14003beb0]
mov r8d, dword [rbx]
mov edx, 8
call fcn.1400d3cf4
mov rcx, rbx
call fcn.1400d3f08
jmp 0x14000e7a1
mov ecx, 0x80070057
call fcn.140001920
nop
mov eax, dword [0x1401d5d60]
mov ecx, eax
imul ecx, eax
imul ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
shl eax, 2
sub ecx, eax
cmp ecx, 6
jne 0x14000e8e7
mov rbx, rsi
call fcn.1400d41a0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
movsd qword [rbp + rbx*8 + 0x60], xmm0
inc rbx
cmp rbx, 0x51
jb 0x14000e7d3
mov r8d, 0x50
lea r9d, [r8 + 1]
nop dword [rax]
mov ecx, 0x50
cmp rsi, rcx
jge 0x14000e8d8
cmp r8, 4
jl 0x14000e8ad
lea rax, [rbp + 0x2d0]
mov edx, 0x4c
sub rdx, rsi
shr rdx, 2
inc rdx
mov ecx, 0x14
sub rcx, rdx
shl rcx, 2
nop word [rax + rax]
movsd xmm0, qword [rax + 0x10]
movsd xmm1, qword [rax + 8]
comisd xmm0, xmm1
jbe 0x14000e85a
movsd qword [rax + 0x10], xmm1
movsd qword [rax + 8], xmm0
movsd xmm0, qword [rax + 8]
movsd xmm1, qword [rax]
comisd xmm0, xmm1
jbe 0x14000e872
movsd qword [rax + 8], xmm1
movsd qword [rax], xmm0
movsd xmm0, qword [rax]
movsd xmm1, qword [rax - 8]
comisd xmm0, xmm1
jbe 0x14000e88a
movsd qword [rax], xmm1
movsd qword [rax - 8], xmm0
movsd xmm0, qword [rax - 8]
movsd xmm1, qword [rax - 0x10]
comisd xmm0, xmm1
jbe 0x14000e8a4
movsd qword [rax - 8], xmm1
movsd qword [rax - 0x10], xmm0
sub rax, 0x20
dec rdx
jne 0x14000e840
cmp rcx, rsi
jle 0x14000e8d8
movsd xmm0, qword [rbp + rcx*8 + 0x60]
movsd xmm1, qword [rbp + rcx*8 + 0x58]
comisd xmm0, xmm1
jbe 0x14000e8d0
movsd qword [rbp + rcx*8 + 0x60], xmm1
movsd qword [rbp + rcx*8 + 0x58], xmm0
dec rcx
cmp rcx, rsi
jg 0x14000e8b2
inc rsi
dec r8
dec r9
jne 0x14000e800
movzx eax, dil
mov rcx, qword [rbp + 0x2f0]
xor rcx, rsp
call fcn.1400d37e0
mov rbx, qword [rsp + 0x448]
add rsp, 0x400
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret