Function at 0x1002b020
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x1004efd0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x10063790]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 0x218]
mov ebx, dword [ebp + 0x214]
push edi
mov esi, ecx
push ebx
push str.BOOL_CSTVolume::Init_DWORD_dwDisk_u_DWORD_dwPart_u_
mov dword [ebp - 0x20], esi
mov dword [esi + 0x414], edi
mov dword [esi + 0x418], ebx
call fcn.10030090
push eax
call fcn.10030100
add esp, 0x10
push edi
push ebx
mov ecx, esi
mov dword [esi + 0x41c], 0
call fcn.1002a850
movzx eax, ax
cmp ax, 0x2e
je 0x1002b385
movzx eax, ax
push eax
push str._c:_
lea edi, [esi + 4]
push 0x104
push edi
call fcn.10003980
add esp, 0x10
push 0x104
lea ebx, [esi + 0x20c]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
mov dword [ebp - 0x14], eax
jne 0x1002b120
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push eax
call edi
push eax
push str.Cannot_retrieve_Volume_Name____u___8.8X_
call fcn.10030090
push eax
call fcn.1002fa60
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x14]
add esp, 0x10
mov word [ebx], 0
mov dword [esi + 0x420], 1
push eax
jmp 0x1002b452
push ebx
push str.Volume_Name:__s
call fcn.10030090
push eax
call fcn.1002f970
push 0x208
mov dword [ebp - 4], 0
call fcn.1003bdcc
add esp, 0x10
test eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xffffffff
je 0x1002b368
lea ecx, [ebp - 0x1c]
push ecx
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
test eax, eax
jne 0x1002b2af
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x1002b340
mov edx, dword [ebp - 0x18]
push edx
call fcn.1003cd42
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
mov dword [ebp - 4], 2
neg ecx
or ecx, eax
push ecx
call fcn.1003bdcc
add esp, 8
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xffffffff
jmp 0x1002b1d6
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1002b368
mov edx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x1c]
push ecx
push edx
push eax
lea edi, [esi + 0x20c]
push edi
call dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
test eax, eax
jne 0x1002b228
push edi
push str.Cannot_Find_Volume_Mount_Point_from__s
call fcn.10030090
push eax
call fcn.1002f970
add esp, 0xc
push 0
lea ecx, [esi + 0x42c]
mov dword [ebp - 0x14], 1
call fcn.1002f510
jmp 0x1002b340
mov edi, dword [ebp - 0x18]
lea ebx, [esi + 4]
push edi
push ebx
call fcn.1003c8ff
add esp, 8
test eax, eax
je 0x1002b2ac
cmp dword [esi + 0x41c], 0
je 0x1002b26d
movzx eax, word [ebx]
push eax
push 0x10058458
lea ecx, [ebp]
push 0x104
push ecx
call fcn.10003980
add esp, 0x10
push 0
lea edx, [ebp]
push edx
push 3
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
mov edx, 0x104
mov eax, ebx
sub edi, ebx
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x1002b2a0
movzx ecx, word [edi + eax]
test cx, cx
je 0x1002b2a0
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x1002b276
sub eax, 2
mov word [eax], dx
push ebx
jmp 0x1002b32d
test edx, edx
jne 0x1002b2a7
sub eax, 2
mov word [eax], 0
push ebx
jmp 0x1002b32d
mov ebx, dword [ebp - 0x18]
push ebx
push edi
call fcn.1003c8ff
add esp, 8
test eax, eax
je 0x1002b32c
cmp dword [esi + 0x41c], 0
je 0x1002b2f1
movzx edx, word [edi]
push edx
push 0x10058458
lea eax, [ebp]
push 0x104
push eax
call fcn.10003980
add esp, 0x10
push 0
lea ecx, [ebp]
push ecx
push 3
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
mov edx, 0x104
mov eax, edi
sub ebx, edi
lea ebx, [ebx]
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x1002b320
movzx ecx, word [ebx + eax]
test cx, cx
je 0x1002b320
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x1002b300
jmp 0x1002b324
test edx, edx
jne 0x1002b327
sub eax, 2
mov word [eax], 0
push edi
push str.Real_Volume_Mount_Point:__s
call fcn.10030090
push eax
call fcn.1002f970
add esp, 0xc
mov edx, dword [ebp - 0x18]
push edx
call fcn.1003cd42
add esp, 4
cmp dword [ebp - 0x14], 0
je 0x1002b35c
mov dword [esi + 0x420], 1
mov eax, dword [ebp - 0x14]
push eax
jmp 0x1002b452
push 8
lea ecx, [esi + 0x42c]
mov dword [ebp - 0x14], 0
call fcn.1002f510
mov eax, dword [ebp - 0x14]
push eax
jmp 0x1002b452
push edi
push ebx
mov ecx, esi
call fcn.1002af50
movzx eax, ax
cmp ax, 0x2e
je 0x1002b422
movzx ecx, ax
push ecx
push str._c:_
lea edi, [esi + 4]
push 0x104
push edi
call fcn.10003980
add esp, 0x10
push 0x104
lea ebx, [esi + 0x20c]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x1002b3f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.Cannot_retrieve_Volume_Name_for__s____u___8.8X_
call fcn.10030090
push eax
call fcn.1002fa60
add esp, 0x14
mov word [ebx], 0
movzx edx, word [edi]
push edx
push 0x10058458
lea eax, [ebp]
push 0x104
push eax
call fcn.10003980
add esp, 0x10
push 0
lea ecx, [ebp]
push ecx
push 3
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
mov word [edi], 0
jmp 0x1002b439
xor eax, eax
mov dword [esi + 0x41c], 1
mov word [esi + 4], ax
mov word [esi + 0x20c], ax
push 0
lea ecx, [esi + 0x42c]
mov dword [esi + 0x420], 0
call fcn.1002f510
push 1
call fcn.10030090
mov ecx, eax
call fcn.1002fcb0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.1003c13d
add ebp, 0x20c
mov esp, ebp
pop ebp
ret 8