Function at 0x100329c0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10080ee6
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x100b0008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
cmp dword [edi + 0x14], 8
mov eax, edi
mov dword [edi + 0x10], 0
jb 0x10032a03
mov eax, dword [edi]
xor ecx, ecx
mov word [eax], cx
cmp dword [esi + 0x10], 2
jae 0x10032a15
xor al, al
jmp 0x10032c1e
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xb4], esp
push esi
call fcn.10007090
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb0]
call fcn.10071110
add esp, 0x18
mov dword [ebp - 4], 1
cmp dword [ebp - 0xa0], 0
jne 0x10032aab
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x9c]
cmp edx, 8
jb 0x10032a9b
mov ecx, dword [ebp - 0xb0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10032a91
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10032a91
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1007a1ea
add esp, 8
xor eax, eax
mov word [ebp - 0xb0], ax
xor al, al
jmp 0x10032c0a
push 0x80
lea eax, [ebp - 0x98]
mov dword [ebp - 0x16], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x10032ad2
mov eax, dword [esi]
mov ax, word [eax]
mov word [ebp - 0x18], ax
mov eax, esi
jb 0x10032adf
mov eax, dword [esi]
mov ax, word [eax + 2]
mov word [ebp - 0x16], ax
xor eax, eax
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x98]
push 0x40
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x10032a52
lea ecx, [ebp - 0x98]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10032b11
mov eax, dword [edi + 0x14]
sub ecx, edx
mov edx, dword [edi + 0x10]
sub eax, edx
sar ecx, 1
cmp ecx, eax
ja 0x10032b67
cmp dword [edi + 0x14], 8
lea eax, [ecx + edx]
mov dword [ebp - 0xb4], eax
mov ebx, edi
mov dword [edi + 0x10], eax
jb 0x10032b42
mov ebx, dword [edi]
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x98]
push eax
lea eax, [ebx + edx*2]
push eax
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0xb4]
add esp, 0xc
xor ecx, ecx
mov word [ebx + eax*2], cx
jmp 0x10032b84
push ecx
lea eax, [ebp - 0x98]
mov byte [ebp - 0xb4], 0
push eax
push dword [ebp - 0xb4]
push ecx
mov ecx, edi
call fcn.10007210
cmp dword [esi + 0x10], 2
jbe 0x10032bb8
cmp dword [esi + 0x14], 8
jb 0x10032b92
mov esi, dword [esi]
add esi, 4
mov edx, esi
lea ecx, [edx + 2]
nop word [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10032ba0
sub edx, ecx
mov ecx, edi
sar edx, 1
push edx
push esi
call fcn.10006f70
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x9c]
cmp edx, 8
jb 0x10032bff
mov ecx, dword [ebp - 0xb0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10032bf5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10032a8b
push edx
push ecx
call fcn.1007a1ea
add esp, 8
xor eax, eax
mov word [ebp - 0xb0], ax
mov al, 1
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x9c], 7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007a1a9
mov esp, ebp
pop ebp
ret