Function at 0x100132c0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
push ebx
push esi
push edi
mov eax, dword [str..A:]
mov dword [ebp - 8], eax
mov cx, word [0x1002b1a0]
mov word [ebp - 4], cx
mov dl, byte [0x1002b1a2]
mov byte [ebp - 2], dl
mov dword [ebp - 0x10], 1
mov eax, dword [0x1002a17c]
mov dword [ebp - 0x114], eax
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x110]
rep stosd dword es:[edi], eax
cmp dword [0x10038bc8], 0
jne 0x1001335a
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1000b390
add esp, 8
test eax, eax
jne 0x10013350
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DismountDiskInternal._1.__08X.__08X.__08X.
push 0x100273cc
push 1
call fcn.1000eed0
add esp, 0x18
xor eax, eax
jmp 0x10013522
mov eax, 1
jmp 0x10013522
mov dl, byte [ebp - 4]
add dl, byte [ebp + 0xc]
mov byte [ebp - 4], dl
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push str.DismountDiskInternal._2.__08X.__s.
push 0x100273cc
push 3
call fcn.1000eed0
add esp, 0x14
mov dword [ebp - 0xc], 0xffffffff
mov dl, byte [ebp - 0x114]
add dl, byte [ebp + 0xc]
mov byte [ebp - 0x114], dl
push 0x104
lea eax, [ebp - 0x114]
push eax
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x100134a3
push 0
push 0x20000000
push 3
push 0
push 3
push 0xc0000000
lea edx, [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x100134a3
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DismountDiskInternal._3.__08X.__08X.__08X.__s.
push 0x100273cc
push 2
call fcn.1000eed0
add esp, 0x1c
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.1000b390
add esp, 8
mov dword [ebp - 0x10], eax
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DismountDiskInternal._4.__08X.__08X.__08X.__08X.__s.
push 0x100273cc
push 2
call fcn.1000eed0
add esp, 0x20
push 0
lea eax, [ebp - 0x118]
push eax
push 0
push 0
push 0
push 0
push 0x90020
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DismountDiskInternal._5.__08X.__08X.__08X.__08X.__s.
push 0x100273cc
push 2
call fcn.1000eed0
add esp, 0x20
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DismountDiskInternal._6.__08X.__08X.__08X.__08X.__s.
push 0x100273cc
push 3
call fcn.1000eed0
add esp, 0x20
cmp dword [ebp - 0xc], 0xffffffff
je 0x100134da
cmp dword [ebp - 0x10], 0
jne 0x1001351d
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.1000b390
add esp, 8
test eax, eax
jne 0x1001351d
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DismountDiskInternal._7.__08X.__08X.__08X.__08X.__08X.
push 0x100273cc
push 1
call fcn.1000eed0
add esp, 0x20
xor eax, eax
jmp 0x10013522
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret