Function at 0x140002670
Capabilities:
Get disk information
Get disk size

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x158
movaps xmmword [rsp + 0x140], xmm6
mov r13, rcx
mov rax, qword [0x14008ae00]
xor rax, rsp
mov qword [rsp + 0x138], rax
xorps xmm6, xmm6
movaps xmmword [rsp + 0x100], xmm6
movaps xmmword [rsp + 0xf0], xmm6
movaps xmmword [rsp + 0xe0], xmm6
movaps xmmword [rsp + 0xd0], xmm6
movaps xmmword [rsp + 0xc0], xmm6
movaps xmmword [rsp + 0xb0], xmm6
movaps xmmword [rsp + 0xa0], xmm6
movaps xmmword [rsp + 0x90], xmm6
movups xmmword [rcx], xmm6
mov qword [rcx + 0x10], 0
mov qword [rcx + 0x18], recv
lea rdi, [rsp + 0x90]
mov ecx, 0x80
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
cmp byte [rsp + 0x90], 0
je 0x1400029a0
movabs rax, 0x1000000000000008
mov r14, qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
lea rsi, [rsp + 0x40]
lea rbx, [rsp + 0x38]
mov r15, qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
movabs rbp, 0xb000000000000000
add rax, 4
mov qword [rsp + 0x30], rax
jmp 0x14000277d
call fcn.14002bcbc
mov rcx, rdi
call fcn.14003b4f0
cmp byte [rax + rdi + 1], 0
lea rdi, [rax + rdi + 1]
je 0x1400029a0
mov rcx, rdi
call r14
cmp eax, 3
jne 0x140002765
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov rcx, rdi
xor edx, edx
mov r8, rsi
mov r9, rbx
call r15
mov rax, qword [r13 + 0x10]
test rax, rax
je 0x1400027f4
mov rcx, qword [r13 + 0x18]
cmp rcx, rax
jne 0x1400027d9
mov qword [rsp + 0x20], 1
mov edx, 1
mov rcx, r13
lea r9, [0x140081841]
call fcn.140004680
jmp 0x1400027f4
lea rdx, [rax + 1]
mov qword [r13 + 0x10], rdx
mov rdx, r13
cmp rcx, 0x10
jb 0x1400027ee
mov rdx, qword [r13]
mov word [rdx + rax], 0x20
mov rax, qword [rsp + 0x40]
mov rcx, rax
shr rcx, 0x1e
sub rax, qword [rsp + 0x38]
shr rax, 0x1e
mov qword [rsp + 0x128], rdi
mov qword [rsp + 0x110], rbp
mov dword [rsp + 0x130], eax
movabs rax, 0x1000000000000008
mov qword [rsp + 0x118], rax
mov dword [rsp + 0x134], ecx
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x120], rax
movaps xmmword [rsp + 0x70], xmm6
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x88], recv
mov edx, 0x43
lea r12, [rsp + 0x70]
mov rcx, r12
call fcn.140004be0
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x60], 3
lea rax, [rsp + 0x110]
mov qword [rsp + 0x68], rax
lea rax, str.:s__:d_:d_GB_
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], reloc.WS2_32.dll_send
lea rcx, [rsp + 0x48]
mov rdx, r12
lea r8, [rsp + 0x50]
lea r9, [rsp + 0x60]
call fcn.1400049b0
mov r8, qword [rsp + 0x80]
cmp qword [rsp + 0x88], 0x10
mov r9, r12
jb 0x1400028de
mov r9, qword [rsp + 0x70]
mov rcx, qword [r13 + 0x10]
mov rax, qword [r13 + 0x18]
mov rdx, rax
sub rdx, rcx
cmp rdx, r8
jae 0x140002910
mov qword [rsp + 0x20], r8
mov rcx, r13
mov rdx, r8
call fcn.140004680
jmp 0x140002958
mov r15, rbx
mov rbx, r14
mov r14, rsi
lea r12, [rcx + r8]
mov qword [r13 + 0x10], r12
mov rsi, r13
cmp rax, 0x10
jb 0x14000292e
mov rsi, qword [r13]
add rcx, rsi
mov rdx, r9
call fcn.140055720
mov byte [rsi + r12], 0
mov rsi, r14
mov r14, rbx
mov rbx, r15
mov r15, qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
movabs rbp, 0xb000000000000000
mov rax, qword [rsp + 0x88]
cmp rax, 0x10
jb 0x140002765
mov rcx, qword [rsp + 0x70]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x140002760
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x1400029cf
add rax, 0x28
mov rdx, rax
mov rcx, r8
jmp 0x140002760
mov rcx, qword [rsp + 0x138]
xor rcx, rsp
call fcn.14002bd70
mov rax, r13
movaps xmm6, xmmword [rsp + 0x140]
add rsp, 0x158
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.140038150
int3