Function at 0x58b470
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d2f93
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x70c0f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x48], ecx
cmp dword [ebp + 8], 0
jne 0x58b4ae
mov eax, 0x80004003
jmp 0x58b74d
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [ebp - 0x48]
call fcn.0058a160
mov dword [ebp - 4], 0
push 0x14
lea edx, [ebp - 0x40]
push edx
mov ecx, dword [ebp - 0x48]
call fcn.00589b70
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x7c], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x7c]
push edx
call fcn.004dd489
add esp, 8
mov byte [ebp - 0x44], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00446610
movzx eax, byte [ebp - 0x44]
test eax, eax
je 0x58b525
mov dword [ebp - 0x80], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00446610
mov eax, dword [ebp - 0x80]
jmp 0x58b74d
mov byte [ebp - 0x41], 0
lea ecx, [ebp - 0x28]
call fcn.0045a6c0
cmp eax, 3
jne 0x58b57c
push 1
lea ecx, [ebp - 0x28]
call fcn.00467580
movzx ecx, word [eax]
cmp ecx, 0x3a
jne 0x58b57c
push 2
lea ecx, [ebp - 0x28]
call fcn.00467580
movzx edx, word [eax]
cmp edx, 0x5c
jne 0x58b57c
lea ecx, [ebp - 0x28]
call fcn.004465b0
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 3
je 0x58b57c
cmp dword [ebp - 0x60], 0
je 0x58b57c
mov byte [ebp - 0x41], 1
mov eax, dword [ebp - 0x48]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x48]
mov eax, dword [edx + 0x18]
call eax
mov byte [ebp - 0x42], al
mov byte [ebp - 0x51], 1
lea ecx, [ebp - 0x50]
call fcn.00447f30
mov byte [ebp - 4], 2
mov dword [ebp - 0x58], 0xa0
movzx ecx, byte [ebp - 0x42]
test ecx, ecx
je 0x58b5b4
mov edx, dword [ebp - 0x58]
or edx, 0x40
mov dword [ebp - 0x58], edx
movzx eax, byte [ebp - 0x41]
test eax, eax
je 0x58b5c7
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x64], edx
jmp 0x58b5ce
mov dword [ebp - 0x64], 0
lea ecx, [ebp - 0x50]
call fcn.00446490
push eax
mov eax, dword [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x64]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [eax + 0x10]
call edx
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
jl 0x58b607
push 0
lea ecx, [ebp - 0x50]
call fcn.0046bfe0
movzx eax, al
test eax, eax
je 0x58b636
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x84], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.0046bec0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00446610
mov eax, dword [ebp - 0x84]
jmp 0x58b74d
push 0
lea ecx, [ebp - 0x4c]
call fcn.00447a90
mov byte [ebp - 4], 3
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x90], 0
lea ecx, [ebp - 0x50]
call fcn.00447710
mov dword [ebp - 0x68], eax
lea edx, [ebp - 0x6c]
push edx
lea ecx, [ebp - 0x4c]
call fcn.00446490
push eax
push 1
mov eax, dword [ebp - 0x68]
push eax
mov ecx, dword [ebp - 0x68]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
test eax, eax
jne 0x58b717
cmp dword [ebp - 0x6c], 1
je 0x58b6a8
push 0
lea ecx, [ebp - 0x4c]
call fcn.0046eb80
jmp 0x58b666
push 1
movzx ecx, byte [ebp - 0x42]
push ecx
lea edx, [ebp - 0x4c]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x48]
call fcn.0058b770
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0
jne 0x58b6d4
push 0
lea ecx, [ebp - 0x4c]
call fcn.0046eb80
jmp 0x58b666
cmp dword [ebp - 0x70], 1
jne 0x58b6e0
mov byte [ebp - 0x43], 1
jmp 0x58b6e4
mov byte [ebp - 0x43], 0
movzx ecx, byte [ebp - 0x43]
push ecx
mov edx, dword [ebp - 0x74]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x48]
call fcn.0058b0e0
mov dword [ebp - 0x74], eax
push 0
lea ecx, [ebp - 0x4c]
call fcn.0046eb80
jmp 0x58b666
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x88], ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4c]
call fcn.0046c2e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.0046bec0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00446610
mov eax, dword [ebp - 0x88]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00495c0c
mov esp, ebp
pop ebp
ret 0xc