Function at 0x48c4ec
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x3b
push 0
push 0
dec ecx
jne 0x48c4f5
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.00404d5c
mov eax, dword [ebp + 8]
call fcn.00404d5c
xor eax, eax
push ebp
push 0x48d02a
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0048d654
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0048d668
push 0x48d048
push dword [ebp - 8]
push 0x48d05c
push 0x48d068
lea edx, [ebp - 0x130]
mov eax, dword [ebp - 0xc]
call fcn.00409078
push dword [ebp - 0x130]
push 0x48d05c
push 0x48d07c
push dword [ebp + 8]
push 0x48d05c
lea eax, [ebp - 0x12c]
mov edx, 9
call fcn.00404c2c
mov eax, dword [ebp - 0x12c]
mov edx, 0x48d094
call fcn.0045e97c
xor eax, eax
push ebp
push 0x48cfb0
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x48cf4b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x28], 2
lea eax, [ebp - 0x24]
call fcn.0040489c
mov edx, dword [ebp + 8]
mov eax, 0x48d0b0
call fcn.00404eb0
test eax, eax
jle 0x48c5ee
mov al, byte [0x48d0b4]
push eax
lea eax, [ebp - 0x24]
push eax
xor ecx, ecx
mov edx, 0x48d0b0
mov eax, dword [ebp + 8]
call fcn.0040e764
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.0048d544
test al, al
je 0x48c6a8
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x1c
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0048d3dc
cmp dword [ebp - 0x14], 0
je 0x48c626
lea eax, [ebp - 0x14]
mov edx, 0x48d0c0
call fcn.00404b74
push 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x138], eax
mov byte [ebp - 0x134], 0xb
lea ecx, [ebp - 0x138]
mov edx, 0x48d0cc
mov eax, dword [ebp - 4]
call fcn.0048baac
cmp dword [ebp - 0x14], 0
je 0x48c6a8
mov eax, dword [ebp - 0x14]
call fcn.00409590
test al, al
je 0x48c6a8
push dword [ebp - 0x14]
push 0x48d0ec
mov eax, dword [ebp - 0xc]
cmp eax, 4
jbe 0x48c672
call fcn.00403a84
push dword [eax*4 + 0x49c560]
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404c2c
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x24]
push eax
push 0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0048bac0
test al, al
je 0x48c6a8
mov byte [ebp - 0xd], 1
mov bl, 1
push 0x48d0f8
push dword [ebp - 0x14]
push 0x48d05c
push 0x48d110
push dword [ebp - 0x18]
push 0x48d05c
push 0x48d124
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x48d05c
push 0x48d138
mov eax, dword [ebp - 4]
push dword [eax + 0xc]
push 0x48d05c
push 0x48d14c
lea ecx, [ebp - 0x140]
xor edx, edx
mov al, byte [ebp - 0xd]
call fcn.004093b0
push dword [ebp - 0x140]
push 0x48d05c
push 0x48d160
lea ecx, [ebp - 0x144]
xor edx, edx
mov eax, ebx
call fcn.004093b0
push dword [ebp - 0x144]
push 0x48d05c
lea eax, [ebp - 0x13c]
mov edx, 0x12
call fcn.00404c2c
mov eax, dword [ebp - 0x13c]
mov edx, 0x48d174
call fcn.0045e97c
test bl, bl
jne 0x48c935
lea edx, [ebp - 0x14]
mov eax, 0x48d1a4
call fcn.0040ef7c
cmp dword [ebp - 0x14], 0
je 0x48c76c
mov eax, dword [ebp - 0x14]
call fcn.00409590
test al, al
jne 0x48c82c
push 0xffffffffffffffff
lea ecx, [ebp - 0x144]
mov edx, 0x48d1bc
mov eax, dword [ebp - 4]
call fcn.0048baac
push 0x48d0f8
push dword [ebp - 0x14]
push 0x48d05c
push 0x48d110
push dword [ebp - 0x18]
push 0x48d05c
push 0x48d124
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x48d05c
push 0x48d138
mov eax, dword [ebp - 4]
push dword [eax + 0xc]
push 0x48d05c
push 0x48d14c
lea ecx, [ebp - 0x14c]
xor edx, edx
mov al, byte [ebp - 0xd]
call fcn.004093b0
push dword [ebp - 0x14c]
push 0x48d05c
push 0x48d160
lea ecx, [ebp - 0x150]
xor edx, edx
mov eax, ebx
call fcn.004093b0
push dword [ebp - 0x150]
push 0x48d05c
lea eax, [ebp - 0x148]
mov edx, 0x12
call fcn.00404c2c
mov eax, dword [ebp - 0x148]
mov edx, 0x48d1fc
call fcn.0045e97c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.00404384
jmp 0x48cfb7
push dword [ebp - 0x14]
push 0x48d0ec
mov eax, dword [ebp - 0xc]
cmp eax, 4
jbe 0x48c841
call fcn.00403a84
push dword [eax*4 + 0x49c560]
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404c2c
push 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x138], eax
mov byte [ebp - 0x134], 0xb
lea ecx, [ebp - 0x138]
mov edx, 0x48d220
mov eax, dword [ebp - 4]
call fcn.0048baac
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x24]
push eax
push 0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0048bac0
test al, al
je 0x48c89c
mov byte [ebp - 0xd], 1
mov bl, 1
push 0x48d0f8
push dword [ebp - 0x14]
push 0x48d05c
push 0x48d110
push dword [ebp - 0x18]
push 0x48d05c
push 0x48d124
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x48d05c
push 0x48d138
mov eax, dword [ebp - 4]
push dword [eax + 0xc]
push 0x48d05c
push 0x48d14c
lea ecx, [ebp - 0x158]
xor edx, edx
mov al, byte [ebp - 0xd]
call fcn.004093b0
push dword [ebp - 0x158]
push 0x48d05c
push 0x48d160
lea ecx, [ebp - 0x15c]
xor edx, edx
mov eax, ebx
call fcn.004093b0
push dword [ebp - 0x15c]
push 0x48d05c
lea eax, [ebp - 0x154]
mov edx, 0x12
call fcn.00404c2c
mov eax, dword [ebp - 0x154]
mov edx, 0x48d23c
call fcn.0045e97c
test bl, bl
jne 0x48ca59
lea edx, [ebp - 0x14]
mov eax, 0x48d264
call fcn.0040ef7c
push 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x138], eax
mov byte [ebp - 0x134], 0xb
lea ecx, [ebp - 0x138]
mov edx, 0x48d27c
mov eax, dword [ebp - 4]
call fcn.0048baac
cmp dword [ebp - 0x14], 0
je 0x48c9c0
push dword [ebp - 0x14]
push 0x48d0ec
mov eax, dword [ebp - 0xc]
cmp eax, 4
jbe 0x48c98a
call fcn.00403a84
push dword [eax*4 + 0x49c560]
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404c2c
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x24]
push eax
push 0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0048bac0
test al, al
je 0x48c9c0
mov byte [ebp - 0xd], 1
mov bl, 1
push 0x48d0f8
push dword [ebp - 0x14]
push 0x48d05c
push 0x48d110
push dword [ebp - 0x18]
push 0x48d05c
push 0x48d124
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x48d05c
push 0x48d138
mov eax, dword [ebp - 4]
push dword [eax + 0xc]
push 0x48d05c
push 0x48d14c
lea ecx, [ebp - 0x164]
xor edx, edx
mov al, byte [ebp - 0xd]
call fcn.004093b0
push dword [ebp - 0x164]
push 0x48d05c
push 0x48d160
lea ecx, [ebp - 0x168]
xor edx, edx
mov eax, ebx
call fcn.004093b0
push dword [ebp - 0x168]
push 0x48d05c
lea eax, [ebp - 0x160]
mov edx, 0x12
call fcn.00404c2c
mov eax, dword [ebp - 0x160]
mov edx, 0x48d29c
call fcn.0045e97c
test bl, bl
je 0x48ca6f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.00404384
jmp 0x48cfb7
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x128]
xor ecx, ecx
mov edx, pe_nt_image_headers32
call fcn.004032a8
lea eax, [ebp - 0x128]
push eax
push pe_nt_image_headers32
call sub.kernel32.dll_GetLogicalDriveStringsA
mov esi, eax
push 0x48d2bc
lea eax, [ebp - 0x170]
lea edx, [ebp - 0x128]
mov ecx, pe_nt_image_headers32
call fcn.00404b1c
push dword [ebp - 0x170]
push 0x48d05c
push 0x48d2d4
mov eax, esi
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x174]
call fcn.00409164
push dword [ebp - 0x174]
lea eax, [ebp - 0x16c]
mov edx, 5
call fcn.00404c2c
mov eax, dword [ebp - 0x16c]
mov edx, 0x48d2e8
call fcn.0045e97c
lea edi, [ebp - 0x128]
test esi, esi
jbe 0x48cf28
push 0
mov dword [ebp - 0x138], edi
mov byte [ebp - 0x134], 6
lea ecx, [ebp - 0x138]
mov edx, 0x48d2fc
mov eax, dword [ebp - 4]
call fcn.0048baac
mov al, byte [edi]
add al, 0xbd
sub al, 0x18
jae 0x48cd90
push edi
call sub.kernel32.dll_GetDriveTypeA
mov dword [ebp - 0x20], eax
push 0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x138], eax
mov byte [ebp - 0x134], 0
lea ecx, [ebp - 0x138]
mov edx, 0x48d318
mov eax, dword [ebp - 4]
call fcn.0048baac
mov eax, dword [ebp - 0x20]
add eax, 0xfffffffe
sub eax, 5
jae 0x48cd90
add dword [ebp - 0x1c], 1
jno 0x48cb7f
call fcn.00403a8c
test bl, bl
jne 0x48cd90
mov eax, dword [ebp - 0x20]
add eax, 0xfffffffe
sub eax, 5
jae 0x48cd90
push 0
mov dword [ebp - 0x138], edi
mov byte [ebp - 0x134], 6
lea ecx, [ebp - 0x138]
mov edx, 0x48d334
mov eax, dword [ebp - 4]
call fcn.0048baac
mov dl, byte [edi]
mov eax, dword [ebp - 4]
call fcn.0048d430
test al, al
je 0x48cd7b
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x24]
push eax
push 0
lea eax, [ebp - 0x178]
mov edx, edi
call fcn.00404aa4
lea eax, [ebp - 0x178]
mov edx, dword [ebp - 0xc]
cmp edx, 4
jbe 0x48cbf4
call fcn.00403a84
mov edx, dword [edx*4 + 0x49c560]
call fcn.00404b74
mov edx, dword [ebp - 0x178]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0048bac0
test al, al
je 0x48cd90
mov eax, dword [ebp - 0x20]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x17c]
call fcn.00409164
mov edx, dword [ebp - 0x17c]
mov eax, dword [ebp - 4]
add eax, 4
call fcn.004048f0
mov byte [ebp - 0xd], 1
push 0x48d110
lea eax, [ebp - 0x184]
mov edx, edi
call fcn.00404aa4
push dword [ebp - 0x184]
mov eax, dword [ebp - 0xc]
cmp eax, 4
jbe 0x48cc65
call fcn.00403a84
push dword [eax*4 + 0x49c560]
push 0x48d05c
push 0x48d124
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x48d05c
push 0x48d138
mov eax, dword [ebp - 4]
push dword [eax + 0xc]
push 0x48d05c
push 0x48d14c
lea ecx, [ebp - 0x188]
xor edx, edx
mov al, byte [ebp - 0xd]
call fcn.004093b0
push dword [ebp - 0x188]
push 0x48d05c
push 0x48d160
lea ecx, [ebp - 0x18c]
xor edx, edx
mov eax, ebx
call fcn.004093b0
push dword [ebp - 0x18c]
push 0x48d05c
push 0x48d368
lea edx, [ebp - 0x190]
mov eax, dword [ebp - 0x1c]
call fcn.00409078
push dword [ebp - 0x190]
push 0x48d05c
lea eax, [ebp - 0x180]
mov edx, 0x13
call fcn.00404c2c
mov eax, dword [ebp - 0x180]
push eax
mov edx, 0x48d378
lea eax, [ebp - 0x198]
call fcn.0040318c
lea eax, [ebp - 0x19c]
mov dl, byte [edi]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x19c]
lea eax, [ebp - 0x198]
mov cl, 2
call fcn.0040315c
lea edx, [ebp - 0x198]
lea eax, [ebp - 0x1ac]
call fcn.0040318c
mov edx, 0x48d37c
lea eax, [ebp - 0x1ac]
mov cl, 0xe
call fcn.0040315c
lea edx, [ebp - 0x1ac]
lea eax, [ebp - 0x194]
call fcn.00404b10
mov edx, dword [ebp - 0x194]
pop eax
call fcn.0045e97c
jmp 0x48cf28
push 0xffffffffffffffff
lea ecx, [ebp - 0x144]
mov edx, 0x48d394
mov eax, dword [ebp - 4]
call fcn.0048baac
push 0x48d110
lea eax, [ebp - 0x1b4]
mov edx, edi
call fcn.00404aa4
push dword [ebp - 0x1b4]
mov eax, dword [ebp - 0xc]
cmp eax, 4
jbe 0x48cdb5
call fcn.00403a84
push dword [eax*4 + 0x49c560]
push 0x48d05c
push 0x48d124
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x48d05c
push 0x48d138
mov eax, dword [ebp - 4]
push dword [eax + 0xc]
push 0x48d05c
push 0x48d14c
lea ecx, [ebp - 0x1b8]
xor edx, edx
mov al, byte [ebp - 0xd]
call fcn.004093b0
push dword [ebp - 0x1b8]
push 0x48d05c
push 0x48d160
lea ecx, [ebp - 0x1bc]
xor edx, edx
mov eax, ebx
call fcn.004093b0
push dword [ebp - 0x1bc]
push 0x48d05c
push 0x48d368
lea edx, [ebp - 0x1c0]
mov eax, dword [ebp - 0x1c]
call fcn.00409078
push dword [ebp - 0x1c0]
push 0x48d05c
lea eax, [ebp - 0x1b0]
mov edx, 0x13
call fcn.00404c2c
mov eax, dword [ebp - 0x1b0]
push eax
mov edx, 0x48d378
lea eax, [ebp - 0x198]
call fcn.0040318c
lea eax, [ebp - 0x19c]
mov dl, byte [edi]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x19c]
lea eax, [ebp - 0x198]
mov cl, 2
call fcn.0040315c
lea edx, [ebp - 0x198]
lea eax, [ebp - 0x1d4]
call fcn.0040318c
mov edx, 0x48d3b0
lea eax, [ebp - 0x1d4]
mov cl, 0xd
call fcn.0040315c
lea edx, [ebp - 0x1d4]
lea eax, [ebp - 0x1c4]
call fcn.00404b10
mov edx, dword [ebp - 0x1c4]
pop eax
call fcn.0045e97c
mov eax, esi
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x1d8]
mov edx, edi
call fcn.00404aa4
mov eax, dword [ebp - 0x1d8]
call fcn.00404b6c
add eax, 1
jno 0x48ceee
call fcn.00403a8c
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
test edx, edx
je 0x48cf01
call fcn.00403a84
mov esi, eax
lea eax, [ebp - 0x1dc]
mov edx, edi
call fcn.00404aa4
mov eax, dword [ebp - 0x1dc]
call fcn.00404b6c
add edi, eax
add edi, 1
test esi, esi
ja 0x48cb09
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
jne 0x48cf41
mov byte [0x49e58c], 1
dec dword [ebp - 0x28]
jne 0x48c5bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x48cf94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48cfb7
mov dl, byte [ebp - 0xd]
mov eax, dword [ebp - 4]
call fcn.0048d6d0
mov byte [ebp - 0xd], al
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48d031
lea eax, [ebp - 0x1dc]
mov edx, 2
call fcn.004048c0
lea eax, [ebp - 0x1c4]
mov edx, 6
call fcn.004048c0
lea eax, [ebp - 0x194]
mov edx, 0x17
call fcn.004048c0
lea eax, [ebp - 0x130]
mov edx, 2
call fcn.004048c0
lea eax, [ebp - 0x24]
call fcn.0040489c
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004048c0
lea eax, [ebp - 8]
call fcn.0040489c
lea eax, [ebp + 8]
call fcn.0040489c
ret