Function at 0x4671fc
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 4], edx
xor eax, eax
push ebp
push 0x467469
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x467432
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetLogicalDrives
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], 1
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 0x14], eax
mov byte [ebp - 9], 0x43
mov eax, dword [ebp - 8]
and eax, dword [ebp - 0x10]
jbe 0x467412
lea eax, [ebp - 0x34]
mov dl, byte [ebp - 9]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x34]
lea eax, [ebp - 0x38]
call fcn.00402c20
mov edx, 0x467478
lea eax, [ebp - 0x38]
mov cl, 2
call fcn.00402bf0
lea edx, [ebp - 0x38]
lea eax, [ebp - 0x30]
call fcn.00404318
xor eax, eax
push ebp
push 0x4672bc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x30]
call fcn.00404574
push eax
call sub.kernel32.dll_GetDriveTypeA
mov word [ebp - 0x2a], ax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4672d3
lea eax, [ebp - 0x34]
mov dl, byte [ebp - 9]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x34]
lea eax, [ebp - 0x38]
call fcn.00402c20
mov edx, 0x467478
lea eax, [ebp - 0x38]
mov cl, 2
call fcn.00402bf0
lea edx, [ebp - 0x38]
lea eax, [ebp - 0x30]
call fcn.00404318
cmp word [ebp - 0x2a], 2
jne 0x467412
mov al, byte [ebp - 9]
sub al, 0x41
inc eax
call fcn.00408f80
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
cmp dword [ebp - 0x24], 0
jne 0x467332
cmp dword [ebp - 0x28], 0
jbe 0x467412
jmp 0x467338
jle 0x467412
mov eax, 0x28
call fcn.0040274c
mov ebx, eax
lea eax, [ebp - 0x3c]
mov dl, byte [ebp - 9]
call fcn.0040429c
mov edx, dword [ebp - 0x3c]
lea eax, [ebp - 0x30]
mov ecx, 0x467494
call fcn.004043c0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0x28
push ebx
mov eax, dword [ebp - 0x30]
call fcn.00404574
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
jne 0x467397
call sub.kernel32.dll_GetLastError
lea edx, [ebp - 0x40]
call fcn.0040b8e8
mov eax, dword [ebp - 0x40]
call fcn.0042e2f0
lea edx, [ebp - 0x30]
mov eax, ebx
call fcn.004091d4
mov eax, ebx
call fcn.0040276c
push 0
push 0x4674a0
lea eax, [ebp - 0x48]
mov dl, byte [ebp - 9]
call fcn.0040429c
push dword [ebp - 0x48]
push 0x4674b8
push dword [ebp - 0x30]
push 0x4674cc
lea eax, [ebp - 0x44]
mov edx, 5
call fcn.00404434
mov eax, dword [ebp - 0x44]
mov cx, word [0x4674d0]
mov dl, 3
call fcn.0042e1f8
cmp eax, 6
jne 0x467412
lea eax, [ebp - 0x4c]
mov dl, byte [ebp - 9]
call fcn.0040429c
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 4]
mov ecx, 0x467494
call fcn.004043c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x467446
inc byte [ebp - 9]
cmp byte [ebp - 9], 0x5b
jne 0x467255
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_SetErrorMode
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x467446
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x467470
lea eax, [ebp - 0x4c]
mov edx, 5
call fcn.004040d8
lea eax, [ebp - 0x30]
call fcn.004040b4
ret