Function at 0x472860
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x2a
push 0
push 0
dec ecx
jne 0x472869
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404ee4
mov eax, dword [ebp + 8]
call fcn.00404ee4
xor eax, eax
push ebp
push 0x472e9c
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004732cc
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004732e0
xor edx, edx
push ebp
push 0x472e52
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x472df3
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x20]
call fcn.00404a24
mov edx, dword [ebp + 8]
mov eax, 0x472eb8
call fcn.00405038
test eax, eax
jle 0x472903
mov al, byte [0x472ebc]
push eax
lea eax, [ebp - 0x20]
push eax
xor ecx, ecx
mov edx, 0x472eb8
mov eax, dword [ebp + 8]
call fcn.0040e9b4
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.004731bc
test al, al
je 0x4729bd
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x1c
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00473054
cmp dword [ebp - 0x14], 0
je 0x47293b
lea eax, [ebp - 0x14]
mov edx, 0x472ec8
call fcn.00404cfc
push 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x128], eax
mov byte [ebp - 0x124], 0xb
lea ecx, [ebp - 0x128]
mov edx, 0x472ed4
mov eax, dword [ebp - 4]
call fcn.00471f84
cmp dword [ebp - 0x14], 0
je 0x4729bd
mov eax, dword [ebp - 0x14]
call fcn.004096a4
test al, al
je 0x4729bd
push dword [ebp - 0x14]
push 0x472ef4
mov eax, dword [ebp - 0xc]
cmp eax, 4
jbe 0x472987
call fcn.00403bcc
push dword [eax*4 + 0x47c0bc]
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404db4
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x20]
push eax
push 0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00471f8c
test al, al
je 0x4729bd
mov byte [ebp - 0xd], 1
mov bl, 1
test bl, bl
jne 0x472a7b
lea edx, [ebp - 0x14]
mov eax, 0x472f00
call fcn.0040f248
cmp dword [ebp - 0x14], 0
je 0x4729e4
mov eax, dword [ebp - 0x14]
call fcn.004096a4
test al, al
jne 0x472a0b
push 0xffffffffffffffff
lea ecx, [ebp - 0x128]
mov edx, 0x472f18
mov eax, dword [ebp - 4]
call fcn.00471f84
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.004044e4
jmp 0x472e59
push dword [ebp - 0x14]
push 0x472ef4
mov eax, dword [ebp - 0xc]
cmp eax, 4
jbe 0x472a20
call fcn.00403bcc
push dword [eax*4 + 0x47c0bc]
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404db4
push 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x128], eax
mov byte [ebp - 0x124], 0xb
lea ecx, [ebp - 0x128]
mov edx, 0x472f58
mov eax, dword [ebp - 4]
call fcn.00471f84
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x20]
push eax
push 0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00471f8c
test al, al
je 0x472a7b
mov byte [ebp - 0xd], 1
mov bl, 1
test bl, bl
jne 0x472b06
lea edx, [ebp - 0x14]
mov eax, 0x472f74
call fcn.0040f248
push 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x128], eax
mov byte [ebp - 0x124], 0xb
lea ecx, [ebp - 0x128]
mov edx, 0x472f8c
mov eax, dword [ebp - 4]
call fcn.00471f84
cmp dword [ebp - 0x14], 0
je 0x472b06
push dword [ebp - 0x14]
push 0x472ef4
mov eax, dword [ebp - 0xc]
cmp eax, 4
jbe 0x472ad0
call fcn.00403bcc
push dword [eax*4 + 0x47c0bc]
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404db4
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x20]
push eax
push 0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00471f8c
test al, al
je 0x472b06
mov byte [ebp - 0xd], 1
mov bl, 1
test bl, bl
je 0x472b1c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.004044e4
jmp 0x472e59
lea eax, [ebp - 0x120]
xor ecx, ecx
mov edx, pe_nt_image_headers32
call fcn.0040358c
lea eax, [ebp - 0x120]
push eax
push pe_nt_image_headers32
call sub.kernel32.dll_GetLogicalDriveStringsA
mov edi, eax
lea eax, [ebp - 0x120]
mov dword [ebp - 0x1c], eax
test edi, edi
jbe 0x472de9
push 0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x128], eax
mov byte [ebp - 0x124], 6
lea ecx, [ebp - 0x128]
mov edx, 0x472fac
mov eax, dword [ebp - 4]
call fcn.00471f84
mov eax, dword [ebp - 0x1c]
mov al, byte [eax]
add al, 0xbd
sub al, 0x18
jae 0x472d81
lea eax, [ebp - 0x130]
push eax
mov ecx, 1
mov edx, 1
mov eax, dword [ebp - 0x14]
call fcn.00404f54
mov eax, dword [ebp - 0x130]
lea edx, [ebp - 0x12c]
call fcn.00408ce8
mov eax, dword [ebp - 0x12c]
push eax
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x13c]
mov edx, dword [ebp - 0x1c]
call fcn.00404c2c
mov eax, dword [ebp - 0x13c]
mov ecx, 1
mov edx, 1
call fcn.00404f54
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.00408ce8
mov edx, dword [ebp - 0x134]
pop eax
call fcn.00404e40
jne 0x472c65
mov eax, edi
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x140]
mov edx, dword [ebp - 0x1c]
call fcn.00404c2c
mov eax, dword [ebp - 0x140]
call fcn.00404cf4
add eax, 1
jno 0x472c29
call fcn.00403bd4
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
test edx, edx
je 0x472c3c
call fcn.00403bcc
mov edi, eax
lea eax, [ebp - 0x144]
mov edx, dword [ebp - 0x1c]
call fcn.00404c2c
mov eax, dword [ebp - 0x144]
call fcn.00404cf4
add eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
jmp 0x472de1
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_GetDriveTypeA
mov esi, eax
push 0
mov dword [ebp - 0x128], esi
mov byte [ebp - 0x124], 0
lea ecx, [ebp - 0x128]
mov edx, 0x472fc8
mov eax, dword [ebp - 4]
call fcn.00471f84
mov eax, esi
add eax, 0xfffffffe
sub eax, 2
jb 0x472ca6
dec eax
sub eax, 2
jae 0x472d81
test bl, bl
jne 0x472d81
mov eax, esi
add eax, 0xfffffffe
sub eax, 2
jb 0x472cc2
dec eax
sub eax, 2
jae 0x472d81
push 0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x128], eax
mov byte [ebp - 0x124], 6
lea ecx, [ebp - 0x128]
mov edx, 0x472fe4
mov eax, dword [ebp - 4]
call fcn.00471f84
mov eax, dword [ebp - 0x1c]
mov dl, byte [eax]
mov eax, dword [ebp - 4]
call fcn.004730a8
test al, al
je 0x472d6c
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x20]
push eax
push 0
lea eax, [ebp - 0x148]
mov edx, dword [ebp - 0x1c]
call fcn.00404c2c
lea eax, [ebp - 0x148]
mov edx, dword [ebp - 0xc]
cmp edx, 4
jbe 0x472d23
call fcn.00403bcc
mov edx, dword [edx*4 + 0x47c0bc]
call fcn.00404cfc
mov edx, dword [ebp - 0x148]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00471f8c
test al, al
je 0x472d81
mov eax, esi
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x14c]
call fcn.00409278
mov edx, dword [ebp - 0x14c]
mov eax, dword [ebp - 4]
add eax, 4
call fcn.00404a78
mov byte [ebp - 0xd], 1
jmp 0x472de9
push 0xffffffffffffffff
lea ecx, [ebp - 0x128]
mov edx, 0x473018
mov eax, dword [ebp - 4]
call fcn.00471f84
mov eax, edi
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x150]
mov edx, dword [ebp - 0x1c]
call fcn.00404c2c
mov eax, dword [ebp - 0x150]
call fcn.00404cf4
add eax, 1
jno 0x472daa
call fcn.00403bd4
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
test edx, edx
je 0x472dbd
call fcn.00403bcc
mov edi, eax
lea eax, [ebp - 0x154]
mov edx, dword [ebp - 0x1c]
call fcn.00404c2c
mov eax, dword [ebp - 0x154]
call fcn.00404cf4
add eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
test edi, edi
ja 0x472b52
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x472e3c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x472e59
mov eax, dword [ebp - 4]
call fcn.00473348
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x472ea3
lea eax, [ebp - 0x154]
mov edx, 0xb
call fcn.00404a48
lea eax, [ebp - 0x20]
call fcn.00404a24
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00404a48
lea eax, [ebp - 8]
call fcn.00404a24
lea eax, [ebp + 8]
call fcn.00404a24
ret