Function at 0x1002a910
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x414]
sub esp, 0x414
push 0xffffffffffffffff
push 0x1004ef70
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x10063790]
xor eax, ebp
mov dword [ebp + 0x410], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 0x424]
mov eax, dword [ebp + 0x420]
mov esi, dword [ebp + 0x41c]
push ebx
push eax
mov edi, ecx
push esi
push str.BOOL_CSTVolume::Init_LPCTSTR_pstrVolumeID_s_DWORD_dwDisk_u_DWORD_dwPartitionNumber_u_
mov dword [ebp - 0x18], edi
call fcn.10030090
push eax
call fcn.10030100
add esp, 0x14
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_IsBadStringPtrW]
test eax, eax
je 0x1002a9a0
push 0x10000002
lea ecx, [edi + 0x42c]
call fcn.1002f510
push 0
jmp 0x1002ad31
mov ecx, dword [ebp + 0x420]
xor eax, eax
mov dword [edi + 0x414], ebx
mov dword [edi + 0x418], ecx
cmp word [esi], ax
jne 0x1002a9cf
mov dword [edi + 0x420], eax
mov word [edi + 4], ax
mov word [edi + 0x20c], ax
jmp 0x1002ad2f
lea eax, [edi + 0x20c]
mov edx, 0x104
sub esi, eax
lea esp, [esp]
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x1002aa00
movzx ecx, word [esi + eax]
test cx, cx
je 0x1002aa00
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x1002a9e0
jmp 0x1002aa04
test edx, edx
jne 0x1002aa07
sub eax, 2
mov edx, dword [ebp + 0x420]
push ebx
xor esi, esi
push edx
mov ecx, edi
mov word [eax], si
call fcn.1002a850
movzx eax, ax
cmp ax, 0x2e
je 0x1002ad25
movzx eax, ax
push eax
push str._c:_
lea esi, [edi + 4]
push 0x104
push esi
call fcn.10003980
add esp, 0x10
push 0x104
lea ecx, [ebp + 0x208]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
mov dword [ebp - 0x14], eax
jne 0x1002aa95
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
call esi
push eax
push str.Cannot_retreive_Volume_Name____u___8.8X_
call fcn.10030090
push eax
call fcn.1002f970
mov dword [ebp - 0x14], 1
mov edx, dword [ebp - 0x14]
add esp, 0x10
mov dword [edi + 0x420], 1
push edx
jmp 0x1002ad31
push 0x208
mov dword [ebp - 4], 0
call fcn.1003bdcc
mov ebx, eax
add esp, 4
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], 0xffffffff
jmp 0x1002aaca
test ebx, ebx
je 0x1002ac2b
lea edx, [ebp - 0x1c]
push edx
push 0x104
push ebx
lea eax, [ebp + 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
test eax, eax
jne 0x1002ac64
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x1002ac48
push ebx
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 ebx, eax
mov dword [ebp - 4], 0xffffffff
jmp 0x1002ab49
test ebx, ebx
je 0x1002ac2b
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x1c]
push eax
push ecx
push ebx
lea edx, [ebp + 0x208]
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
test eax, eax
jne 0x1002ab9e
lea eax, [ebp + 0x208]
push eax
push str.Cannot_Find_Volume_Mount_Point_from__s
call fcn.10030090
push eax
call fcn.1002fa60
add esp, 0xc
push 0
lea ecx, [edi + 0x42c]
mov dword [ebp - 0x14], 1
call fcn.1002f510
jmp 0x1002ad06
lea esi, [edi + 4]
push ebx
push esi
call fcn.1003c8ff
add esp, 8
test eax, eax
je 0x1002acf2
movzx ecx, word [esi]
push ecx
push 0x10058458
lea edx, [ebp]
push 0x104
push edx
call fcn.10003980
add esp, 0x10
push 0
lea eax, [ebp]
push eax
push 3
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
mov edi, ebx
mov edx, 0x104
mov eax, esi
sub edi, esi
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x1002ac06
movzx ecx, word [edi + eax]
test cx, cx
je 0x1002ac06
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x1002abe6
jmp 0x1002ac0a
test edx, edx
jne 0x1002ac0d
sub eax, 2
push esi
push str.Real_Volume_Mount_Point:__s
mov word [eax], 0
call fcn.10030090
push eax
call fcn.1002f970
mov edi, dword [ebp - 0x18]
jmp 0x1002ad03
push 8
lea ecx, [edi + 0x42c]
mov dword [ebp - 0x14], 0
call fcn.1002f510
mov edx, dword [ebp - 0x14]
push edx
jmp 0x1002ad31
lea edx, [ebp + 0x208]
push edx
push str.Cannot_Find_Volume_Mount_Point_from__s
call fcn.10030090
push eax
call fcn.1002fa60
jmp 0x1002ad03
lea esi, [edi + 4]
push ebx
push esi
call fcn.1003c8ff
add esp, 8
test eax, eax
je 0x1002acf2
movzx eax, word [esi]
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 edi, ebx
mov edx, 0x104
mov eax, esi
sub edi, esi
jmp 0x1002acb0
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x1002acd0
movzx ecx, word [edi + eax]
test cx, cx
je 0x1002acd0
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x1002acb0
jmp 0x1002acd4
test edx, edx
jne 0x1002acd7
sub eax, 2
push esi
push str.Real_Volume_Mount_Point:__s
mov word [eax], 0
call fcn.10030090
push eax
call fcn.1002f970
mov edi, dword [ebp - 0x18]
jmp 0x1002ad03
push esi
push str.Real_Volume_Mount_Point:__s
call fcn.10030090
push eax
call fcn.1002f970
add esp, 0xc
push ebx
call fcn.1003cd42
add esp, 4
cmp dword [ebp - 0x14], 0
je 0x1002ad1f
mov dword [edi + 0x420], 1
mov edx, dword [ebp - 0x14]
push edx
jmp 0x1002ad31
mov dword [edi + 0x420], esi
mov word [edi + 4], si
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 + 0x410]
xor ecx, ebp
call fcn.1003c13d
add ebp, 0x414
mov esp, ebp
pop ebp
ret 0xc