Function at 0x100124e0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c5a10
mov eax, dword fs:[0]
push eax
sub esp, 0x36c
mov eax, dword [0x100ed440]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x378], ecx
mov dword [ebp - 0x34c], 0
lea ecx, [ebp - 0x338]
call fcn.10007f07
mov dword [ebp - 4], 0
mov eax, 1
imul ecx, eax, 0
mov dword [ebp - 0x358], ecx
cmp dword [ebp - 0x358], 0x104
jae 0x10012549
jmp 0x1001254f
call fcn.10007793
nop
mov edx, dword [ebp - 0x358]
mov byte [ebp + edx - 0x114], 0
cmp dword [ebp + 0xc], 0
je 0x100125e0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x340], eax
mov ecx, dword [ebp - 0x340]
add ecx, 1
mov dword [ebp - 0x364], ecx
mov edx, dword [ebp - 0x340]
mov al, byte [edx]
mov byte [ebp - 0x339], al
add dword [ebp - 0x340], 1
cmp byte [ebp - 0x339], 0
jne 0x1001257b
mov ecx, dword [ebp - 0x340]
sub ecx, dword [ebp - 0x364]
mov dword [ebp - 0x368], ecx
je 0x100125e0
lea edx, [ebp - 0x114]
push edx
push 0x103
mov eax, dword [0x101034a4]
mov ecx, dword [eax + 0x294]
mov dword [ebp - 0x35c], ecx
mov ecx, dword [ebp - 0x35c]
call dword [0x100e7c9c]
call dword [ebp - 0x35c]
test eax, eax
jne 0x10012618
lea edx, [ebp - 0x338]
push edx
mov ecx, dword [ebp + 8]
call fcn.1000f140
mov eax, dword [ebp - 0x34c]
or eax, 1
mov dword [ebp - 0x34c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x338]
call fcn.10002d70
mov eax, dword [ebp + 8]
jmp 0x100127de
mov cx, word [0x100d14c0]
mov word [ebp - 0x320], cx
mov dl, byte [0x100d14c2]
mov byte [ebp - 0x31e], dl
mov dword [ebp - 0x354], 0
lea eax, [ebp - 0x114]
mov dword [ebp - 0x348], eax
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp - 0x348]
mov cl, byte [eax]
mov byte [ebp + edx - 0x320], cl
push 0x104
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x320]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
je 0x10012768
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x344], ecx
mov edx, dword [ebp - 0x344]
add edx, 1
mov dword [ebp - 0x36c], edx
mov eax, dword [ebp - 0x344]
mov cl, byte [eax]
mov byte [ebp - 0x33a], cl
add dword [ebp - 0x344], 1
cmp byte [ebp - 0x33a], 0
jne 0x1001269b
mov edx, dword [ebp - 0x344]
sub edx, dword [ebp - 0x36c]
mov dword [ebp - 0x370], edx
mov eax, dword [ebp - 0x370]
mov dword [ebp - 0x350], eax
cmp dword [ebp - 0x350], 0x104
jae 0x10012768
mov ecx, dword [ebp - 0x350]
push ecx
lea edx, [ebp - 0x218]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.100b0020
add esp, 0xc
test eax, eax
jne 0x10012711
mov dword [ebp - 0x360], 1
jmp 0x1001271b
mov dword [ebp - 0x360], 0
mov ecx, dword [ebp - 0x360]
mov dword [ebp - 0x354], ecx
cmp dword [ebp - 0x354], 0
je 0x10012768
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0x350]
push edx
lea eax, [ebp - 0x320]
push eax
push 0x100d14c4
lea ecx, [ebp - 0x31c]
push ecx
call fcn.10015ea0
add esp, 0x10
lea edx, [ebp - 0x31c]
push edx
lea ecx, [ebp - 0x338]
call fcn.10010bd0
nop
mov eax, dword [ebp - 0x348]
movsx ecx, byte [eax]
mov dword [ebp - 0x374], ecx
mov edx, dword [ebp - 0x348]
add edx, 1
mov dword [ebp - 0x348], edx
cmp dword [ebp - 0x374], 0
je 0x10012791
jmp 0x10012768
cmp dword [ebp - 0x354], 0
jne 0x100127ab
mov eax, dword [ebp - 0x348]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x10012648
lea edx, [ebp - 0x338]
push edx
mov ecx, dword [ebp + 8]
call fcn.1000f140
mov eax, dword [ebp - 0x34c]
or eax, 1
mov dword [ebp - 0x34c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x338]
call fcn.10002d70
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10005677
mov esp, ebp
pop ebp
ret 8