Function at 0x14003dbd0
Capabilities:
Get disk size

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x1b0
mov rax, qword [0x1403abd28]
xor rax, rsp
mov qword [rsp + 0x1a8], rax
mov rax, qword [rsp + 0x1c0]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x1c0]
call qword [rax + 0x18]
test eax, eax
je 0x14003e213
mov byte [rsp + 0x50], 0
lea rdi, [rsp + 0x51]
xor eax, eax
mov ecx, 0x7f
rep stosb byte [rdi], al
mov qword [rsp + 0x170], 0
mov qword [rsp + 0xe8], 0
mov r8d, 0x54
xor edx, edx
lea rcx, [rsp + 0x100]
call sub.MSVCR90.dll_memset
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x178]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 8
lea rax, [rsp + 0x170]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x7405c
mov rcx, qword [rsp + 0x1c0]
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [rsp + 0x168], eax
cmp dword [rsp + 0x168], 0
jne 0x14003dcb2
mov qword [rsp + 0x170], 0
xor edx, edx
mov rax, qword [rsp + 0x170]
mov ecx, 0x800
div rcx
mov qword [rsp + 0x170], rax
mov rax, qword [rsp + 0x1c0]
mov dword [rax + 0x38], 8
mov rcx, qword [rsp + 0x1c0]
add rcx, 0x38
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x178]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 8
mov qword [rsp + 0x20], rcx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x41018
mov rcx, qword [rsp + 0x1c0]
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [rsp + 0x168], eax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x180], rax
mov ecx, 0x38
mov rax, qword [rsp + 0x180]
mov word [rax], cx
mov rax, qword [rsp + 0x180]
mov byte [rax + 2], 0
mov rcx, qword [rsp + 0x180]
mov rax, qword [rsp + 0x1c0]
movzx eax, byte [rax + 0x3d]
mov byte [rcx + 3], al
mov rcx, qword [rsp + 0x180]
mov rax, qword [rsp + 0x1c0]
movzx eax, byte [rax + 0x3e]
mov byte [rcx + 4], al
mov rcx, qword [rsp + 0x180]
mov rax, qword [rsp + 0x1c0]
movzx eax, byte [rax + 0x3f]
mov byte [rcx + 5], al
mov rax, qword [rsp + 0x180]
mov byte [rax + 6], 0xa
mov rax, qword [rsp + 0x180]
mov byte [rax + 7], 0
mov rax, qword [rsp + 0x180]
mov byte [rax + 8], 1
mov rax, qword [rsp + 0x180]
mov dword [rax + 0xc], 0x54
mov rax, qword [rsp + 0x180]
mov dword [rax + 0x10], 0x3c
mov rcx, qword [rsp + 0x180]
lea rax, [rsp + 0x100]
mov qword [rcx + 0x18], rax
mov rax, qword [rsp + 0x180]
movzx ecx, word [rax]
mov rax, qword [rsp + 0x180]
mov dword [rax + 0x20], ecx
mov rax, qword [rsp + 0x180]
mov byte [rax + 0x24], 0x25
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x178]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x80
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x80
lea r8, [rsp + 0x50]
mov edx, 0x4d014
mov rcx, qword [rsp + 0x1c0]
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [rsp + 0x168], eax
cmp dword [rsp + 0x168], 0
je 0x14003df26
movzx eax, byte [rsp + 0x100]
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0xe8]
shl rax, 8
mov qword [rsp + 0xe8], rax
movzx ecx, byte [rsp + 0x101]
mov rax, qword [rsp + 0xe8]
or rax, rcx
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0xe8]
shl rax, 8
mov qword [rsp + 0xe8], rax
movzx ecx, byte [rsp + 0x102]
mov rax, qword [rsp + 0xe8]
or rax, rcx
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0xe8]
shl rax, 8
mov qword [rsp + 0xe8], rax
movzx ecx, byte [rsp + 0x103]
mov rax, qword [rsp + 0xe8]
or rax, rcx
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0xe8]
add rax, 1
mov qword [rsp + 0xe8], rax
jmp 0x14003df36
mov rax, qword [rsp + 0x170]
mov qword [rsp + 0xe8], rax
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x178]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x18
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x2404c
mov rcx, qword [rsp + 0x1c0]
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [rsp + 0x168], eax
cmp dword [rsp + 0x168], 0
jne 0x14003dfe3
mov dword [rsp + 0xe4], 0x800
mov dword [rsp + 0xe0], 0x20
mov dword [rsp + 0xdc], 0x40
mov ecx, dword [rsp + 0xdc]
xor edx, edx
mov rax, qword [rsp + 0xe8]
div rcx
mov ecx, dword [rsp + 0xe0]
xor edx, edx
div rcx
mov qword [rsp + 0xd0], rax
mov dword [rsp + 0xd8], 0xc
mov ecx, dword [rsp + 0xe0]
mov rax, qword [rsp + 0xd0]
imul rax, rcx
mov ecx, dword [rsp + 0xdc]
imul rax, rcx
mov qword [rsp + 0x160], rax
mov rax, qword [rsp + 0xd0]
add rax, 1
mov ecx, dword [rsp + 0xe0]
imul rax, rcx
mov ecx, dword [rsp + 0xdc]
imul rax, rcx
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0x160]
cmp qword [rsp + 0xe8], rax
jb 0x14003e067
mov rax, qword [rsp + 0xf0]
cmp qword [rsp + 0xe8], rax
ja 0x14003e067
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0x160], rax
mov rax, qword [rsp + 0x160]
cmp qword [rsp + 0x170], rax
jb 0x14003e09b
mov rax, qword [rsp + 0xf0]
cmp qword [rsp + 0x170], rax
ja 0x14003e09b
mov rax, qword [rsp + 0x170]
mov qword [rsp + 0x160], rax
mov rcx, qword [rsp + 0x1c0]
mov rax, qword [rsp + 0x160]
mov qword [rcx + 0x28], rax
xor edx, edx
mov eax, dword [rsp + 0xe4]
mov ecx, 0x200
div ecx
mov eax, eax
mov rcx, qword [rsp + 0x160]
imul rcx, rax
mov rax, qword [rsp + 0x1c0]
mov qword [rax + 0x30], rcx
mov rcx, qword [rsp + 0x1c0]
mov eax, dword [rsp + 0xe4]
mov dword [rcx + 0x24], eax
mov rcx, qword [rsp + 0x1c0]
mov eax, dword [rsp + 0xd0]
mov dword [rcx + 0x18], eax
mov rcx, qword [rsp + 0x1c0]
mov eax, dword [rsp + 0xe0]
mov dword [rcx + 0x20], eax
mov rcx, qword [rsp + 0x1c0]
mov eax, dword [rsp + 0xdc]
mov dword [rcx + 0x1c], eax
mov rcx, qword [rsp + 0x1c0]
call fcn.14003e910
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x188], 0
jmp 0x14003e155
mov eax, dword [rsp + 0x188]
add eax, 1
mov dword [rsp + 0x188], eax
mov rax, qword [rsp + 0x1c0]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x1c0]
call qword [rax + 0x58]
cmp dword [rsp + 0x188], eax
jge 0x14003e1eb
mov qword [rsp + 0x1a0], 0
mov qword [rsp + 0x190], 0
mov dword [rsp + 0x198], 0
mov rdi, qword [rsp + 0x1c0]
mov rdi, qword [rdi]
lea rax, [rsp + 0x198]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x190]
lea r8, [rsp + 0x1a0]
mov edx, dword [rsp + 0x188]
mov rcx, qword [rsp + 0x1c0]
call qword [rdi + 0x60]
mov rdx, qword [rsp + 0x190]
mov rax, qword [rsp + 0x40]
add rax, rdx
mov qword [rsp + 0x40], rax
jmp 0x14003e144
mov rax, qword [rsp + 0x1c0]
mov rax, qword [rax + 0x28]
cmp qword [rsp + 0x40], rax
jle 0x14003e20f
mov rcx, qword [rsp + 0x1c0]
mov rax, qword [rsp + 0x40]
mov qword [rcx + 0x28], rax
xor eax, eax
jmp 0x14003e218
mov eax, 0x10df
mov rcx, qword [rsp + 0x1a8]
xor rcx, rsp
call fcn.14012bc90
add rsp, 0x1b0
pop rdi
ret