Function at 0x408e10
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x65adff
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x6f7d14]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0xd]
call fcn.0040d790
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
je 0x408e57
push 0
mov ecx, dword [ebp - 0x14]
call fcn.0040dd10
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x1c], 0
jmp 0x408e79
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x20
jge 0x408fe4
mov ecx, dword [ebp - 0x34]
and ecx, dword [ebp - 0x24]
je 0x408fd7
lea ecx, [ebp - 0x18]
call fcn.0040ec90
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x1c]
add edx, 0x41
push edx
push str._c:_
lea eax, [ebp - 0x18]
push eax
call fcn.0040e010
add esp, 0xc
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + 0x20c]
mov dword [ebp - 0x38], eax
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x14]
call dword [ebp - 0x38]
test eax, eax
je 0x408fcb
push 0x14
call fcn.004eab18
add esp, 4
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 2
cmp dword [ebp - 0x28], 0
je 0x408ef7
mov ecx, dword [ebp - 0x28]
call fcn.00401e70
mov dword [ebp - 0x2c], eax
jmp 0x408efe
mov dword [ebp - 0x2c], 0
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x3c], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x20]
add ecx, 4
call fcn.0040ebc0
lea edx, [ebp - 0x18]
push edx
mov ecx, dword [ebp - 0x20]
add ecx, 8
call fcn.0040ebc0
mov eax, dword [ebp - 0x20]
mov byte [eax + 0x10], 7
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1f0]
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1e4]
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x14]
call dword [ebp - 0x40]
mov dword [ebp - 0x4c], eax
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
mov ecx, dword [eax + 0x1d8]
mov dword [ebp - 0x44], ecx
lea edx, [ebp - 0x18]
push edx
mov ecx, dword [ebp - 0x14]
call dword [ebp - 0x44]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x144], 0
je 0x408fa8
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + 0x184]
mov dword [ebp - 0x48], eax
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x14]
call dword [ebp - 0x48]
test eax, eax
je 0x408fa8
mov dword [ebp - 0x30], 1
jmp 0x408faf
mov dword [ebp - 0x30], 0
push 1
mov edx, dword [ebp - 0x4c]
push edx
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x14]
call dword [ebp - 0x54]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.0040ed10
mov ecx, dword [ebp - 0x24]
shl ecx, 1
mov dword [ebp - 0x24], ecx
jmp 0x408e70
cmp dword [ebp + 0xc], 0
je 0x408ff4
push 1
mov ecx, dword [ebp - 0x14]
call fcn.0040dd10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd]
call fcn.0040d5e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8