Function at 0x10032d00
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10082346
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x100b2008]
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 0x10032d43
mov eax, dword [edi]
xor ecx, ecx
mov word [eax], cx
cmp dword [esi + 0x10], 2
jae 0x10032d55
xor al, al
jmp 0x10032f5e
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xb4], esp
push esi
call fcn.10007310
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb0]
call fcn.10072530
add esp, 0x18
mov dword [ebp - 4], 1
cmp dword [ebp - 0xa0], 0
jne 0x10032deb
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x9c]
cmp edx, 8
jb 0x10032ddb
mov ecx, dword [ebp - 0xb0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10032dd1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10032dd1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1007b61a
add esp, 8
xor eax, eax
mov word [ebp - 0xb0], ax
xor al, al
jmp 0x10032f4a
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 0x10032e12
mov eax, dword [esi]
mov ax, word [eax]
mov word [ebp - 0x18], ax
mov eax, esi
jb 0x10032e1f
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 0x10032d92
lea ecx, [ebp - 0x98]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10032e51
mov eax, dword [edi + 0x14]
sub ecx, edx
mov edx, dword [edi + 0x10]
sub eax, edx
sar ecx, 1
cmp ecx, eax
ja 0x10032ea7
cmp dword [edi + 0x14], 8
lea eax, [ecx + edx]
mov dword [ebp - 0xb4], eax
mov ebx, edi
mov dword [edi + 0x10], eax
jb 0x10032e82
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 0x10032ec4
push ecx
lea eax, [ebp - 0x98]
mov byte [ebp - 0xb4], 0
push eax
push dword [ebp - 0xb4]
push ecx
mov ecx, edi
call fcn.10007490
cmp dword [esi + 0x10], 2
jbe 0x10032ef8
cmp dword [esi + 0x14], 8
jb 0x10032ed2
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 0x10032ee0
sub edx, ecx
mov ecx, edi
sar edx, 1
push edx
push esi
call fcn.100071f0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x9c]
cmp edx, 8
jb 0x10032f3f
mov ecx, dword [ebp - 0xb0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10032f35
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10032dcb
push edx
push ecx
call fcn.1007b61a
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.1007b5d9
mov esp, ebp
pop ebp
ret