Function at 0x10032c80
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10081236
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x100b1008]
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 0x10032cc3
mov eax, dword [edi]
xor ecx, ecx
mov word [eax], cx
cmp dword [esi + 0x10], 2
jae 0x10032cd5
xor al, al
jmp 0x10032ede
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xb4], esp
push esi
call fcn.100072a0
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb0]
call fcn.10071440
add esp, 0x18
mov dword [ebp - 4], 1
cmp dword [ebp - 0xa0], 0
jne 0x10032d6b
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x9c]
cmp edx, 8
jb 0x10032d5b
mov ecx, dword [ebp - 0xb0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10032d51
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10032d51
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1007a52a
add esp, 8
xor eax, eax
mov word [ebp - 0xb0], ax
xor al, al
jmp 0x10032eca
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 0x10032d92
mov eax, dword [esi]
mov ax, word [eax]
mov word [ebp - 0x18], ax
mov eax, esi
jb 0x10032d9f
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 0x10032d12
lea ecx, [ebp - 0x98]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10032dd1
mov eax, dword [edi + 0x14]
sub ecx, edx
mov edx, dword [edi + 0x10]
sub eax, edx
sar ecx, 1
cmp ecx, eax
ja 0x10032e27
cmp dword [edi + 0x14], 8
lea eax, [ecx + edx]
mov dword [ebp - 0xb4], eax
mov ebx, edi
mov dword [edi + 0x10], eax
jb 0x10032e02
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 0x10032e44
push ecx
lea eax, [ebp - 0x98]
mov byte [ebp - 0xb4], 0
push eax
push dword [ebp - 0xb4]
push ecx
mov ecx, edi
call fcn.10007420
cmp dword [esi + 0x10], 2
jbe 0x10032e78
cmp dword [esi + 0x14], 8
jb 0x10032e52
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 0x10032e60
sub edx, ecx
mov ecx, edi
sar edx, 1
push edx
push esi
call fcn.10007180
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x9c]
cmp edx, 8
jb 0x10032ebf
mov ecx, dword [ebp - 0xb0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10032eb5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10032d4b
push edx
push ecx
call fcn.1007a52a
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.1007a4e9
mov esp, ebp
pop ebp
ret