Function at 0x1007e9c0
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0xd58]
sub esp, 0xd58
push 0xfffffffffffffffe
push 0x1016f108
push 0x10118480
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x1017455c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0xd54], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 0xd60]
mov dword [ebp - 0x34], eax
mov esi, ecx
mov dword [ebp - 0x30], esi
xor edi, edi
mov dword [ebp - 4], edi
mov byte [ebp + 0xa08], 0
push 0x103
push edi
lea ecx, [ebp + 0xa09]
push ecx
call fcn.10116880
mov byte [ebp + 0xc10], 0
push 0x103
push edi
lea edx, [ebp + 0xc11]
push edx
call fcn.10116880
mov byte [ebp + 0x800], 0
push 0x103
push edi
lea eax, [ebp + 0x801]
push eax
call fcn.10116880
mov byte [ebp], 0
push 0x3ff
push edi
lea ecx, [ebp + 1]
push ecx
call fcn.10116880
add esp, 0x30
or eax, 0xffffffff
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x19], 0
cmp esi, edi
je 0x1007ea92
mov byte [esi], 0
push str.FindFirstVolumeA
push str.kernel32.dll
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call esi
push eax
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call edi
mov ebx, eax
push str.FindNextVolumeA
push str.kernel32.dll
call esi
push eax
call edi
mov dword [ebp - 0x24], eax
push str.FindVolumeClose
push str.kernel32.dll
call esi
push eax
call edi
mov dword [ebp - 0x28], eax
push str.GetVolumePathNameA
push str.kernel32.dll
call esi
push eax
call edi
mov edi, eax
mov dword [ebp - 0x2c], edi
test ebx, ebx
je 0x1007ee14
cmp dword [ebp - 0x24], 0
je 0x1007ee14
cmp dword [ebp - 0x28], 0
je 0x1007ee14
push 0x104
lea edx, [ebp + 0xc10]
push edx
call ebx
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
jne 0x1007eb24
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1007ee14
mov ebx, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
lea ebx, [ebx]
lea eax, [ebp + 0xc10]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1007eb40
sub eax, edx
cmp byte [ebp + 0xc10], 0x5c
jne 0x1007eddb
cmp byte [ebp + 0xc11], 0x5c
jne 0x1007eddb
cmp byte [ebp + 0xc12], 0x3f
jne 0x1007eddb
cmp byte [ebp + 0xc13], 0x5c
jne 0x1007eddb
lea esi, [ebp + eax + 0xc0f]
cmp byte [esi], 0x5c
jne 0x1007eddb
mov byte [esi], cl
push 0x104
lea eax, [ebp + 0xa08]
push eax
lea ecx, [ebp + 0xc14]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
mov byte [esi], 0x5c
test eax, eax
jne 0x1007ebd7
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
je 0x1007edf3
push eax
push str.QueryDosDevice_failed_with_error_code__d_n
call fcn.1010e391
add esp, 8
mov edx, dword [ebp - 0x20]
push edx
call dword [ebp - 0x28]
jmp 0x1007ee14
xor eax, eax
je 0x1007ecfa
mov byte [ebp + 0xb0c], al
push 0x103
push eax
lea edx, [ebp + 0xb0d]
push edx
call fcn.10116880
mov byte [ebp + 0xd14], 0
push 0x3f
push 0
lea eax, [ebp + 0xd15]
push eax
call fcn.10116880
mov byte [ebp + 0x904], 0
push 0x103
push 0
lea ecx, [ebp + 0x905]
push ecx
call fcn.10116880
add esp, 0x24
lea ecx, [ebp + 0xa08]
lea edx, [ebp + 0xb0c]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x1007ec37
push 0
push 0x1015cdc4
push str.device_
lea edx, [ebp + 0xb0c]
push edx
call fcn.10047ed0
add esp, 0x10
lea ecx, [ebp + 0xb0c]
call fcn.10049c40
lea eax, [ebp + 0xb0c]
push eax
call ebx
lea ecx, [ebp + 0xd14]
call fcn.1004e1c0
lea edi, [ebp + 0x904]
lea esi, [ebp + 0xb0c]
call fcn.10057c40
lea ecx, [ebp + 0xa08]
push ecx
push str._nDevice_name:__s
call fcn.1010e391
lea edx, [ebp + 0xd14]
push edx
push str._nDrive_Type:__s
call fcn.1010e391
add esp, 0x10
cmp byte [ebp + 0x904], 0
je 0x1007eccc
mov eax, edi
push eax
push str._nFile_System:__s
call fcn.1010e391
add esp, 8
jmp 0x1007ecd9
push str._nFile_System:__NotAvailable_
call fcn.1010e391
add esp, 4
lea ecx, [ebp + 0xc10]
push ecx
push str._nVolume_name:__s
call fcn.1010e391
push str._nPaths:
call fcn.1010e391
add esp, 0xc
mov edi, dword [ebp - 0x2c]
lea edx, [ebp + 0xa08]
push edx
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
xor esi, esi
push esi
lea eax, [ebp + 0xc10]
call fcn.1007e850
add esp, 0x10
test edi, edi
je 0x1007ed9a
test esi, esi
je 0x1007ed9a
mov byte [ebp + 0x400], 0
push 0x3ff
push esi
lea edx, [ebp + 0x401]
push edx
call fcn.10116880
add esp, 0xc
cmp byte [0x10194380], 0
je 0x1007ed9a
mov byte [ebp + 0x400], 0
push 0x10194380
push str.ExtDevName:__s_n
call fcn.1010e391
add esp, 8
push 0x400
lea eax, [ebp + 0x400]
push eax
push 0x10194380
call edi
test eax, eax
je 0x1007ed8d
lea ecx, [ebp + 0x400]
push ecx
push str.ExtVolumePath:__s_n
call fcn.1010e391
add esp, 8
jmp 0x1007ed9a
push str.ExtVolumePath:_ERROR_n
call fcn.1010e391
add esp, 4
push 0x104
lea edx, [ebp + 0xc10]
push edx
mov eax, dword [ebp - 0x20]
push eax
call dword [ebp - 0x24]
test eax, eax
jne 0x1007eb30
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1007edf3
test esi, esi
je 0x1007edf3
push eax
push str.FindNextVolume_failed_with_error_code__d_n
call fcn.1010e391
add esp, 8
mov edx, dword [ebp - 0x20]
push edx
call dword [ebp - 0x28]
jmp 0x1007ee14
xor eax, eax
je 0x1007edf3
lea ecx, [ebp + 0xc10]
push ecx
push str.FindFirstVolume_FindNextVolume_returned_a_bad_path:__s_n
call fcn.1010e391
add esp, 8
mov edx, dword [ebp - 0x20]
push edx
call dword [ebp - 0x28]
jmp 0x1007ee14
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xd54]
xor ecx, ebp
call fcn.1010d699
add ebp, 0xd58
mov esp, ebp
pop ebp
ret