Function at 0x10002e6f8
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, 0x330
mov rax, qword [0x100165138]
xor rax, rsp
mov qword [rsp + 0x320], 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 0x10002e768
test byte [rcx + 0x1c], 1
je 0x10002e768
cmp byte [rcx + 0x19], 4
jb 0x10002e768
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003d08]
mov edx, 0x19e
call fcn.10001c7b8
xor ebx, ebx
cmp dword [rsi + 0x14c], 1
mov ebp, ebx
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0xd0], rbx
mov qword [rsp + 0xb0], rbx
mov r15, rbx
mov qword [rsp + 0x98], rbx
mov r14, rbx
mov qword [rsp + 0x50], rbx
mov r13, rbx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0xb8], rbx
mov qword [rsp + 0xc0], rbx
jne 0x10002e7d6
lea r8, [0x100004d20]
lea rcx, [0x1000046e0]
mov edx, 0x23e6
call fcn.100099ad8
cmp byte [rsi + 0x185], bl
jne 0x10002e7f6
lea r8, [0x100004d40]
lea rcx, [0x1000046e0]
mov edx, 0x23e7
call fcn.100099ad8
lea rcx, [rsp + 0x110]
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 0x10002e84d
mov rax, qword [rsi + 0xd8]
mov ecx, dword [rsi + 0x170]
add rax, 0x68
test byte [rax - 0x14], 1
jne 0x10002e83d
cmp byte [rax], bl
je 0x10002e83d
inc ebp
add rax, 0x160
sub rcx, 1
jne 0x10002e831
mov dword [rsp + 0x30], ebp
mov edi, ebp
shl rdi, 3
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov qword [rsp + 0xc8], rax
cmp rax, rbx
je 0x10002e88c
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 + 0xb0], rax
cmp rax, rbx
jne 0x10002e89e
mov ebx, 0x8007000e
mov r12, qword [rsp + 0x38]
mov rdi, r13
jmp 0x10002ee13
mov r8, rdi
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov eax, 0xffffffff
cmp rdi, rax
jbe 0x10002e8bc
mov ebx, 0x80070216
jmp 0x10002e891
mov edi, edi
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov r15, rax
mov qword [rsp + 0x48], rax
cmp rax, rbx
je 0x10002e88c
mov r8, rdi
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov r12d, ebx
mov ebp, ebx
cmp dword [rsi + 0x170], ebx
jbe 0x10002e9cd
mov r14d, dword [rsp + 0x30]
mov rdi, rbx
mov rax, qword [rsi + 0xd8]
test byte [rdi + rax + 0x54], 1
jne 0x10002e9b8
cmp byte [rdi + rax + 0x68], bl
je 0x10002e9b8
cmp r13, rbx
je 0x10002e929
mov rcx, r13
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov qword [rsp + 0x38], rbx
mov ecx, ebp
lea rdx, [rsp + 0x38]
imul rcx, rcx, 0x160
add rcx, qword [rsi + 0xd8]
call fcn.1000210d4
mov ebx, eax
test eax, eax
js 0x10002efb0
mov rcx, qword [rsi + 0x338]
mov r13, qword [rsp + 0x38]
xor ebx, ebx
mov qword [rsp + 0xb8], rbx
mov qword [rsp + 0xc0], rbx
mov rax, qword [rcx]
lea r9, [rsp + 0xc0]
lea r8, [rsp + 0xb8]
mov rdx, r13
call qword [rax + 0x50]
cmp r12d, r14d
jae 0x10002ea37
mov rcx, qword [rsi + 0xd8]
mov rax, qword [rsp + 0xb8]
inc r12d
mov qword [rdi + rcx + 0x30], rax
mov rcx, qword [rsi + 0xd8]
mov rax, qword [rsp + 0xc0]
mov qword [rdi + rcx + 0x38], rax
inc ebp
add rdi, 0x160
cmp ebp, dword [rsi + 0x170]
jb 0x10002e8fa
mov rcx, qword [rsi + 0x158]
lea r8, [rsp + 0x50]
lea rdx, [0x100002954]
call fcn.10009b5b0
mov ebx, eax
test eax, eax
js 0x10002efb0
lea rdi, [rsi + 0x28]
xor edx, edx
mov rcx, rdi
call fcn.10010ad48
mov ebx, eax
test eax, eax
js 0x10002efb0
mov r14, qword [rsp + 0x50]
lea r9, [rsp + 0x88]
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x70]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x10002ea49
mov rcx, r14
call fcn.100134ad4
mov ebx, eax
jmp 0x10002ea4b
mov r12, qword [rsp + 0x38]
mov ebx, 0x8000ffff
mov ebp, r14d
jmp 0x10002ee09
xor ebx, ebx
test ebx, ebx
js 0x10002f36a
mov rcx, rdi
call fcn.10010aed8
xor r14d, r14d
and dword [rsp + 0x58], r14d
cmp dword [rsi + 0x170], r14d
jbe 0x10002efc4
mov rax, qword [rsp + 0xb0]
xor ebp, ebp
mov qword [rsp + 0x80], r15
mov r15, rax
mov qword [rsp + 0x60], rax
mov rcx, rax
mov qword [rsp + 0x70], rbp
add rbp, qword [rsi + 0xd8]
test byte [rbp + 0x54], 1
jne 0x10002edc1
cmp byte [rbp + 0x68], 0
je 0x10002edc1
cmp r14d, dword [rsp + 0x30]
jae 0x10002efba
test r13, r13
je 0x10002eacc
mov rcx, r13
call qword [sym.imp.ole32.dll_CoTaskMemFree]
and qword [rsp + 0x38], 0
lea rdx, [rsp + 0x38]
mov rcx, rbp
call fcn.1000210d4
mov ebx, eax
test eax, eax
js 0x10002efab
mov rax, qword [rsp + 0xc8]
mov r12, qword [rsp + 0x38]
xor r8d, r8d
lea rdx, [rax + r14*8]
mov rcx, r12
call fcn.10009b4ec
mov ebx, eax
test eax, eax
js 0x10002ee00
cmp qword [rsp + 0x78], 0
je 0x10002eb22
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 0x10002efa1
mov r9, qword [rsp + 0x78]
lea r8, [0x100004d50]
lea rcx, [rsp + 0x110]
mov edx, 0x104
call fcn.100043ec0
mov ebx, eax
test eax, eax
js 0x10002edfb
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rsi + 0x1d8]
and qword [rsp + 0x68], 0
lea rdx, [rsp + 0x68]
call fcn.10009b37c
mov ebx, eax
test eax, eax
js 0x10002ef89
mov rax, qword [rsp + 0xb0]
lea rdx, [rsp + 0x110]
lea r8, [rax + r14*8]
mov rax, qword [rsp + 0x68]
mov rcx, rax
mov qword [rsp + 0x40], rax
call fcn.10009b5b0
mov ebx, eax
test eax, eax
js 0x10002f352
xor edx, edx
mov rcx, rdi
call fcn.10010ad48
mov ebx, eax
test eax, eax
js 0x10002edfb
mov rcx, qword [r15]
call fcn.10009fef4
lea rcx, [rsi + 0x28]
mov dil, al
call fcn.10010aed8
test dil, dil
je 0x10002ec98
cmp qword [rbp + 0xe0], 0
je 0x10002ec5b
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x10002ec2c
test byte [rcx + 0x1c], 1
je 0x10002ec2c
cmp byte [rcx + 0x19], 4
jb 0x10002ec2c
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003d08]
mov edx, 0x19f
call fcn.10001c7b8
mov rax, qword [rsp + 0x48]
mov rcx, qword [rbp + 0xe0]
xor r8d, r8d
lea rdx, [rax + r14*8]
call fcn.10009b4ec
mov ebx, eax
test eax, eax
js 0x10002edfb
mov rdi, qword [rsp + 0x80]
jmp 0x10002eda5
test byte [rbp + 0x54], 8
jne 0x10002ec7f
test byte [rbp + 0x54], 0x10
jne 0x10002ec7f
lea r8, [0x100004d60]
lea rcx, [0x1000046e0]
mov edx, 0x24c2
call fcn.100099ad8
mov rdx, qword [rsp + 0x60]
lea r8, [rbp + 0xe0]
mov rcx, rsi
mov rdx, qword [rdx]
call fcn.100039f1c
jmp 0x10002ecfb
mov edx, dword [rbp + 0x54]
lea r8, [rsp + 0xd0]
lea rcx, [rbp + 0x44]
xor r9d, r9d
call fcn.10009c5ec
mov ebx, eax
test eax, eax
js 0x10002edfb
mov rcx, qword [rsp + 0xd0]
lea rdx, [rsp + 0x98]
call fcn.10009c118
mov ebx, eax
test eax, eax
js 0x10002edfb
mov r9, qword [rbp + 0x60]
mov r8, qword [rsp + 0x98]
mov rdx, qword [r15]
lea rax, [rbp + 0xe0]
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.10002e4dc
mov ebx, eax
test eax, eax
js 0x10002edfb
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsi + 0xd8]
lea rdx, [rax + r14*8]
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + rcx + 0xe0]
call fcn.10009b37c
mov ebx, eax
test eax, eax
js 0x10002edfb
mov rdi, qword [rsp + 0x80]
mov rdx, qword [rbp + 0x60]
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_SetVolumeLabelW]
test eax, eax
jne 0x10002eda5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x10002eda3
test byte [rcx + 0x1c], 1
je 0x10002eda3
cmp byte [rcx + 0x19], 3
jb 0x10002eda3
mov r9, qword [rbp + 0x60]
mov rcx, qword [rcx + 0x10]
movzx eax, dx
or eax, 0x80070000
test edx, edx
lea r8, [0x100003d08]
cmovle eax, edx
mov edx, 0x1a0
mov dword [rsp + 0x28], eax
mov rax, qword [rdi]
mov qword [rsp + 0x20], rax
call fcn.10001e360
xor ebx, ebx
mov rcx, qword [rsp + 0x60]
inc r14d
add r15, 8
add rdi, 8
mov qword [rsp + 0x80], rdi
lea rdi, [rsi + 0x28]
mov eax, dword [rsp + 0x58]
mov rbp, qword [rsp + 0x70]
add rcx, 8
inc eax
add rbp, 0x160
mov qword [rsp + 0x60], rcx
mov dword [rsp + 0x58], eax
mov qword [rsp + 0x70], rbp
cmp eax, dword [rsi + 0x170]
jae 0x10002efc4
mov r13, qword [rsp + 0x38]
jmp 0x10002ea92
mov r12, qword [rsp + 0x38]
mov r15, qword [rsp + 0x48]
mov ebp, dword [rsp + 0x30]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x50]
lea rcx, [rsi + 0x28]
call fcn.10010aed8
test ebx, ebx
jns 0x10002ee2a
mov dword [rsi + 0x20], 0x807800c5
mov dword [rsi + 0x24], ebx
cmp qword [rsp + 0x78], 0
je 0x10002ee3d
lea rcx, [rsp + 0x78]
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
test rdi, rdi
je 0x10002ee4b
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test r14, r14
je 0x10002ee59
mov rcx, r14
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rax, qword [rsp + 0xd0]
test rax, rax
je 0x10002ee6f
mov rcx, rax
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov r13, qword [rsp + 0xc8]
mov r14d, ebp
test r13, r13
je 0x10002eead
test ebp, ebp
je 0x10002eea4
mov rdi, r13
mov esi, ebp
mov rcx, qword [rdi]
test rcx, rcx
je 0x10002ee9a
call qword [sym.imp.ole32.dll_CoTaskMemFree]
and qword [rdi], 0
add rdi, 8
sub rsi, 1
jne 0x10002ee88
mov rcx, r13
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov r13, qword [rsp + 0xb0]
test r13, r13
je 0x10002eee9
test ebp, ebp
je 0x10002eee0
mov rdi, r13
mov rsi, r14
mov rcx, qword [rdi]
test rcx, rcx
je 0x10002eed6
call qword [sym.imp.ole32.dll_CoTaskMemFree]
and qword [rdi], 0
add rdi, 8
sub rsi, 1
jne 0x10002eec4
mov rcx, r13
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test r15, r15
je 0x10002ef1a
test ebp, ebp
je 0x10002ef11
mov rdi, r15
mov rcx, qword [rdi]
test rcx, rcx
je 0x10002ef07
call qword [sym.imp.ole32.dll_CoTaskMemFree]
and qword [rdi], 0
add rdi, 8
sub r14, 1
jne 0x10002eef5
mov rcx, r15
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test r12, r12
je 0x10002ef28
mov rcx, r12
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x10002ef5c
test byte [rcx + 0x1c], 1
je 0x10002ef5c
cmp byte [rcx + 0x19], 4
jb 0x10002ef5c
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003d08]
mov edx, 0x1a2
call fcn.10001c7b8
mov eax, ebx
mov rcx, qword [rsp + 0x320]
xor rcx, rsp
call fcn.10014e480
mov rbx, qword [rsp + 0x380]
add rsp, 0x330
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rdi, qword [rsp + 0x68]
mov r12, qword [rsp + 0x38]
mov r15, qword [rsp + 0x48]
mov ebp, dword [rsp + 0x30]
jmp 0x10002ee0e
mov ebx, 0x8007000e
jmp 0x10002edfb
mov r15, qword [rsp + 0x48]
mov r12, qword [rsp + 0x38]
jmp 0x10002ee05
mov ebx, 0x8000ffff
jmp 0x10002edfb
mov ebp, dword [rsp + 0x30]
xor r15d, r15d
mov dword [rsp + 0x80], r15d
test ebp, ebp
je 0x10002f2aa
mov rax, qword [rsp + 0x48]
mov r9, qword [rsp + 0xc8]
xor edx, edx
sub r9, rax
mov qword [rsp + 0x60], rdx
mov r14, rax
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x70], rax
mov rax, qword [rsi + 0x338]
xor ecx, ecx
xor ebp, ebp
mov dword [rsp + 0x58], ecx
mov qword [rsp + 0x88], rbp
cmp dword [rax + 0xe0], ecx
jbe 0x10002f1c3
mov rdi, qword [rsi + 0x338]
cmp rbp, qword [rdi + 0xc8]
jb 0x10002f05b
lea r8, [0x100005ac8]
lea rcx, [0x100005a08]
mov edx, 0x2cd
call fcn.100099ad8
mov ecx, dword [rsp + 0x58]
cmp rbp, qword [rdi + 0xc8]
jae 0x10002f29f
mov rax, qword [rdi + 0xc0]
and dword [rsp + 0x98], 0
mov r12, qword [rax + rbp*8]
xor ebp, ebp
cmp dword [r12 + 0x5c], ebp
jbe 0x10002f180
cmp rbp, qword [r12 + 0x68]
jb 0x10002f0a5
lea r8, [0x100005ac8]
lea rcx, [0x100005a08]
mov edx, 0x2cd
call fcn.100099ad8
cmp rbp, qword [r12 + 0x68]
jae 0x10002f294
mov rax, qword [r12 + 0x60]
xor edi, edi
mov r15, qword [rax + rbp*8]
mov dword [rsp + 0x90], edi
cmp dword [r15 + 0x68], edi
jbe 0x10002f15e
xor r13d, r13d
mov rax, qword [r15 + 0x60]
lea rcx, [rsp + 0xd8]
mov r8d, 0x38
lea rdx, [r13 + rax]
call sub.msvcrt.dll_memcpy
mov r14, qword [rsp + 0xd8]
test r14, r14
je 0x10002f128
mov r9, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
mov rdx, qword [r14]
mov rdi, qword [r9 + rdi]
or rcx, 0xffffffffffffffff
xor eax, eax
repne scasw ax, word [rdi]
mov rdi, qword [rsp + 0x70]
not rcx
lea r8, [rcx - 1]
mov rcx, qword [r9 + rdi]
call qword [sym.imp.msvcrt.dll__wcsnicmp]
test eax, eax
je 0x10002f13d
mov edi, dword [rsp + 0x90]
inc edi
add r13, 0x38
mov dword [rsp + 0x90], edi
cmp edi, dword [r15 + 0x68]
jae 0x10002f15e
jmp 0x10002f0c4
mov rcx, qword [rdi]
test rcx, rcx
je 0x10002f15e
lea rdx, [r14 + 8]
cmp qword [rdx], 0
jne 0x10002f15e
call fcn.10009b37c
mov ebx, eax
test eax, eax
js 0x10002edfb
mov eax, dword [rsp + 0x98]
inc rbp
inc eax
mov dword [rsp + 0x98], eax
cmp eax, dword [r12 + 0x5c]
jb 0x10002f07b
mov ecx, dword [rsp + 0x58]
mov rbp, qword [rsp + 0x88]
mov rax, qword [rsi + 0x338]
inc ecx
inc rbp
mov dword [rsp + 0x58], ecx
mov qword [rsp + 0x88], rbp
cmp ecx, dword [rax + 0xe0]
jb 0x10002f022
mov r14, qword [rsp + 0x70]
mov r15d, dword [rsp + 0x80]
mov rdx, qword [rsp + 0x60]
mov r9, qword [rsp + 0x68]
xor ebp, ebp
xor r12d, r12d
cmp dword [rsp + 0xa8], ebp
jbe 0x10002f264
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 0x10002f214
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
cmp qword [rax + rcx], 0
jne 0x10002f22f
inc r12d
inc rbp
add r13, 0x18
cmp r12d, dword [rsp + 0xa8]
jae 0x10002f25f
mov r9, qword [rsp + 0x68]
jmp 0x10002f1dd
mov rdx, qword [rsp + 0xa0]
lea rax, [rbp + rbp*2]
cmp qword [rdx + rax*8 + 8], 0
jne 0x10002f25f
lea rcx, [r12 + r12*2]
lea rdx, [rdx + rcx*8 + 8]
mov rcx, qword [r14]
call fcn.10009b37c
mov ebx, eax
test eax, eax
js 0x10002edfb
mov rdx, qword [rsp + 0x60]
mov ebp, dword [rsp + 0x30]
inc r15d
add rdx, 8
add r14, 8
mov dword [rsp + 0x80], r15d
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x70], r14
cmp r15d, ebp
jae 0x10002f2aa
mov r9, qword [rsp + 0x68]
jmp 0x10002efff
mov ecx, 0x80070057
call fcn.100019658
int3
mov ecx, 0x80070057
call fcn.100019658
int3
lea rcx, [rsi + 0x2d0]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x10002f343
test byte [rcx + 0x1c], 1
je 0x10002f343
cmp byte [rcx + 0x19], 4
jb 0x10002f343
mov eax, dword [rsi + 0x2c8]
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003d08]
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.10001d680
mov r12, qword [rsp + 0x38]
mov r15, qword [rsp + 0x48]
jmp 0x10002ee09
mov r12, qword [rsp + 0x38]
mov r15, qword [rsp + 0x48]
mov ebp, dword [rsp + 0x30]
mov rdi, qword [rsp + 0x68]
jmp 0x10002ee0e
mov r12, qword [rsp + 0x38]
mov ebp, dword [rsp + 0x30]
mov rdi, qword [rsp + 0x40]
jmp 0x10002ee13