Function at 0x10010d47
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x448
push edi
cmp dword [ebp + 8], 0
je 0x10010d63
cmp dword [ebp + 0xc], 0
je 0x10010d63
cmp dword [ebp + 0x10], 0
jne 0x10010d6d
mov eax, 0xc000000d
jmp 0x10011373
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
push eax
call fcn.1004e37e
add esp, 4
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov ecx, dword [0x100d8934]
mov dword [ebp - 0x1c], ecx
mov dx, word [0x100d8938]
mov word [ebp - 0x18], dx
xor eax, eax
mov dword [ebp - 0x16], eax
mov word [ebp - 0x12], ax
mov ecx, dword [ebp - 0x1c]
and ecx, 0xffff
cmp ecx, 0x5a
jg 0x10010e42
mov word [ebp - 0x430], 0
mov ecx, 0x103
xor eax, eax
lea edi, [ebp - 0x42e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x208
lea edx, [ebp - 0x430]
push edx
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
lea ecx, [ebp - 0x430]
push ecx
call fcn.1004e37e
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jbe 0x10010e31
mov edx, dword [ebp - 0x20]
push edx
lea eax, [ebp - 0x430]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.1004ea3e
add esp, 0xc
test eax, eax
jne 0x10010e31
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp + 8]
lea ecx, [eax + edx*2]
mov dword [ebp - 0x10], ecx
jmp 0x10010e42
mov dx, word [ebp - 0x1c]
add dx, 1
mov word [ebp - 0x1c], dx
jmp 0x10010dae
cmp dword [ebp - 0x10], 0
je 0x10010e89
mov eax, dword [ebp - 0x10]
push eax
call fcn.1004e37e
add esp, 4
add eax, 2
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0x10]
jae 0x10010e7d
mov edx, dword [ebp - 0x10]
push edx
lea eax, [ebp - 0x1c]
push eax
push 0x100d893c
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.1004f648
add esp, 0x10
jmp 0x10010e84
mov dword [ebp - 0xc], 0x80000005
jmp 0x10011366
push 0x100d8948
call fcn.1004e37e
add esp, 4
mov dword [ebp - 0x434], eax
push 0x100d8980
call fcn.1004e37e
add esp, 4
mov dword [ebp - 0x438], eax
mov edx, dword [ebp - 0x438]
push edx
push 0x100d89b0
mov eax, dword [ebp + 8]
push eax
call fcn.1004ea3e
add esp, 0xc
test eax, eax
jne 0x1001102a
mov dword [ebp - 0x440], 0
push 0x5c
mov ecx, dword [ebp - 0x438]
mov edx, dword [ebp + 8]
lea eax, [edx + ecx*2]
push eax
call fcn.1004e39b
add esp, 8
mov dword [ebp - 0x43c], eax
cmp dword [ebp - 0x43c], 0
je 0x10010f1d
mov ecx, dword [ebp - 0x438]
mov edx, dword [ebp + 8]
lea eax, [edx + ecx*2]
mov ecx, dword [ebp - 0x43c]
sub ecx, eax
sar ecx, 1
mov dword [ebp - 0x440], ecx
jmp 0x10010f2c
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 0x438]
mov dword [ebp - 0x440], edx
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x438]
cmp dword [ebp - 0x440], eax
jbe 0x10010f49
mov dword [ebp - 0xc], 0x80000005
jmp 0x10011370
mov ecx, dword [ebp - 8]
add ecx, 0x10
sub ecx, dword [ebp - 0x438]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp + 0x10]
jae 0x1001101e
mov eax, dword [ebp + 0x10]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.1004e290
add esp, 0xc
push 0x1e
push 0x100d89e0
mov edx, dword [ebp + 0xc]
push edx
call fcn.1004eeb0
add esp, 0xc
mov eax, dword [ebp - 0x440]
shl eax, 1
push eax
mov ecx, dword [ebp - 0x438]
mov edx, dword [ebp + 8]
lea eax, [edx + ecx*2]
push eax
mov ecx, dword [ebp + 0xc]
add ecx, 0x1e
push ecx
call fcn.1004eeb0
add esp, 0xc
push 2
push 0x100d8a00
mov edx, dword [ebp - 0x440]
mov eax, dword [ebp + 0xc]
lea ecx, [eax + edx*2 + 0x1e]
push ecx
call fcn.1004eeb0
add esp, 0xc
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 0x438]
sub edx, dword [ebp - 0x440]
test edx, edx
jbe 0x1001101c
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x438]
sub eax, dword [ebp - 0x440]
shl eax, 1
push eax
mov ecx, dword [ebp - 0x438]
mov edx, dword [ebp + 8]
lea eax, [edx + ecx*2]
mov ecx, dword [ebp - 0x440]
lea edx, [eax + ecx*2]
push edx
mov eax, dword [ebp - 0x440]
mov ecx, dword [ebp + 0xc]
lea edx, [ecx + eax*2 + 0x20]
push edx
call fcn.1004eeb0
add esp, 0xc
jmp 0x10011025
mov dword [ebp - 0xc], 0x80000005
jmp 0x10011366
mov eax, dword [ebp - 0x434]
push eax
push 0x100d8a04
mov ecx, dword [ebp + 8]
push ecx
call fcn.1004ea3e
add esp, 0xc
test eax, eax
jne 0x100111a5
mov dword [ebp - 0x448], 0
push 0x5c
mov edx, dword [ebp - 0x434]
mov eax, dword [ebp + 8]
lea ecx, [eax + edx*2]
push ecx
call fcn.1004e39b
add esp, 8
mov dword [ebp - 0x444], eax
cmp dword [ebp - 0x444], 0
je 0x10011098
mov edx, dword [ebp - 0x434]
mov eax, dword [ebp + 8]
lea ecx, [eax + edx*2]
mov edx, dword [ebp - 0x444]
sub edx, ecx
sar edx, 1
mov dword [ebp - 0x448], edx
jmp 0x100110a7
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x434]
mov dword [ebp - 0x448], eax
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x434]
cmp dword [ebp - 0x448], ecx
jbe 0x100110c4
mov dword [ebp - 0xc], 0x80000005
jmp 0x10011370
mov edx, dword [ebp - 8]
add edx, 0x10
sub edx, dword [ebp - 0x434]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x10]
jae 0x10011199
mov ecx, dword [ebp + 0x10]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
call fcn.1004e290
add esp, 0xc
push 0x1e
push 0x100d8a3c
mov eax, dword [ebp + 0xc]
push eax
call fcn.1004eeb0
add esp, 0xc
mov ecx, dword [ebp - 0x448]
shl ecx, 1
push ecx
mov edx, dword [ebp - 0x434]
mov eax, dword [ebp + 8]
lea ecx, [eax + edx*2]
push ecx
mov edx, dword [ebp + 0xc]
add edx, 0x1e
push edx
call fcn.1004eeb0
add esp, 0xc
push 2
push 0x100d8a5c
mov eax, dword [ebp - 0x448]
mov ecx, dword [ebp + 0xc]
lea edx, [ecx + eax*2 + 0x1e]
push edx
call fcn.1004eeb0
add esp, 0xc
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x434]
sub eax, dword [ebp - 0x448]
test eax, eax
jbe 0x10011197
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x434]
sub ecx, dword [ebp - 0x448]
shl ecx, 1
push ecx
mov edx, dword [ebp - 0x434]
mov eax, dword [ebp + 8]
lea ecx, [eax + edx*2]
mov edx, dword [ebp - 0x448]
lea eax, [ecx + edx*2]
push eax
mov ecx, dword [ebp - 0x448]
mov edx, dword [ebp + 0xc]
lea eax, [edx + ecx*2 + 0x20]
push eax
call fcn.1004eeb0
add esp, 0xc
jmp 0x100111a0
mov dword [ebp - 0xc], 0x80000005
jmp 0x10011366
push 8
push 0x100d8a60
mov ecx, dword [ebp + 8]
push ecx
call fcn.1004ea3e
add esp, 0xc
test eax, eax
jne 0x100111fc
mov edx, dword [ebp + 8]
push edx
call fcn.1004e37e
add esp, 4
sub eax, 6
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x10]
jae 0x100111f0
mov ecx, dword [ebp + 8]
add ecx, 0x10
push ecx
push 0x100d8a74
mov edx, dword [ebp + 0xc]
push edx
call fcn.1004f648
add esp, 0xc
jmp 0x100111f7
mov dword [ebp - 0xc], 0x80000005
jmp 0x10011366
push 0x19
push 0x100d8a80
mov eax, dword [ebp + 8]
push eax
call fcn.1004ea3e
add esp, 0xc
test eax, eax
jne 0x10011253
mov ecx, dword [ebp + 8]
push ecx
call fcn.1004e37e
add esp, 4
sub eax, 0x17
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
cmp edx, dword [ebp + 0x10]
jae 0x10011247
mov eax, dword [ebp + 8]
add eax, 0x32
push eax
push 0x100d8ab4
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.1004f648
add esp, 0xc
jmp 0x1001124e
mov dword [ebp - 0xc], 0x80000005
jmp 0x10011366
push 0xc
push str.DeviceMup_
mov edx, dword [ebp + 8]
push edx
call fcn.1004ea3e
add esp, 0xc
test eax, eax
jne 0x100112aa
mov eax, dword [ebp + 8]
push eax
call fcn.1004e37e
add esp, 4
sub eax, 0xa
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0x10]
jae 0x1001129e
mov edx, dword [ebp + 8]
add edx, 0x18
push edx
push 0x100d8adc
mov eax, dword [ebp + 0xc]
push eax
call fcn.1004f648
add esp, 0xc
jmp 0x100112a5
mov dword [ebp - 0xc], 0x80000005
jmp 0x10011366
push 0xd
push str.DeviceHGFS_
mov ecx, dword [ebp + 8]
push ecx
call fcn.1004ea3e
add esp, 0xc
test eax, eax
jne 0x100112fe
mov edx, dword [ebp + 8]
push edx
call fcn.1004e37e
add esp, 4
sub eax, 0xb
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x10]
jae 0x100112f5
mov ecx, dword [ebp + 8]
add ecx, 0x1a
push ecx
push 0x100d8b04
mov edx, dword [ebp + 0xc]
push edx
call fcn.1004f648
add esp, 0xc
jmp 0x100112fc
mov dword [ebp - 0xc], 0x80000005
jmp 0x10011366
push 0x14
push str.DeviceWinDfsRoot_
mov eax, dword [ebp + 8]
push eax
call fcn.1004ea3e
add esp, 0xc
test eax, eax
jne 0x10011352
mov ecx, dword [ebp + 8]
push ecx
call fcn.1004e37e
add esp, 4
sub eax, 0x12
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
cmp edx, dword [ebp + 0x10]
jae 0x10011349
mov eax, dword [ebp + 8]
add eax, 0x28
push eax
push 0x100d8b3c
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.1004f648
add esp, 0xc
jmp 0x10011350
mov dword [ebp - 0xc], 0x80000005
jmp 0x10011366
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10010b9e
add esp, 0xc
xor edx, edx
test edx, edx
jne 0x10010d8a
mov eax, dword [ebp - 0xc]
pop edi
mov esp, ebp
pop ebp
ret