Function at 0x409c60
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 4], eax
call sub.KERNEL32.DLL_GetLogicalDrives
mov edi, eax
xor ebx, ebx
mov ecx, ebx
mov eax, 1
shl eax, cl
test eax, edi
je 0x409e23
lea edx, [ebx + 0x41]
lea eax, [ebp - 0x6c]
push edx
push str._c:_
push eax
call fcn.00482524
add esp, 0xc
lea edx, [ebp - 0x6c]
push edx
call fcn.0040977c
pop ecx
test eax, eax
je 0x409e23
test esi, esi
je 0x409e20
mov dword [ebp - 8], ebx
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + 0x10]
je 0x409cdc
mov eax, dword [esi + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov dword [eax], edx
add dword [esi + 4], 4
jmp 0x409e20
mov dword [ebp - 0x10], 1
mov ecx, dword [esi + 4]
mov dword [ebp - 0x14], ecx
mov eax, dword [esi + 4]
sub eax, dword [esi]
test eax, eax
jns 0x409cf5
add eax, 3
sar eax, 2
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp - 0x10]
jae 0x409d08
lea ecx, [ebp - 0x10]
jmp 0x409d0b
lea ecx, [ebp - 0x18]
mov eax, dword [ecx]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x24], edx
cmp dword [ebp - 0x24], 0
je 0x409d49
mov eax, dword [ebp - 0x24]
shl eax, 2
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x80
jbe 0x409d3d
mov edx, dword [ebp - 0x28]
push edx
call fcn.0047eb18
pop ecx
jmp 0x409d4b
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.0048cc28
pop ecx
jmp 0x409d4b
xor eax, eax
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x30], edx
mov ecx, dword [esi]
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x34]
jne 0x409d66
mov edx, dword [ebp - 0x30]
jmp 0x409d87
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 0x34]
push ecx
mov eax, dword [ebp - 0x34]
push eax
mov edx, dword [ebp - 0x30]
push edx
call fcn.0047f5d0
mov edx, eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x34]
add esp, 0xc
add edx, eax
mov dword [ebp - 0x2c], edx
lea ecx, [ebp - 8]
push ecx
mov eax, dword [ebp - 0x10]
push eax
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00409e38
add esp, 0xc
mov dword [ebp - 0x2c], eax
mov ecx, dword [esi + 4]
mov dword [ebp - 0x38], ecx
mov eax, dword [esi]
mov dword [ebp - 0x3c], eax
mov edx, dword [esi + 0x10]
sub edx, dword [esi]
test edx, edx
jns 0x409db8
add edx, 3
sar edx, 2
mov dword [ebp - 0x40], edx
mov ecx, dword [esi]
mov dword [ebp - 0x44], ecx
cmp dword [ebp - 0x44], 0
je 0x409df7
mov eax, dword [ebp - 0x40]
shl eax, 2
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0x80
jbe 0x409de7
mov edx, dword [ebp - 0x44]
push edx
call fcn.0047eae4
pop ecx
jmp 0x409df7
mov ecx, dword [ebp - 0x48]
push ecx
mov eax, dword [ebp - 0x44]
push eax
call fcn.0048cf74
add esp, 8
mov edx, dword [ebp - 0x1c]
shl edx, 2
add edx, dword [ebp - 0x20]
mov dword [ebp - 0x4c], edx
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x50], ecx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x54], eax
mov edx, dword [ebp - 0x54]
mov dword [esi], edx
mov ecx, dword [ebp - 0x50]
mov dword [esi + 4], ecx
mov eax, dword [ebp - 0x4c]
mov dword [esi + 0x10], eax
inc dword [ebp - 4]
inc ebx
cmp ebx, 0x20
jb 0x409c7a
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret