Function at 0x140032ce0
Capabilities:
Get disk size

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x120
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1401bbe90]
xor rax, rsp
mov qword [rsp + 0x110], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
call fcn.1400284b0
mov rcx, rax
lea r9, [rsp + 0x38]
mov r8d, 0x18
mov rdx, rbx
call fcn.1400405e0
test eax, eax
je 0x140032ff4
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x19]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x140032fe9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140032fe9
mov r8d, dword [0x1401c3d80]
lea ecx, [r8 + 2]
lea eax, [r8 + 1]
imul ecx, eax
imul ecx, r8d
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x16
sub ecx, edx
cmp ecx, 8
jne 0x140032e1c
xor ecx, ecx
mov eax, 0x94f2095
imul r8d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x37
mov eax, r8d
sub eax, edx
cmp eax, 0xd3
je 0x140032e16
nop word [rax + rax]
mov eax, r8d
or eax, 0xffffffb5
add r8d, eax
inc ecx
mov eax, r8d
imul eax, r8d
cmp ecx, eax
jg 0x140032e16
mov eax, 0x94f2095
imul r8d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x37
mov eax, r8d
sub eax, edx
cmp eax, 0xd3
jne 0x140032de0
mov dword [0x1401c3d80], ecx
mov edx, dword [rsp + 0x34]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x140032fa5
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x34]
mov r8, rbx
mov edx, 0x19
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x140032f64
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
movzx ecx, byte [rax]
dec cl
movzx edx, cl
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
mov ecx, dword [rax]
cmp ecx, 0x2000
jae 0x140032e9c
mov dword [rsi], 1
lea rdx, str.Low_Integrity
mov rcx, rdi
call fcn.1400030b0
jmp 0x140033004
cmp ecx, 0x3000
jae 0x140032f4a
call fcn.140032c10
or rbx, 0xffffffffffffffff
test al, al
jne 0x140032ef6
mov ecx, dword [0x1401c3d80]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x64
sub ecx, edx
add ecx, 0x2f4
movsxd rcx, ecx
mov eax, 4
mul rcx
cmovo rax, rbx
mov rcx, rax
call fcn.1400cd108
mov rcx, rax
call fcn.1400cebfc
mov dword [rsi], 2
lea rdx, str.Mediu
lea rcx, [rsp + 0x40]
call fcn.140002110
nop
lea r8, str.m_Integrity
mov rdx, rax
mov rcx, rdi
call fcn.14001a660
mov dword [rsp + 0x30], 1
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14003300c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x14003300c
mov dword [rsi], 3
lea rdx, str.High_Integrity
mov rcx, rdi
call fcn.1400030b0
jmp 0x140033004
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r8d, dword [0x1401c3d80]
mov ecx, r8d
imul ecx, r8d
imul ecx, r8d
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0xd
sub ecx, edx
cmp ecx, 0xa
jne 0x140032fac
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
mov r8d, dword [0x1401c3d80]
imul r8d, r8d
mov eax, 0x2aaaaaab
imul r8d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
shl eax, 2
sub r8d, eax
cmp r8d, 6
jne 0x140032fe9
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [0x14014f358]
mov rcx, rdi
call fcn.140002110
nop
mov dword [rsp + 0x30], 1
mov rax, rdi
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.1400cdac0
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret