Function at 0x140061d64
Capabilities:
Get disk size

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x30
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [0x14017d3a8]
lea r14, [0x14017d3a8]
mov r13d, 0x200
cmp rcx, r14
je 0x140061db2
test dword [rcx + 0x1c], r13d
je 0x140061db2
cmp byte [rcx + 0x19], 4
jb 0x140061db2
mov rcx, qword [rcx + 0x10]
lea edx, [r13 - 0x10]
lea r8, [0x1400068c8]
call fcn.14001dd24
lea r15, [rdi + 8]
mov rcx, qword [r15]
test rcx, rcx
je 0x140061dc4
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rbp, [rdi + 0x10]
mov rcx, qword [rbp]
test rcx, rcx
je 0x140061dd7
call qword [sym.imp.ole32.dll_CoTaskMemFree]
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 0x28]
call sub.msvcrt.dll_memset
mov rdx, rdi
mov rcx, rsi
call fcn.14012d388
mov ebx, eax
test eax, eax
jns 0x140061e3b
mov rcx, qword [0x14017d3a8]
cmp rcx, r14
je 0x140061fb6
test dword [rcx + 0x1c], r13d
je 0x140061fb6
cmp byte [rcx + 0x19], 2
jb 0x140061fb6
mov edx, 0x1f1
mov dword [rsp + 0x20], eax
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400068c8]
mov r9, rsi
call fcn.14001ecbc
jmp 0x140061faf
cmp dword [rdi], 1
je 0x140061e5d
cmp dword [rdi], 5
je 0x140061e5d
lea r8, [0x140005ac0]
lea rcx, [0x140005730]
mov edx, 0x277d
call fcn.1400a8be8
mov rdx, r15
mov rcx, rsi
call fcn.140152fbc
mov ebx, eax
test eax, eax
jns 0x140061e99
mov rcx, qword [0x14017d3a8]
cmp rcx, r14
je 0x140061fb6
test dword [rcx + 0x1c], r13d
je 0x140061fb6
cmp byte [rcx + 0x19], 2
jb 0x140061fb6
mov edx, 0x1f2
jmp 0x140061e1f
cmp qword [r15], 0
je 0x140061f65
mov rdx, rbp
mov rcx, rsi
call fcn.140153a9c
mov ebx, eax
test eax, eax
jns 0x140061ee2
mov rcx, qword [0x14017d3a8]
cmp rcx, r14
je 0x140061fb6
test dword [rcx + 0x1c], r13d
je 0x140061fb6
cmp byte [rcx + 0x19], 2
jb 0x140061fb6
mov edx, 0x1f3
jmp 0x140061e1f
cmp qword [r15], 0
je 0x140061f65
and qword [rdi + 0x18], 0
and qword [rdi + 0x20], 0
lea r9, [rsp + 0x88]
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x80]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x140061f20
mov rcx, rsi
call fcn.140154be4
mov ebx, eax
jmp 0x140061f37
mov rax, qword [rsp + 0x78]
xor ebx, ebx
mov qword [rdi + 0x18], rax
mov rax, qword [rsp + 0x80]
mov qword [rdi + 0x20], rax
test ebx, ebx
jns 0x140061fe5
mov rcx, qword [0x14017d3a8]
cmp rcx, r14
je 0x140061fb6
test dword [rcx + 0x1c], r13d
je 0x140061fb6
cmp byte [rcx + 0x19], 2
jb 0x140061fb6
mov edx, 0x1f4
mov dword [rsp + 0x20], ebx
jmp 0x140061e23
lea rdx, [rdi + 0x18]
mov rcx, rsi
call fcn.140152b50
mov ebx, eax
test eax, eax
jns 0x140061fa0
mov rcx, qword [0x14017d3a8]
lea r14, [0x14017d3a8]
cmp rcx, r14
je 0x140061fb6
test dword [rcx + 0x1c], r13d
je 0x140061fb6
cmp byte [rcx + 0x19], 2
jb 0x140061fb6
mov edx, 0x1f5
jmp 0x140061e1f
mov rax, qword [rdi + 0x18]
lea r14, [0x14017d3a8]
mov qword [rdi + 0x20], rax
mov rcx, qword [0x14017d3a8]
test ebx, ebx
jns 0x140061fec
mov rcx, qword [r15]
test rcx, rcx
je 0x140061fc8
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rbp]
test rcx, rcx
je 0x140061fd7
call qword [sym.imp.ole32.dll_CoTaskMemFree]
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 0x28]
call sub.msvcrt.dll_memset
mov rcx, qword [0x14017d3a8]
cmp rcx, r14
je 0x140062012
test dword [rcx + 0x1c], r13d
je 0x140062012
cmp byte [rcx + 0x19], 4
jb 0x140062012
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400068c8]
mov edx, 0x1f6
call fcn.14001dd24
mov eax, ebx
add rsp, 0x30
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret