Function at 0x58e660
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x75f22b
mov eax, dword fs:[0]
push eax
sub esp, 0x364
mov eax, dword [0x81f390]
xor eax, esp
mov dword [esp + 0x360], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x81f390]
xor eax, esp
push eax
lea eax, [esp + 0x378]
mov dword fs:[0], eax
mov ebp, ecx
mov eax, dword [esp + 0x388]
xor esi, esi
mov ebx, dword [esp + 0x398]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x38c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x390]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x394]
mov dword [esp + 0x18], eax
push 0
push ebx
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x48]
push eax
mov eax, dword [ebp + 0xc]
call eax
cmp eax, 0xd
je 0x58e6f1
test eax, eax
jne 0x58e972
push 0
push ebx
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0
push eax
mov eax, dword [ebp + 0x10]
call eax
test eax, eax
jne 0x58e980
mov eax, dword [esp + 0x24]
inc eax
push eax
call fcn.006f2a95
mov edi, eax
add esp, 4
test edi, edi
je 0x58e8bd
mov eax, dword [esp + 0x24]
push 0
inc eax
push eax
mov eax, dword [ebp + 0x14]
push edi
push ebx
call eax
test eax, eax
je 0x58e743
mov esi, 0xa
jmp 0x58e8ac
push 0x200
lea eax, [esp + 0x74]
push 0
push eax
call fcn.006f87a0
add esp, 0xc
mov dword [esp + 0x60], 0xf
cmp byte [edi], 0
mov dword [esp + 0x5c], 0
mov byte [esp + 0x4c], 0
jne 0x58e775
xor ecx, ecx
jmp 0x58e789
mov ecx, edi
lea edx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x58e780
sub ecx, edx
push ecx
push edi
lea ecx, [esp + 0x54]
call fcn.00409620
mov dword [esp + 0x48], vtable.wbs::StringBase_char_.0
cmp dword [esp + 0x60], 0x10
lea ecx, [esp + 0x70]
push 0x200
lea eax, [esp + 0x50]
mov dword [esp + 0x384], 0
cmovae eax, dword [esp + 0x50]
push ecx
push eax
mov ecx, ebp
call fcn.0058e9b0
mov ecx, dword [esp + 0x18]
neg al
sbb al, al
and byte [esp + 0x70], al
test ecx, ecx
je 0x58e886
cmp byte [ecx], 0
je 0x58e886
cmp dword [esp + 0x60], 0x10
lea eax, [esp + 0x4c]
push ecx
cmovae eax, dword [esp + 0x50]
push eax
call fcn.0058e340
movzx eax, al
add esp, 8
test eax, eax
je 0x58e886
mov eax, dword [esp + 0x1c]
mov edx, ebx
mov ecx, dword [esp + 0x3c]
inc dword [eax]
test ecx, 0x4000
jne 0x58e854
mov eax, dword [esp + 0x14]
test eax, eax
je 0x58e845
test dword [eax + 8], 0x4000
jne 0x58e834
mov eax, dword [eax]
test eax, eax
jne 0x58e823
jmp 0x58e845
mov edx, dword [eax + 4]
mov ecx, dword [eax + 8]
mov dword [esp + 0x3c], ecx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x38], eax
test ecx, 0x4000
jne 0x58e854
mov esi, 5
jmp 0x58e886
cmp dword [esp + 0x38], 0
je 0x58e862
mov esi, 6
jmp 0x58e886
push 0
push 0x104
lea eax, [esp + 0x278]
push eax
lea eax, [esp + 0x70]
push eax
mov eax, dword [ebp + 0x18]
push edx
call eax
test eax, eax
mov eax, 0xf
cmovne esi, eax
cmp dword [esp + 0x60], 0x10
mov dword [esp + 0x380], 0xffffffff
mov dword [esp + 0x48], vtable.wbs::StringBase_char_.0
jb 0x58e8ac
push dword [esp + 0x4c]
call fcn.006f75a9
add esp, 4
push edi
call fcn.006f8afe
add esp, 4
test esi, esi
jne 0x58e96e
push 0
push ebx
lea eax, [esp + 0x48]
push eax
mov eax, dword [ebp + 4]
call eax
cmp eax, 0xd
je 0x58e946
test eax, eax
jne 0x58e979
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x20]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x34], eax
movsx eax, byte [edi]
push eax
lea eax, [esp + 0x6c]
mov dword [esp + 0x30], ebx
push str._c:_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
sub eax, 2
je 0x58e927
sub eax, 3
je 0x58e927
xor esi, esi
jmp 0x58e946
push dword [esp + 0x40]
lea eax, [esp + 0x2c]
mov ecx, ebp
push dword [esp + 0x1c]
push edi
push dword [esp + 0x28]
push eax
call fcn.0058e660
mov esi, eax
test esi, esi
jne 0x58e96e
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x44]
push 0
push ebx
push eax
call ecx
cmp eax, 0xd
je 0x58e96e
mov ebx, dword [esp + 0x44]
test eax, eax
mov eax, 0xc
cmovne esi, eax
test esi, esi
je 0x58e6d2
mov eax, esi
jmp 0x58e985
mov eax, 8
jmp 0x58e985
mov eax, 0xb
jmp 0x58e985
mov eax, 9
mov ecx, dword [esp + 0x378]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x360]
xor ecx, esp
call fcn.006f7ca4
add esp, 0x370
ret 0x14