Function at 0x10002e784
Capabilities:
Get disk size

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x340
mov rax, qword [0x100165138]
xor rax, rsp
mov qword [rsp + 0x330], rax
mov dword [rsp + 0xa8], r8d
mov qword [rsp + 0xa0], rdx
mov rsi, rcx
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x10002e7f4
test byte [rcx + 0x1c], 1
je 0x10002e7f4
cmp byte [rcx + 0x19], 4
jb 0x10002e7f4
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cc8]
mov edx, 0x19e
call fcn.10001c854
xor ebx, ebx
cmp dword [rsi + 0x14c], 1
mov r12d, ebx
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x78], rbx
mov rbp, rbx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0xc8], rbx
mov qword [rsp + 0xb8], rbx
mov r15, rbx
mov qword [rsp + 0x88], rbx
mov r14, rbx
mov qword [rsp + 0x98], rbx
mov r13, rbx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0xc0], rbx
mov qword [rsp + 0xd0], rbx
jne 0x10002e869
lea r8, [0x100004cc0]
lea rcx, [0x100004680]
mov edx, 0x23e6
call fcn.10009a050
cmp byte [rsi + 0x185], bl
jne 0x10002e889
lea r8, [0x100004ce0]
lea rcx, [0x100004680]
mov edx, 0x23e7
call fcn.10009a050
lea rcx, [rsp + 0x120]
xor edx, edx
mov r8d, 0x208
call sub.msvcrt.dll_memset
lea rcx, [rsi + 0x2c8]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
cmp dword [rsi + 0x170], ebx
jbe 0x10002e8e2
mov rax, qword [rsi + 0xd8]
mov ecx, dword [rsi + 0x170]
add rax, 0x68
test byte [rax - 0x14], 1
jne 0x10002e8d1
cmp byte [rax], bl
je 0x10002e8d1
inc r12d
add rax, 0x160
sub rcx, 1
jne 0x10002e8c4
mov dword [rsp + 0x30], r12d
mov edi, r12d
shl rdi, 3
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov qword [rsp + 0x48], rax
cmp rax, rbx
jne 0x10002e909
mov ebx, 0x8007000e
mov rdi, rax
jmp 0x10002eaf1
mov r8, rdi
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov qword [rsp + 0xb8], rax
cmp rax, rbx
jne 0x10002e936
mov ebx, 0x8007000e
jmp 0x10002eaec
mov r8, rdi
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov eax, 0xffffffff
cmp rdi, rax
jbe 0x10002e957
mov ebx, 0x80070216
jmp 0x10002eaec
mov edi, edi
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov r15, rax
mov qword [rsp + 0x40], rax
cmp rax, rbx
je 0x10002e92c
mov r8, rdi
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov r12d, ebx
cmp dword [rsi + 0x170], ebx
jbe 0x10002ea63
mov rdi, rbx
mov rax, qword [rsi + 0xd8]
test byte [rdi + rax + 0x54], 1
jne 0x10002ea4e
cmp byte [rdi + rax + 0x68], bl
je 0x10002ea4e
cmp r13, rbx
je 0x10002e9bd
mov rcx, r13
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov qword [rsp + 0x60], rbx
mov ecx, ebp
lea rdx, [rsp + 0x60]
imul rcx, rcx, 0x160
add rcx, qword [rsi + 0xd8]
call fcn.100021160
mov ebx, eax
test eax, eax
js 0x10002f2ac
mov rcx, qword [rsi + 0x338]
mov r13, qword [rsp + 0x60]
xor ebx, ebx
mov qword [rsp + 0xc0], rbx
mov qword [rsp + 0xd0], rbx
mov rax, qword [rcx]
lea r9, [rsp + 0xd0]
lea r8, [rsp + 0xc0]
mov rdx, r13
call qword [rax + 0x50]
cmp r12d, dword [rsp + 0x30]
jae 0x10002eadd
mov rcx, qword [rsi + 0xd8]
mov rax, qword [rsp + 0xc0]
inc r12d
mov qword [rdi + rcx + 0x30], rax
mov rcx, qword [rsi + 0xd8]
mov rax, qword [rsp + 0xd0]
mov qword [rdi + rcx + 0x38], rax
inc ebp
add rdi, 0x160
cmp ebp, dword [rsi + 0x170]
jb 0x10002e98e
mov rcx, qword [rsi + 0x158]
lea r8, [rsp + 0x98]
lea rdx, [0x100002934]
call fcn.10009bb88
mov ebx, eax
test eax, eax
js 0x10002f441
lea rcx, [rsi + 0x28]
xor edx, edx
call fcn.10010b1d8
mov ebx, eax
test eax, eax
js 0x10002f441
mov r14, qword [rsp + 0x98]
lea r9, [rsp + 0x90]
lea r8, [rsp + 0xd8]
lea rdx, [rsp + 0xe0]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x10002ec62
mov rcx, r14
call fcn.100134b20
mov ebx, eax
jmp 0x10002ec64
mov ebx, 0x8000ffff
mov r12d, dword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
lea rcx, [rsi + 0x28]
call fcn.10010b368
test ebx, ebx
jns 0x10002eb08
mov dword [rsi + 0x20], 0x807800c5
mov dword [rsi + 0x24], ebx
cmp qword [rsp + 0x78], 0
je 0x10002eb1b
lea rcx, [rsp + 0x78]
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
test rbp, rbp
je 0x10002eb29
mov rcx, rbp
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test r14, r14
je 0x10002eb37
mov rcx, r14
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rsp + 0xc8]
test rcx, rcx
je 0x10002eb4a
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov r14d, r12d
test rdi, rdi
je 0x10002eb84
test r12d, r12d
je 0x10002eb7b
mov esi, r12d
mov rcx, qword [rdi]
test rcx, rcx
je 0x10002eb6c
call qword [sym.imp.ole32.dll_CoTaskMemFree]
and qword [rdi], 0
add rdi, 8
sub rsi, 1
jne 0x10002eb5a
mov rdi, qword [rsp + 0x48]
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rbp, qword [rsp + 0xb8]
test rbp, rbp
je 0x10002ebc1
test r12d, r12d
je 0x10002ebb8
mov rdi, rbp
mov rsi, r14
mov rcx, qword [rdi]
test rcx, rcx
je 0x10002ebae
call qword [sym.imp.ole32.dll_CoTaskMemFree]
and qword [rdi], 0
add rdi, 8
sub rsi, 1
jne 0x10002eb9c
mov rcx, rbp
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test r15, r15
je 0x10002ebf3
test r12d, r12d
je 0x10002ebea
mov rdi, r15
mov rcx, qword [rdi]
test rcx, rcx
je 0x10002ebe0
call qword [sym.imp.ole32.dll_CoTaskMemFree]
and qword [rdi], 0
add rdi, 8
sub r14, 1
jne 0x10002ebce
mov rcx, r15
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test r13, r13
je 0x10002ec01
mov rcx, r13
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x10002ec35
test byte [rcx + 0x1c], 1
je 0x10002ec35
cmp byte [rcx + 0x19], 4
jb 0x10002ec35
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cc8]
mov edx, 0x1a2
call fcn.10001c854
mov eax, ebx
mov rcx, qword [rsp + 0x330]
xor rcx, rsp
call fcn.10014e600
mov rbx, qword [rsp + 0x390]
add rsp, 0x340
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
xor ebx, ebx
test ebx, ebx
js 0x10002eae2
lea rcx, [rsi + 0x28]
call fcn.10010b368
xor edi, edi
and dword [rsp + 0x90], edi
mov dword [rsp + 0x50], edi
cmp dword [rsi + 0x170], edi
jbe 0x10002f03a
mov rax, qword [rsp + 0xb8]
xor ebp, ebp
mov qword [rsp + 0x80], r15
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x58], rax
mov rcx, rax
mov qword [rsp + 0x70], rbp
add rbp, qword [rsi + 0xd8]
test byte [rbp + 0x54], 1
jne 0x10002f004
cmp byte [rbp + 0x68], 0
je 0x10002f004
mov r12d, dword [rsp + 0x30]
cmp edi, r12d
jae 0x10002f2bb
test r13, r13
je 0x10002ecef
mov rcx, r13
call qword [sym.imp.ole32.dll_CoTaskMemFree]
and qword [rsp + 0x60], 0
lea rdx, [rsp + 0x60]
mov rcx, rbp
call fcn.100021160
mov ebx, eax
test eax, eax
js 0x10002f2a5
mov r13, qword [rsp + 0x60]
mov r15d, edi
mov rdi, qword [rsp + 0x48]
lea rdx, [rdi + r15*8]
xor r8d, r8d
mov rcx, r13
call fcn.10009bac4
mov ebx, eax
test eax, eax
js 0x10002f44e
cmp qword [rsp + 0x78], 0
je 0x10002ed45
lea rcx, [rsp + 0x78]
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
and qword [rsp + 0x78], 0
lea rdx, [rsp + 0x78]
lea rcx, [rbp + 0x44]
call qword [sym.imp.RPCRT4.dll_UuidToStringW]
test eax, eax
jne 0x10002f291
mov r9, qword [rsp + 0x78]
lea r8, [0x100004cf0]
lea rcx, [rsp + 0x120]
mov edx, 0x104
call fcn.100043f10
mov ebx, eax
test eax, eax
js 0x10002f296
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rsi + 0x1d8]
and qword [rsp + 0x38], 0
lea rdx, [rsp + 0x38]
call fcn.10009b954
mov ebx, eax
test eax, eax
js 0x10002f296
mov rax, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x38]
lea rdx, [rsp + 0x120]
lea r8, [rax + r15*8]
call fcn.10009bb88
mov ebx, eax
test eax, eax
js 0x10002f296
lea rcx, [rsi + 0x28]
xor edx, edx
call fcn.10010b1d8
mov ebx, eax
test eax, eax
js 0x10002f296
mov rcx, qword [rsp + 0x68]
mov rcx, qword [rcx]
call fcn.1000a04d0
lea rcx, [rsi + 0x28]
mov dil, al
call fcn.10010b368
test dil, dil
je 0x10002eecd
cmp qword [rbp + 0xe0], 0
je 0x10002ee81
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x10002ee4d
test byte [rcx + 0x1c], 1
je 0x10002ee4d
cmp byte [rcx + 0x19], 4
jb 0x10002ee4d
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cc8]
mov edx, 0x19f
call fcn.10001c854
mov rax, qword [rsp + 0x40]
mov rcx, qword [rbp + 0xe0]
xor r8d, r8d
lea rdx, [rax + r15*8]
call fcn.10009bac4
mov ebx, eax
test eax, eax
js 0x10002f287
mov r12, qword [rsp + 0x68]
mov r15, qword [rsp + 0x80]
jmp 0x10002efe0
test byte [rbp + 0x54], 8
jne 0x10002eea5
test byte [rbp + 0x54], 0x10
jne 0x10002eea5
lea r8, [0x100004d00]
lea rcx, [0x100004680]
mov edx, 0x24c2
call fcn.10009a050
mov rdx, qword [rsp + 0x58]
lea r8, [rbp + 0xe0]
mov rcx, rsi
mov rdx, qword [rdx]
call fcn.100039ffc
mov ebx, eax
test eax, eax
js 0x10002f287
mov r12, qword [rsp + 0x68]
jmp 0x10002ef40
mov edx, dword [rbp + 0x54]
lea r8, [rsp + 0xc8]
lea rcx, [rbp + 0x44]
xor r9d, r9d
call fcn.10009cbc4
mov ebx, eax
test eax, eax
js 0x10002f287
mov rcx, qword [rsp + 0xc8]
lea rdx, [rsp + 0x88]
call fcn.10009c6f0
mov ebx, eax
test eax, eax
js 0x10002f287
mov r12, qword [rsp + 0x68]
mov r9, qword [rbp + 0x60]
mov r8, qword [rsp + 0x88]
mov rdx, qword [r12]
lea rax, [rbp + 0xe0]
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.10002e568
mov ebx, eax
test eax, eax
js 0x10002f308
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsi + 0xd8]
lea rdx, [rax + r15*8]
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + rcx + 0xe0]
call fcn.10009b954
mov ebx, eax
test eax, eax
js 0x10002f308
mov r15, qword [rsp + 0x80]
mov rdx, qword [rbp + 0x60]
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_SetVolumeLabelW]
test eax, eax
jne 0x10002efe0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x10002efde
test byte [rcx + 0x1c], 1
je 0x10002efde
cmp byte [rcx + 0x19], 3
jb 0x10002efde
mov r9, qword [rbp + 0x60]
mov rcx, qword [rcx + 0x10]
movzx eax, dx
or eax, 0x80070000
test edx, edx
lea r8, [0x100003cc8]
cmovle eax, edx
mov edx, 0x1a0
mov dword [rsp + 0x28], eax
mov rax, qword [r15]
mov qword [rsp + 0x20], rax
call fcn.10001e39c
xor ebx, ebx
mov edi, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
add r12, 8
inc edi
add r15, 8
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x80], r15
mov dword [rsp + 0x50], edi
mov eax, dword [rsp + 0x90]
mov rbp, qword [rsp + 0x70]
add rcx, 8
inc eax
add rbp, 0x160
mov qword [rsp + 0x58], rcx
mov dword [rsp + 0x90], eax
mov qword [rsp + 0x70], rbp
cmp eax, dword [rsi + 0x170]
jb 0x10002ecb2
mov r12d, dword [rsp + 0x30]
xor r15d, r15d
mov dword [rsp + 0x68], r15d
test r12d, r12d
je 0x10002f397
mov rax, qword [rsp + 0x40]
mov r9, qword [rsp + 0x48]
xor edx, edx
sub r9, rax
mov qword [rsp + 0x58], rdx
mov r14, rax
mov qword [rsp + 0x70], r9
mov qword [rsp + 0xb0], rax
mov rax, qword [rsi + 0x338]
xor ecx, ecx
xor r13d, r13d
mov dword [rsp + 0x50], ecx
cmp dword [rax + 0xe0], ecx
jbe 0x10002f213
mov rdi, qword [rsi + 0x338]
cmp r13, qword [rdi + 0xc8]
jb 0x10002f0c9
lea r8, [0x100005a58]
lea rcx, [0x1000059a0]
mov edx, 0x2cd
call fcn.10009a050
mov ecx, dword [rsp + 0x50]
cmp r13, qword [rdi + 0xc8]
jae 0x10002f37f
lfence
mov rax, qword [rdi + 0xc0]
and dword [rsp + 0x80], 0
xor ebp, ebp
mov r12, qword [rax + r13*8]
cmp dword [r12 + 0x5c], ebp
jbe 0x10002f1e8
cmp rbp, qword [r12 + 0x68]
jb 0x10002f116
lea r8, [0x100005a58]
lea rcx, [0x1000059a0]
mov edx, 0x2cd
call fcn.10009a050
cmp rbp, qword [r12 + 0x68]
jae 0x10002f374
lfence
mov rax, qword [r12 + 0x60]
xor edi, edi
mov rax, qword [rax + rbp*8]
mov dword [rsp + 0x90], edi
mov qword [rsp + 0x88], rax
cmp dword [rax + 0x68], edi
jbe 0x10002f1c6
xor r14d, r14d
mov rax, qword [rax + 0x60]
lea rcx, [rsp + 0xe8]
mov r8d, 0x38
lea rdx, [r14 + rax]
call sub.msvcrt.dll_memcpy
mov r15, qword [rsp + 0xe8]
test r15, r15
je 0x10002f1a4
mov r9, qword [rsp + 0xb0]
mov r10, qword [rsp + 0x70]
mov rdx, qword [r15]
mov rdi, qword [r10 + r9]
or rcx, 0xffffffffffffffff
xor eax, eax
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, qword [r10 + r9]
call qword [sym.imp.msvcrt.dll__wcsnicmp]
test eax, eax
je 0x10002f2ca
mov edi, dword [rsp + 0x90]
mov rax, qword [rsp + 0x88]
inc edi
add r14, 0x38
mov dword [rsp + 0x90], edi
cmp edi, dword [rax + 0x68]
jb 0x10002f13f
mov r14, qword [rsp + 0xb0]
mov eax, dword [rsp + 0x80]
inc rbp
inc eax
mov dword [rsp + 0x80], eax
cmp eax, dword [r12 + 0x5c]
jb 0x10002f0ec
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsi + 0x338]
inc ecx
inc r13
mov dword [rsp + 0x50], ecx
cmp ecx, dword [rax + 0xe0]
jb 0x10002f090
mov r15d, dword [rsp + 0x68]
mov rdx, qword [rsp + 0x58]
mov r9, qword [rsp + 0x70]
xor ebp, ebp
xor r12d, r12d
cmp dword [rsp + 0xa8], ebp
jbe 0x10002f343
mov r13, qword [rsp + 0xa0]
mov rdi, qword [r9 + r14]
mov rdx, qword [r13]
or rcx, 0xffffffffffffffff
xor eax, eax
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, qword [r9 + r14]
call qword [sym.imp.msvcrt.dll__wcsnicmp]
test eax, eax
jne 0x10002f268
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x40]
cmp qword [rax + rcx], 0
jne 0x10002f312
inc r12d
inc rbp
add r13, 0x18
cmp r12d, dword [rsp + 0xa8]
jae 0x10002f33e
mov r9, qword [rsp + 0x70]
jmp 0x10002f22d
mov r15, qword [rsp + 0x40]
jmp 0x10002eae7
mov ebx, 0x8007000e
mov rbp, qword [rsp + 0x38]
mov r15, qword [rsp + 0x40]
jmp 0x10002eaf1
mov r15, qword [rsp + 0x40]
jmp 0x10002f2b1
mov r12d, dword [rsp + 0x30]
mov r13, qword [rsp + 0x60]
jmp 0x10002eae7
mov ebx, 0x8000ffff
mov r15, qword [rsp + 0x40]
jmp 0x10002eae7
mov r14, qword [rsp + 0xb0]
mov rcx, qword [r14]
test rcx, rcx
je 0x10002f1c6
lea rdx, [r15 + 8]
cmp qword [rdx], 0
jne 0x10002f1c6
call fcn.10009b954
mov ebx, eax
test eax, eax
jns 0x10002f1c6
mov r14, qword [rsp + 0x98]
mov r13, qword [rsp + 0x60]
mov r15, qword [rsp + 0x40]
jmp 0x10002eae2
mov rdx, qword [rsp + 0xa0]
lea rax, [rbp + rbp*2]
cmp qword [rdx + rax*8 + 8], 0
jne 0x10002f33e
lea rcx, [r12 + r12*2]
lea rdx, [rdx + rcx*8 + 8]
mov rcx, qword [r14]
call fcn.10009b954
mov ebx, eax
test eax, eax
js 0x10002f2fb
mov rdx, qword [rsp + 0x58]
mov r12d, dword [rsp + 0x30]
inc r15d
add rdx, 8
add r14, 8
mov dword [rsp + 0x68], r15d
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0xb0], r14
cmp r15d, r12d
jae 0x10002f38a
mov r9, qword [rsp + 0x70]
jmp 0x10002f074
mov ecx, 0x80070057
call fcn.1000196c8
int3
mov ecx, 0x80070057
call fcn.1000196c8
int3
mov r14, qword [rsp + 0x98]
mov r13, qword [rsp + 0x60]
lea rcx, [rsi + 0x2d0]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x10002f2c0
test byte [rcx + 0x1c], 1
je 0x10002f2c0
cmp byte [rcx + 0x19], 4
jb 0x10002f2c0
mov eax, dword [rsi + 0x2c8]
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cc8]
mov dword [rsp + 0x88], eax
mov eax, dword [rsi + 0x2cc]
mov dword [rsp + 0x8c], eax
mov eax, dword [rsi + 0x2d0]
mov dword [rsp + 0xa0], eax
mov eax, dword [rsi + 0x2d4]
mov dword [rsp + 0xa4], eax
movabs rax, 0x346dc5d63886594b
mov rdx, qword [rsp + 0xa0]
sub rdx, qword [rsp + 0x88]
mul rdx
mov r9, rdx
mov edx, 0x1a1
shr r9, 0xb
call fcn.10001d71c
jmp 0x10002f2c0
mov r14, qword [rsp + 0x98]
jmp 0x10002eae2
mov rbp, qword [rsp + 0x38]
mov r15, qword [rsp + 0x40]
jmp 0x10002eaf1