Function at 0x14003a658
Capabilities:
Get disk size

Disassembly:
mov qword [rsp + 0x18], r8
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xa8
mov rbx, r8
mov rdi, rdx
mov r14, rcx
mov rcx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x14003a6b2
test byte [rcx + 0x1c], 1
je 0x14003a6b2
cmp byte [rcx + 0x19], 4
jb 0x14003a6b2
mov rcx, qword [rcx + 0x10]
lea r8, [0x140003c28]
mov edx, 0x1c5
call fcn.14001dd24
xor r12d, r12d
cmp dword [r14 + reloc.ADVAPI32.dll_TraceEvent], 1
mov eax, r12d
mov qword [rbp + 0x7f], r12
mov r13d, r12d
mov qword [rbp - 0x39], r12
mov esi, r12d
mov qword [rbp - 0x41], r12
mov qword [rbp - 0x31], rax
mov qword [rbp - 0x49], rax
mov qword [rbp - 0x21], r12
mov r15d, r12d
mov qword [rbp + 0x67], r12
mov qword [rbp - 0x29], r12
mov qword [rbp + 0x6f], r12
jne 0x14003a707
lea r8, [0x1400043f0]
lea rcx, [0x140003c50]
mov edx, 0x29c0
call fcn.1400a8be8
test rdi, rdi
jne 0x14003a724
lea r8, [0x140004488]
lea rcx, [0x140003c50]
mov edx, 0x29c1
call fcn.1400a8be8
test rbx, rbx
jne 0x14003a741
lea r8, [0x140004498]
lea rcx, [0x140003c50]
mov edx, 0x29c2
call fcn.1400a8be8
mov qword [rbx], r12
mov rax, qword [rdi + 0xd8]
mov qword [rbp - 0x19], rax
test rax, rax
jne 0x14003a76c
lea r8, [0x1400044b0]
lea rcx, [0x140003c50]
mov edx, 0x29c6
call fcn.1400a8be8
lea rdx, [rbp - 0x21]
mov rcx, rdi
call fcn.14002bf30
mov ebx, eax
test eax, eax
js 0x14003a8b6
lea r15, [rdi + 0xe0]
cmp qword [r15], r12
jne 0x14003a9ff
movups xmm0, xmmword [rdi + 0x44]
mov r8, qword [r14 + 0x1d8]
mov edx, dword [rdi + 0x54]
lea r9, [rbp + 0x7f]
lea rcx, [rbp - 9]
movdqu xmmword [rbp - 9], xmm0
call fcn.140130a2c
mov ebx, eax
test eax, eax
js 0x14003a8b2
test byte [rdi + 0x54], 0x10
jne 0x14003a9a8
mov rcx, qword [r14 + 0x158]
lea r8, [rbp + 0x67]
lea rdx, [0x140001800]
call fcn.1400a9ab8
mov ebx, eax
test eax, eax
js 0x14003a8b2
lea rcx, [r14 + 0x28]
xor edx, edx
call fcn.14011e208
mov ebx, eax
test eax, eax
js 0x14003a8b2
mov rbx, qword [rbp + 0x67]
lea r9, [rbp + 7]
lea r8, [rbp + 0xf]
lea rdx, [rbp - 9]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x14003a825
mov rcx, rbx
call fcn.140154be4
mov ebx, eax
jmp 0x14003a827
xor ebx, ebx
test ebx, ebx
js 0x14003a8b2
lea rcx, [r14 + 0x28]
call fcn.14011e39c
mov edx, dword [rdi + 0x54]
lea r8, [rbp - 0x39]
lea rcx, [rdi + 0x44]
xor r9d, r9d
call fcn.1400ac7e4
mov r13, qword [rbp - 0x39]
mov ebx, eax
test eax, eax
js 0x14003a8b2
lea rdx, [rbp - 0x29]
mov rcx, r13
call fcn.1400ac2a4
mov ebx, eax
test eax, eax
js 0x14003a8b2
lea rdx, [rbp + 0x6f]
mov rcx, r13
call fcn.140152fbc
mov r12, qword [rbp + 0x6f]
mov ebx, eax
test eax, eax
js 0x14003a8ac
mov eax, dword [rdi + 0x40]
mov r9, qword [rdi + 0x60]
mov r8, qword [rbp - 0x29]
mov rdx, qword [rbp + 0x7f]
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], eax
mov rcx, r14
mov byte [rsp + 0x20], sil
call fcn.1400397ec
jmp 0x14003a9f3
mov r15, qword [rbp + 0x67]
jmp 0x14003a8ba
mov r15, qword [rbp + 0x67]
mov r12, qword [rbp + 0x6f]
lea rcx, [r14 + 0x28]
call fcn.14011e39c
test ebx, ebx
jns 0x14003a8f6
lea rcx, [r14 + 0x58]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [r14 + 0x20], 0
jl 0x14003a8ec
mov ecx, 0x807800c5
xor eax, eax
cmp ebx, ecx
mov dword [r14 + 0x20], ecx
cmovne eax, ebx
mov dword [r14 + 0x24], eax
lea rcx, [r14 + 0x58]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test r15, r15
je 0x14003a904
mov rcx, r15
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rbp - 0x21]
test rcx, rcx
je 0x14003a913
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rbp + 0x7f]
test rcx, rcx
je 0x14003a922
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test rsi, rsi
je 0x14003a930
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test r13, r13
je 0x14003a93e
mov rcx, r13
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rax, qword [rbp - 0x31]
test rax, rax
je 0x14003a950
mov rcx, rax
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test r12, r12
je 0x14003a95e
mov rcx, r12
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x14003a992
test byte [rcx + 0x1c], 1
je 0x14003a992
cmp byte [rcx + 0x19], 4
jb 0x14003a992
mov rcx, qword [rcx + 0x10]
lea r8, [0x140003c28]
mov edx, 0x1c8
call fcn.14001dd24
mov eax, ebx
add rsp, 0xa8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov rcx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x14003a9e0
test byte [rcx + 0x1c], 1
je 0x14003a9e0
cmp byte [rcx + 0x19], 4
jb 0x14003a9e0
mov r9, qword [rbp + 0x7f]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140003c28]
mov edx, 0x1c6
call fcn.14001ec40
mov rdx, qword [rbp + 0x7f]
mov r8, r15
mov rcx, r14
call fcn.140046200
mov r12, qword [rbp + 0x6f]
mov ebx, eax
test eax, eax
js 0x14003a8ac
jmp 0x14003aa03
mov r12, qword [rbp + 0x6f]
mov rcx, qword [r15]
lea rdx, [rbp - 0x41]
call fcn.1400a97c0
mov rsi, qword [rbp - 0x41]
mov ebx, eax
test eax, eax
js 0x14003a8ac
mov rdx, qword [rdi + 0x60]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetVolumeLabelW]
test eax, eax
jne 0x14003aa88
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r11d, eax
mov rcx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x14003aa88
test byte [rcx + 0x1c], 1
je 0x14003aa88
cmp byte [rcx + 0x19], 3
jb 0x14003aa88
mov r9, qword [rdi + 0x60]
mov rcx, qword [rcx + 0x10]
movzx eax, r11w
or eax, 0x80070000
test r11d, r11d
lea r8, [0x140003c28]
cmovle eax, r11d
mov edx, 0x1c7
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
call fcn.140028ec8
test rsi, rsi
jne 0x14003aaa5
lea r8, [0x1400044c0]
lea rcx, [0x140003c50]
mov edx, 0x2a3f
call fcn.1400a8be8
mov rcx, qword [rbp - 0x19]
mov rdx, rsi
call fcn.1400998c4
mov ebx, eax
test eax, eax
js 0x14003a8ac
lea rdx, [rbp - 0x49]
mov rcx, rsi
call fcn.1400a97c0
mov r15, qword [rbp + 0x67]
mov ebx, eax
test eax, eax
mov rax, qword [rbp - 0x49]
js 0x14003aae6
mov rcx, qword [rbp + 0x77]
and qword [rbp - 0x31], 0
mov qword [rcx], rax
jmp 0x14003a8ba
mov qword [rbp - 0x31], rax
jmp 0x14003a8ba