Function at 0x542540
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x11
push 0
push 0
dec ecx
jne 0x542548
push ecx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x542885
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetLogicalDrives
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp eax, 0x1f
ja 0x54257a
bt dword [ebp - 0xc], eax
jae 0x542840
mov ax, word [ebp - 8]
add ax, 0x41
mov word [ebp - 0xe], ax
lea eax, [ebp - 0x4c]
mov dx, word [ebp - 0xe]
call fcn.00407230
mov edx, dword [ebp - 0x4c]
lea eax, [ebp - 0x14]
mov ecx, 0x54289c
call fcn.00407408
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x14]
call fcn.004069d0
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0042bfd0
mov eax, dword [ebp - 0x18]
call fcn.00407218
push eax
call sub.kernel32.dll_GetDriveTypeW
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x54]
call fcn.0041d6c4
mov ecx, dword [ebp - 0x54]
lea eax, [ebp - 0x50]
mov edx, 0x5428b0
call fcn.00407408
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 4]
call fcn.0042bfd0
lea eax, [ebp - 0x38]
mov edx, 0x105
call fcn.00407330
lea eax, [ebp - 0x3c]
mov edx, 0x105
call fcn.00407330
lea eax, [ebp - 0x38]
call fcn.00406b60
mov word [eax], 0
lea eax, [ebp - 0x3c]
call fcn.00406b60
mov word [eax], 0
xor eax, eax
mov dword [ebp - 0x48], eax
xor eax, eax
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x3c]
call fcn.00406a98
push eax
mov eax, dword [ebp - 0x3c]
call fcn.00407218
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x38]
call fcn.00406a98
push eax
mov eax, dword [ebp - 0x38]
call fcn.00407218
push eax
mov eax, dword [ebp - 0x18]
call fcn.00407218
push eax
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x542836
lea eax, [ebp - 0x38]
call fcn.0042abd0
lea eax, [ebp - 0x3c]
call fcn.0042abd0
lea eax, [ebp - 0x58]
mov ecx, dword [ebp - 0x38]
mov edx, 0x5428d8
call fcn.00407408
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 4]
call fcn.0042bfd0
mov eax, dword [ebp - 0x40]
xor edx, edx
push edx
push eax
lea edx, [ebp - 0x60]
mov eax, 8
call fcn.0041d878
mov ecx, dword [ebp - 0x60]
lea eax, [ebp - 0x5c]
mov edx, 0x542900
call fcn.00407408
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 4]
call fcn.0042bfd0
mov eax, dword [ebp - 0x44]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x68]
call fcn.0041d6c4
mov ecx, dword [ebp - 0x68]
lea eax, [ebp - 0x64]
mov edx, 0x542930
call fcn.00407408
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp - 4]
call fcn.0042bfd0
mov eax, dword [ebp - 0x48]
xor edx, edx
push edx
push eax
lea edx, [ebp - 0x70]
mov eax, 8
call fcn.0041d878
mov ecx, dword [ebp - 0x70]
lea eax, [ebp - 0x6c]
mov edx, 0x542964
call fcn.00407408
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 4]
call fcn.0042bfd0
lea eax, [ebp - 0x74]
mov ecx, dword [ebp - 0x3c]
mov edx, 0x542998
call fcn.00407408
mov edx, dword [ebp - 0x74]
mov eax, dword [ebp - 4]
call fcn.0042bfd0
mov eax, dword [0x58e77c]
cmp dword [eax], 0
je 0x542836
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00407218
push eax
mov eax, dword [0x58e77c]
mov eax, dword [eax]
call eax
test eax, eax
je 0x542836
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
lea eax, [ebp - 0x7c]
call fcn.0041d6c4
mov ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x78]
mov edx, 0x5429c0
call fcn.00407408
mov edx, dword [ebp - 0x78]
mov eax, dword [ebp - 4]
call fcn.0042bfd0
push dword [ebp - 0x24]
push dword [ebp - 0x28]
lea eax, [ebp - 0x84]
call fcn.0041d6c4
mov ecx, dword [ebp - 0x84]
lea eax, [ebp - 0x80]
mov edx, 0x5429f0
call fcn.00407408
mov edx, dword [ebp - 0x80]
mov eax, dword [ebp - 4]
call fcn.0042bfd0
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
lea eax, [ebp - 0x8c]
call fcn.0041d6c4
mov ecx, dword [ebp - 0x8c]
lea eax, [ebp - 0x88]
mov edx, 0x542a18
call fcn.00407408
mov edx, dword [ebp - 0x88]
mov eax, dword [ebp - 4]
call fcn.0042bfd0
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0042bfd0
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x1a
jne 0x54256e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54288c
lea eax, [ebp - 0x8c]
mov edx, 0x11
call fcn.00406624
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.00406624
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00406624
ret