Function at 0x100052194
Capabilities:
Get disk size

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x100165138]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rbp, rdx
mov rsi, rcx
lea r15, [0x1001653b8]
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x100052203
bt dword [rcx + 0x1c], 9
jae 0x100052203
cmp byte [rcx + 0x19], 4
jb 0x100052203
mov edx, 0x1c3
lea r8, [0x100003cf8]
mov rcx, qword [rcx + 0x10]
call fcn.10001c7b8
movdqu xmm0, xmmword [0x100001fe0]
movdqu xmmword [rsp + 0x78], xmm0
xor r14d, r14d
mov r13, r14
mov qword [rsp + 0x40], r14
mov r12, r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], r14
mov dword [rsp + 0x58], r14d
mov rcx, rbp
call fcn.100144b28
mov rdx, rbp
mov rcx, rsi
call fcn.10011b704
mov ebx, eax
cmp eax, r14d
jge 0x100052295
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x100052932
bt dword [rcx + 0x1c], 9
jae 0x100052932
cmp byte [rcx + 0x19], 3
jb 0x100052932
mov edx, 0x1c4
mov dword [rsp + 0x20], eax
mov r9, rsi
lea r8, [0x100003cf8]
mov rcx, qword [rcx + 0x10]
call fcn.10001daa4
mov rcx, qword [0x1001653b8]
jmp 0x100052932
lea rdx, [rbp + 0x10]
mov rcx, rsi
call fcn.10009b438
mov ebx, eax
cmp eax, r14d
jl 0x10005292b
lea rdx, [rbp + 0x18]
mov rcx, rsi
call fcn.100134eb4
mov ebx, eax
cmp eax, r14d
jge 0x10005230c
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x100052932
bt dword [rcx + 0x1c], 9
jae 0x100052932
cmp byte [rcx + 0x19], 3
jb 0x100052932
mov edx, 0x1c5
mov dword [rsp + 0x20], eax
mov r9, rsi
lea r8, [0x100003cf8]
mov rcx, qword [rcx + 0x10]
call fcn.10001daa4
mov rcx, qword [0x1001653b8]
jmp 0x100052932
mov ecx, dword [rbp]
call fcn.1000a31e8
bt eax, 9
jb 0x1000525a8
lea rdx, [rbp + 8]
mov rcx, rsi
call fcn.100136af8
mov ebx, eax
cmp eax, r14d
jge 0x10005237e
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x100052932
bt dword [rcx + 0x1c], 9
jae 0x100052932
cmp byte [rcx + 0x19], 3
jb 0x100052932
mov edx, 0x1c6
mov dword [rsp + 0x20], eax
mov r9, rsi
lea r8, [0x100003cf8]
mov rcx, qword [rcx + 0x10]
call fcn.10001daa4
mov rcx, qword [0x1001653b8]
jmp 0x100052932
lea rdx, [rbp + 0x20]
mov rcx, rsi
call fcn.1001360c0
mov ebx, eax
cmp eax, r14d
jge 0x1000523da
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x100052932
bt dword [rcx + 0x1c], 9
jae 0x100052932
cmp byte [rcx + 0x19], 3
jb 0x100052932
mov edx, 0x1c7
mov r9d, eax
lea r8, [0x100003cf8]
mov rcx, qword [rcx + 0x10]
call fcn.10001c7dc
mov rcx, qword [0x1001653b8]
jmp 0x100052932
cmp qword [rbp + 0x20], r14
je 0x100052544
mov qword [rbp + 0x28], r14
mov qword [rbp + 0x30], r14
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x60]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
cmp eax, r14d
jne 0x100052415
mov rcx, rsi
call fcn.100134ad4
mov ebx, eax
jmp 0x10005242a
mov rax, qword [rsp + 0x38]
mov qword [rbp + 0x28], rax
mov rax, qword [rsp + 0x60]
mov qword [rbp + 0x30], rax
mov ebx, r14d
cmp ebx, r14d
jge 0x100052478
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x100052932
bt dword [rcx + 0x1c], 9
jae 0x100052932
cmp byte [rcx + 0x19], 3
jb 0x100052932
mov edx, 0x1c8
mov r9d, ebx
lea r8, [0x100003cf8]
mov rcx, qword [rcx + 0x10]
call fcn.10001c7dc
mov rcx, qword [0x1001653b8]
jmp 0x100052932
mov byte [rsp + 0x30], r14b
lea rcx, [rsp + 0x30]
call fcn.1000a17a0
mov ebx, eax
cmp eax, r14d
jl 0x10005292b
lea rdx, [0x100004aa0]
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.msvcrt.dll__wcsicmp]
cmp eax, r14d
jne 0x100052508
cmp byte [rsp + 0x30], r14b
jne 0x100052508
mov byte [rsp + 0x20], 1
xor r9d, r9d
lea r8, [rbp + 0x40]
xor edx, edx
mov rcx, rsi
call fcn.100129a08
cmp eax, r14d
jge 0x1000525a8
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x1000524ff
bt dword [rcx + 0x1c], 9
jae 0x1000524ff
cmp byte [rcx + 0x19], 3
jb 0x1000524ff
mov edx, 0x1c9
mov r9d, eax
lea r8, [0x100003cf8]
mov rcx, qword [rcx + 0x10]
call fcn.10001c7dc
mov qword [rbp + 0x40], r14
jmp 0x1000525a8
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x1000525a8
bt dword [rcx + 0x1c], 9
jae 0x1000525a8
cmp byte [rcx + 0x19], 4
jb 0x1000525a8
mov edx, 0x1ca
mov r9, qword [rbp + 0x20]
lea r8, [0x100003cf8]
mov rcx, qword [rcx + 0x10]
call fcn.10001da24
jmp 0x1000525a8
lea rdx, [rbp + 0x28]
mov rcx, rsi
call fcn.100135c50
mov ebx, eax
cmp eax, r14d
jge 0x1000525a0
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x100052932
bt dword [rcx + 0x1c], 9
jae 0x100052932
cmp byte [rcx + 0x19], 3
jb 0x100052932
mov edx, 0x1cb
mov r9d, eax
lea r8, [0x100003cf8]
mov rcx, qword [rcx + 0x10]
call fcn.10001c7dc
mov rcx, qword [0x1001653b8]
jmp 0x100052932
mov rax, qword [rbp + 0x28]
mov qword [rbp + 0x30], rax
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1001239ac
mov ebx, eax
cmp eax, r14d
jge 0x100052616
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x100052607
bt dword [rcx + 0x1c], 9
jae 0x100052607
cmp byte [rcx + 0x19], 3
jb 0x100052607
mov edx, 0x1cc
mov dword [rsp + 0x20], eax
mov r9, rsi
lea r8, [0x100003cf8]
mov rcx, qword [rcx + 0x10]
call fcn.10001daa4
mov r12, qword [rsp + 0x48]
mov r13, qword [rsp + 0x40]
mov rcx, qword [0x1001653b8]
jmp 0x100052932
mov r12, qword [rsp + 0x48]
mov r13, qword [rsp + 0x40]
jmp 0x100052932
mov r13, qword [rsp + 0x40]
mov r12, qword [rsp + 0x48]
cmp r12, r14
jne 0x100052669
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x100052656
bt dword [rcx + 0x1c], 9
jae 0x100052656
cmp byte [rcx + 0x19], 4
jb 0x100052656
mov edx, 0x1cd
mov r9, rsi
lea r8, [0x100003cf8]
mov rcx, qword [rcx + 0x10]
call fcn.10001da24
mov byte [rbp + 0x48], r14b
mov ebx, r14d
mov rcx, qword [0x1001653b8]
jmp 0x100052826
lea rdx, [rbp + 0x38]
mov rcx, rsi
call fcn.100122de0
mov ebx, eax
cmp eax, r14d
jge 0x1000526c8
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x1000526be
bt dword [rcx + 0x1c], 9
jae 0x1000526be
cmp byte [rcx + 0x19], 3
jb 0x1000526be
mov edx, 0x1ce
mov r9d, eax
lea r8, [0x100003cf8]
mov rcx, qword [rcx + 0x10]
call fcn.10001c7dc
mov r13, qword [rsp + 0x40]
mov rcx, qword [0x1001653b8]
jmp 0x100052932
mov r13, qword [rsp + 0x40]
jmp 0x100052932
mov rdi, r14
cmp r12, r14
jbe 0x10005281f
mov qword [rsp + 0x38], r14
cmp rdi, r12
jae 0x1000527fc
lea r8, [rsp + 0x38]
mov rdx, qword [r13 + rdi*8]
mov rcx, rsi
call fcn.1001237a4
mov ebx, eax
cmp eax, r14d
jl 0x100052785
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0x38]
call fcn.100120da4
mov ebx, eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
cmp ebx, r14d
jge 0x100052775
mov byte [rbp + 0x48], r14b
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x100052761
bt dword [rcx + 0x1c], 9
jae 0x100052761
cmp byte [rcx + 0x19], 3
jb 0x100052761
mov edx, 0x1d0
mov qword [rsp + 0x20], r14
mov r9d, ebx
lea r8, [0x100003cf8]
mov rcx, qword [rcx + 0x10]
call fcn.10001d8f8
mov rcx, qword [0x1001653b8]
mov ebx, r14d
inc rdi
cmp rdi, r12
jae 0x100052826
jmp 0x1000526d4
mov byte [rbp + 0x48], 1
mov rcx, qword [0x1001653b8]
jmp 0x100052826
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x100052932
bt dword [rcx + 0x1c], 9
jae 0x100052932
cmp byte [rcx + 0x19], 3
jb 0x100052932
cmp rdi, r12
jb 0x1000527d2
lea r8, [0x100005ac8]
mov edx, 0x2cd
lea rcx, [0x100005a08]
call fcn.100099ad8
mov ecx, 0x80070057
call fcn.100019658
int3
mov edx, 0x1cf
mov dword [rsp + 0x20], eax
mov r9, qword [r13 + rdi*8]
lea r8, [0x100003cf8]
mov rcx, qword [rcx + 0x10]
call fcn.10001daa4
mov rcx, qword [0x1001653b8]
jmp 0x100052932
lea r8, [0x100005ac8]
mov edx, 0x2cd
lea rcx, [0x100005a08]
call fcn.100099ad8
mov ecx, 0x80070057
call fcn.100019658
int3
mov rcx, qword [0x1001653b8]
cmp dword [rbp], 2
je 0x100052832
cmp dword [rbp], 3
jne 0x10005289d
lea r8, [rbp + 0x4a]
lea rdx, [rbp + 0x50]
mov rcx, rsi
call fcn.10009c81c
mov ebx, eax
cmp eax, r14d
jge 0x100052896
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x100052932
bt dword [rcx + 0x1c], 9
jae 0x100052932
cmp byte [rcx + 0x19], 2
jb 0x100052932
mov edx, 0x1d1
mov dword [rsp + 0x20], eax
mov r9, rsi
lea r8, [0x100003cf8]
mov rcx, qword [rcx + 0x10]
call fcn.10001daa4
mov rcx, qword [0x1001653b8]
jmp 0x100052932
mov rcx, qword [0x1001653b8]
cmp dword [rbp], 1
jne 0x100052932
mov byte [rsp + 0x30], r14b
mov byte [rsp + 0x31], r14b
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x31]
mov rcx, rsi
call fcn.1001284d8
mov ebx, eax
cmp eax, r14d
jge 0x100052913
cmp eax, 0x8007000e
je 0x10005290a
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x100052905
test byte [rcx + 0x1c], 1
je 0x100052905
cmp byte [rcx + 0x19], 3
jb 0x100052905
mov edx, 0x1d2
mov dword [rsp + 0x20], eax
mov r9, rsi
lea r8, [0x100003cf8]
mov rcx, qword [rcx + 0x10]
call fcn.10001daa4
mov ebx, r14d
jmp 0x100052913
mov rcx, qword [0x1001653b8]
jmp 0x100052932
mov al, byte [rsp + 0x30]
neg al
sbb ecx, ecx
neg ecx
inc ecx
mov dword [rbp + 0x58], ecx
mov rcx, qword [0x1001653b8]
jmp 0x100052932
mov rcx, qword [0x1001653b8]
mov rdi, r14
cmp r12, r14
jbe 0x100052985
cmp rdi, r12
jae 0x100052962
cmp qword [r13 + rdi*8], r14
je 0x100052951
mov rcx, qword [r13 + rdi*8]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
inc rdi
cmp rdi, r12
jb 0x10005293a
mov rcx, qword [0x1001653b8]
jmp 0x100052985
lea r8, [0x100005ac8]
mov edx, 0x2cd
lea rcx, [0x100005a08]
call fcn.100099ad8
mov ecx, 0x80070057
call fcn.100019658
int3
cmp ebx, r14d
jge 0x100052999
mov rcx, rbp
call fcn.100144b28
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x1000529c1
bt dword [rcx + 0x1c], 9
jae 0x1000529c1
cmp byte [rcx + 0x19], 4
jb 0x1000529c1
mov edx, 0x1d3
lea r8, [0x100003cf8]
mov rcx, qword [rcx + 0x10]
call fcn.10001c7b8
nop
cmp r13, r14
je 0x1000529cf
mov rcx, r13
call qword [sym.imp.msvcrt.dll_free]
mov eax, ebx
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.10014e480
mov rbx, qword [rsp + 0xe0]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret