Function at 0x47d168
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x3b
push 0
push 0
dec ecx
jne 0x47d171
push ecx
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.00405190
mov eax, dword [ebp + 8]
call fcn.00405190
lea edi, [ebp - 0x24]
xor eax, eax
push ebp
push 0x47dcbc
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0047e2e4
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0047e2f8
push 0x47dcd8
push dword [ebp - 8]
push 0x47dcec
push 0x47dcf8
lea edx, [ebp - 0x134]
mov eax, dword [ebp - 0xc]
call fcn.00409824
push dword [ebp - 0x134]
push 0x47dcec
push 0x47dd0c
push dword [ebp + 8]
push 0x47dcec
lea eax, [ebp - 0x130]
mov edx, 9
call fcn.00405060
mov eax, dword [ebp - 0x130]
mov edx, 0x47dd24
call fcn.0046c7c0
xor eax, eax
push ebp
push 0x47dc42
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x47dbdd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x2c], 2
lea eax, [ebp - 0x28]
call fcn.00404cd0
mov edx, dword [ebp + 8]
mov eax, 0x47dd40
call fcn.004052e4
test eax, eax
jle 0x47d26e
mov al, byte [0x47dd44]
push eax
lea eax, [ebp - 0x28]
push eax
xor ecx, ecx
mov edx, 0x47dd40
mov eax, dword [ebp + 8]
call fcn.0040f190
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.0047e1d4
test al, al
je 0x47d328
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x1c
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0047e06c
cmp dword [ebp - 0x14], 0
je 0x47d2a6
lea eax, [ebp - 0x14]
mov edx, 0x47dd50
call fcn.00404fa8
push 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x13c], eax
mov byte [ebp - 0x138], 0xb
lea ecx, [ebp - 0x13c]
mov edx, 0x47dd5c
mov eax, dword [ebp - 4]
call fcn.0047c71c
cmp dword [ebp - 0x14], 0
je 0x47d328
mov eax, dword [ebp - 0x14]
call fcn.00409d3c
test al, al
je 0x47d328
push dword [ebp - 0x14]
push 0x47dd7c
mov eax, dword [ebp - 0xc]
cmp eax, 4
jbe 0x47d2f2
call fcn.00403e78
push dword [eax*4 + 0x4b9424]
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00405060
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x28]
push eax
push 0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0047c730
test al, al
je 0x47d328
mov byte [ebp - 0xd], 1
mov bl, 1
push 0x47dd88
push dword [ebp - 0x14]
push 0x47dcec
push 0x47dda0
push dword [ebp - 0x18]
push 0x47dcec
push 0x47ddb4
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x47dcec
push 0x47ddc8
mov eax, dword [ebp - 4]
push dword [eax + 0xc]
push 0x47dcec
push 0x47dddc
lea ecx, [ebp - 0x144]
xor edx, edx
mov al, byte [ebp - 0xd]
call fcn.00409b5c
push dword [ebp - 0x144]
push 0x47dcec
push 0x47ddf0
lea ecx, [ebp - 0x148]
xor edx, edx
mov eax, ebx
call fcn.00409b5c
push dword [ebp - 0x148]
push 0x47dcec
lea eax, [ebp - 0x140]
mov edx, 0x12
call fcn.00405060
mov eax, dword [ebp - 0x140]
mov edx, 0x47de04
call fcn.0046c7c0
test bl, bl
jne 0x47d5b5
lea edx, [ebp - 0x14]
mov eax, 0x47de34
call fcn.0040fa78
cmp dword [ebp - 0x14], 0
je 0x47d3ec
mov eax, dword [ebp - 0x14]
call fcn.00409d3c
test al, al
jne 0x47d4ac
push 0xffffffffffffffff
lea ecx, [ebp - 0x148]
mov edx, 0x47de4c
mov eax, dword [ebp - 4]
call fcn.0047c71c
push 0x47dd88
push dword [ebp - 0x14]
push 0x47dcec
push 0x47dda0
push dword [ebp - 0x18]
push 0x47dcec
push 0x47ddb4
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x47dcec
push 0x47ddc8
mov eax, dword [ebp - 4]
push dword [eax + 0xc]
push 0x47dcec
push 0x47dddc
lea ecx, [ebp - 0x150]
xor edx, edx
mov al, byte [ebp - 0xd]
call fcn.00409b5c
push dword [ebp - 0x150]
push 0x47dcec
push 0x47ddf0
lea ecx, [ebp - 0x154]
xor edx, edx
mov eax, ebx
call fcn.00409b5c
push dword [ebp - 0x154]
push 0x47dcec
lea eax, [ebp - 0x14c]
mov edx, 0x12
call fcn.00405060
mov eax, dword [ebp - 0x14c]
mov edx, 0x47de8c
call fcn.0046c7c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.00404790
jmp 0x47dc49
push dword [ebp - 0x14]
push 0x47dd7c
mov eax, dword [ebp - 0xc]
cmp eax, 4
jbe 0x47d4c1
call fcn.00403e78
push dword [eax*4 + 0x4b9424]
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00405060
push 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x13c], eax
mov byte [ebp - 0x138], 0xb
lea ecx, [ebp - 0x13c]
mov edx, 0x47deb0
mov eax, dword [ebp - 4]
call fcn.0047c71c
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x28]
push eax
push 0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0047c730
test al, al
je 0x47d51c
mov byte [ebp - 0xd], 1
mov bl, 1
push 0x47dd88
push dword [ebp - 0x14]
push 0x47dcec
push 0x47dda0
push dword [ebp - 0x18]
push 0x47dcec
push 0x47ddb4
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x47dcec
push 0x47ddc8
mov eax, dword [ebp - 4]
push dword [eax + 0xc]
push 0x47dcec
push 0x47dddc
lea ecx, [ebp - 0x15c]
xor edx, edx
mov al, byte [ebp - 0xd]
call fcn.00409b5c
push dword [ebp - 0x15c]
push 0x47dcec
push 0x47ddf0
lea ecx, [ebp - 0x160]
xor edx, edx
mov eax, ebx
call fcn.00409b5c
push dword [ebp - 0x160]
push 0x47dcec
lea eax, [ebp - 0x158]
mov edx, 0x12
call fcn.00405060
mov eax, dword [ebp - 0x158]
mov edx, 0x47decc
call fcn.0046c7c0
test bl, bl
jne 0x47d6d9
lea edx, [ebp - 0x14]
mov eax, 0x47def4
call fcn.0040fa78
push 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x13c], eax
mov byte [ebp - 0x138], 0xb
lea ecx, [ebp - 0x13c]
mov edx, 0x47df0c
mov eax, dword [ebp - 4]
call fcn.0047c71c
cmp dword [ebp - 0x14], 0
je 0x47d640
push dword [ebp - 0x14]
push 0x47dd7c
mov eax, dword [ebp - 0xc]
cmp eax, 4
jbe 0x47d60a
call fcn.00403e78
push dword [eax*4 + 0x4b9424]
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00405060
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x28]
push eax
push 0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0047c730
test al, al
je 0x47d640
mov byte [ebp - 0xd], 1
mov bl, 1
push 0x47dd88
push dword [ebp - 0x14]
push 0x47dcec
push 0x47dda0
push dword [ebp - 0x18]
push 0x47dcec
push 0x47ddb4
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x47dcec
push 0x47ddc8
mov eax, dword [ebp - 4]
push dword [eax + 0xc]
push 0x47dcec
push 0x47dddc
lea ecx, [ebp - 0x168]
xor edx, edx
mov al, byte [ebp - 0xd]
call fcn.00409b5c
push dword [ebp - 0x168]
push 0x47dcec
push 0x47ddf0
lea ecx, [ebp - 0x16c]
xor edx, edx
mov eax, ebx
call fcn.00409b5c
push dword [ebp - 0x16c]
push 0x47dcec
lea eax, [ebp - 0x164]
mov edx, 0x12
call fcn.00405060
mov eax, dword [ebp - 0x164]
mov edx, 0x47df2c
call fcn.0046c7c0
test bl, bl
je 0x47d6ef
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.00404790
jmp 0x47dc49
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x12c]
xor ecx, ecx
mov edx, pe_nt_image_headers32
call fcn.004036d0
lea eax, [ebp - 0x12c]
push eax
push pe_nt_image_headers32
call sub.kernel32.dll_GetLogicalDriveStringsA
mov esi, eax
push 0x47df4c
lea eax, [ebp - 0x174]
lea edx, [ebp - 0x12c]
mov ecx, pe_nt_image_headers32
call fcn.00404f50
push dword [ebp - 0x174]
push 0x47dcec
push 0x47df64
mov eax, esi
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x178]
call fcn.00409910
push dword [ebp - 0x178]
lea eax, [ebp - 0x170]
mov edx, 5
call fcn.00405060
mov eax, dword [ebp - 0x170]
mov edx, 0x47df78
call fcn.0046c7c0
lea eax, [ebp - 0x12c]
mov dword [edi], eax
test esi, esi
jbe 0x47dbba
push 0
mov eax, dword [edi]
mov dword [ebp - 0x13c], eax
mov byte [ebp - 0x138], 6
lea ecx, [ebp - 0x13c]
mov edx, 0x47df8c
mov eax, dword [ebp - 4]
call fcn.0047c71c
mov eax, dword [edi]
mov al, byte [eax]
add al, 0xbd
sub al, 0x18
jae 0x47da1e
mov eax, dword [edi]
push eax
call sub.kernel32.dll_GetDriveTypeA
mov dword [ebp - 0x20], eax
push 0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x13c], eax
mov byte [ebp - 0x138], 0
lea ecx, [ebp - 0x13c]
mov edx, 0x47dfa8
mov eax, dword [ebp - 4]
call fcn.0047c71c
mov eax, dword [ebp - 0x20]
add eax, 0xfffffffe
sub eax, 5
jae 0x47da1e
add dword [ebp - 0x1c], 1
jno 0x47d807
call fcn.00403e80
test bl, bl
jne 0x47da1e
mov eax, dword [ebp - 0x20]
add eax, 0xfffffffe
sub eax, 5
jae 0x47da1e
push 0
mov eax, dword [edi]
mov dword [ebp - 0x13c], eax
mov byte [ebp - 0x138], 6
lea ecx, [ebp - 0x13c]
mov edx, 0x47dfc4
mov eax, dword [ebp - 4]
call fcn.0047c71c
mov eax, dword [edi]
mov dl, byte [eax]
mov eax, dword [ebp - 4]
call fcn.0047e0c0
test al, al
je 0x47da09
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x28]
push eax
push 0
lea eax, [ebp - 0x17c]
mov edx, dword [edi]
call fcn.00404ed8
lea eax, [ebp - 0x17c]
mov edx, dword [ebp - 0xc]
cmp edx, 4
jbe 0x47d880
call fcn.00403e78
mov edx, dword [edx*4 + 0x4b9424]
call fcn.00404fa8
mov edx, dword [ebp - 0x17c]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0047c730
test al, al
je 0x47da1e
mov eax, dword [ebp - 0x20]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x180]
call fcn.00409910
mov edx, dword [ebp - 0x180]
mov eax, dword [ebp - 4]
add eax, 4
call fcn.00404d24
mov byte [ebp - 0xd], 1
push 0x47dda0
lea eax, [ebp - 0x188]
mov edx, dword [edi]
call fcn.00404ed8
push dword [ebp - 0x188]
mov eax, dword [ebp - 0xc]
cmp eax, 4
jbe 0x47d8f1
call fcn.00403e78
push dword [eax*4 + 0x4b9424]
push 0x47dcec
push 0x47ddb4
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x47dcec
push 0x47ddc8
mov eax, dword [ebp - 4]
push dword [eax + 0xc]
push 0x47dcec
push 0x47dddc
lea ecx, [ebp - 0x18c]
xor edx, edx
mov al, byte [ebp - 0xd]
call fcn.00409b5c
push dword [ebp - 0x18c]
push 0x47dcec
push 0x47ddf0
lea ecx, [ebp - 0x190]
xor edx, edx
mov eax, ebx
call fcn.00409b5c
push dword [ebp - 0x190]
push 0x47dcec
push 0x47dff8
lea edx, [ebp - 0x194]
mov eax, dword [ebp - 0x1c]
call fcn.00409824
push dword [ebp - 0x194]
push 0x47dcec
lea eax, [ebp - 0x184]
mov edx, 0x13
call fcn.00405060
mov eax, dword [ebp - 0x184]
push eax
mov edx, 0x47e008
lea eax, [ebp - 0x19c]
call fcn.004035b4
lea eax, [ebp - 0x1a0]
mov edx, dword [edi]
mov dl, byte [edx]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x1a0]
lea eax, [ebp - 0x19c]
mov cl, 2
call fcn.00403584
lea edx, [ebp - 0x19c]
lea eax, [ebp - 0x1b0]
call fcn.004035b4
mov edx, 0x47e00c
lea eax, [ebp - 0x1b0]
mov cl, 0xe
call fcn.00403584
lea edx, [ebp - 0x1b0]
lea eax, [ebp - 0x198]
call fcn.00404f44
mov edx, dword [ebp - 0x198]
pop eax
call fcn.0046c7c0
jmp 0x47dbba
push 0xffffffffffffffff
lea ecx, [ebp - 0x148]
mov edx, 0x47e024
mov eax, dword [ebp - 4]
call fcn.0047c71c
push 0x47dda0
lea eax, [ebp - 0x1b8]
mov edx, dword [edi]
call fcn.00404ed8
push dword [ebp - 0x1b8]
mov eax, dword [ebp - 0xc]
cmp eax, 4
jbe 0x47da43
call fcn.00403e78
push dword [eax*4 + 0x4b9424]
push 0x47dcec
push 0x47ddb4
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x47dcec
push 0x47ddc8
mov eax, dword [ebp - 4]
push dword [eax + 0xc]
push 0x47dcec
push 0x47dddc
lea ecx, [ebp - 0x1bc]
xor edx, edx
mov al, byte [ebp - 0xd]
call fcn.00409b5c
push dword [ebp - 0x1bc]
push 0x47dcec
push 0x47ddf0
lea ecx, [ebp - 0x1c0]
xor edx, edx
mov eax, ebx
call fcn.00409b5c
push dword [ebp - 0x1c0]
push 0x47dcec
push 0x47dff8
lea edx, [ebp - 0x1c4]
mov eax, dword [ebp - 0x1c]
call fcn.00409824
push dword [ebp - 0x1c4]
push 0x47dcec
lea eax, [ebp - 0x1b4]
mov edx, 0x13
call fcn.00405060
mov eax, dword [ebp - 0x1b4]
push eax
mov edx, 0x47e008
lea eax, [ebp - 0x19c]
call fcn.004035b4
lea eax, [ebp - 0x1a0]
mov edx, dword [edi]
mov dl, byte [edx]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x1a0]
lea eax, [ebp - 0x19c]
mov cl, 2
call fcn.00403584
lea edx, [ebp - 0x19c]
lea eax, [ebp - 0x1d8]
call fcn.004035b4
mov edx, 0x47e040
lea eax, [ebp - 0x1d8]
mov cl, 0xd
call fcn.00403584
lea edx, [ebp - 0x1d8]
lea eax, [ebp - 0x1c8]
call fcn.00404f44
mov edx, dword [ebp - 0x1c8]
pop eax
call fcn.0046c7c0
mov eax, esi
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x1dc]
mov edx, dword [edi]
call fcn.00404ed8
mov eax, dword [ebp - 0x1dc]
call fcn.00404fa0
add eax, 1
jno 0x47db7e
call fcn.00403e80
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
test edx, edx
je 0x47db91
call fcn.00403e78
mov esi, eax
lea eax, [ebp - 0x1e0]
mov edx, dword [edi]
call fcn.00404ed8
mov eax, dword [ebp - 0x1e0]
call fcn.00404fa0
add eax, dword [edi]
add eax, 1
mov dword [edi], eax
test esi, esi
ja 0x47d78b
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
jne 0x47dbd3
mov byte [0x4bc110], 1
dec dword [ebp - 0x2c]
jne 0x47d23c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47dc26
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47dc49
mov dl, byte [ebp - 0xd]
mov eax, dword [ebp - 4]
call fcn.0047e360
mov byte [ebp - 0xd], al
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47dcc3
lea eax, [ebp - 0x1e0]
mov edx, 2
call fcn.00404cf4
lea eax, [ebp - 0x1c8]
mov edx, 6
call fcn.00404cf4
lea eax, [ebp - 0x198]
mov edx, 0x17
call fcn.00404cf4
lea eax, [ebp - 0x134]
mov edx, 2
call fcn.00404cf4
lea eax, [ebp - 0x28]
call fcn.00404cd0
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00404cf4
lea eax, [ebp - 8]
call fcn.00404cd0
lea eax, [ebp + 8]
call fcn.00404cd0
ret