Function at 0x7bdfbc
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x7bdfc4
push ecx
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x7be219
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
call fcn.00405278
mov eax, dword [0x7d7484]
cmp dword [eax], 2
je 0x7be117
cmp dword [0x7d6298], 0
je 0x7be091
lea eax, [ebp - 0xc]
mov ecx, 0x7be230
mov edx, dword [0x7d6298]
call fcn.00405594
jmp 0x7be07b
lea eax, [ebp - 0x10]
push eax
mov edx, dword [ebp - 0xc]
mov eax, 0x7be230
call fcn.0040588c
mov ecx, eax
mov edx, 1
mov eax, dword [ebp - 0xc]
call fcn.004057a8
mov eax, dword [ebp - 0x10]
call fcn.00405548
mov ecx, eax
lea eax, [ebp - 0xc]
mov edx, 1
call fcn.004057e8
push dword [ebp - 0x14]
lea eax, [ebp - 0x24]
push eax
mov cl, 0x2c
mov edx, 2
mov eax, dword [ebp - 0x10]
call fcn.0049c118
push dword [ebp - 0x24]
push 0x7be23c
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00405608
mov edx, dword [ebp - 0xc]
mov eax, 0x7be230
call fcn.0040588c
test eax, eax
jg 0x7be019
jmp 0x7be1e6
mov dword [ebp - 0x18], 1
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x18]
add edx, 0x40
call fcn.00405460
lea eax, [ebp - 0x28]
mov edx, 0x7be248
call fcn.00405550
mov eax, dword [ebp - 0x28]
call fcn.00405748
push eax
call sub.kernel32.dll_GetDriveTypeA
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x18], 3
jge 0x7be0d0
cmp dword [ebp - 0x1c], 3
jne 0x7be109
mov eax, dword [ebp - 0x1c]
cmp eax, 0xff
ja 0x7be0e1
bt dword [0x12ceb34], eax
jae 0x7be109
push dword [ebp - 0x14]
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x18]
add edx, 0x40
call fcn.00405460
push dword [ebp - 0x2c]
push 0x7be254
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00405608
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0x1b
jne 0x7be098
jmp 0x7be1e6
mov eax, dword [0x7d66a8]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x7be1e6
inc eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x30]
mov eax, dword [0x7d66a8]
mov eax, dword [eax]
mov edx, dword [ebp - 0x18]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x30]
push eax
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 4]
call fcn.0040a83c
lea eax, [ebp - 0x34]
mov edx, 0x7be23c
call fcn.00405550
mov eax, dword [ebp - 0x34]
pop edx
call fcn.0040588c
dec eax
jne 0x7be1da
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x3c]
mov eax, dword [0x7d66a8]
mov eax, dword [eax]
mov edx, dword [ebp - 0x18]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x3c]
call fcn.00405548
push eax
lea ecx, [ebp - 0x40]
mov eax, dword [0x7d66a8]
mov eax, dword [eax]
mov edx, dword [ebp - 0x18]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp - 0x40]
mov eax, 0x7be23c
call fcn.0040588c
inc eax
push eax
lea ecx, [ebp - 0x44]
mov eax, dword [0x7d66a8]
mov eax, dword [eax]
mov edx, dword [ebp - 0x18]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x44]
pop edx
pop ecx
call fcn.004057a8
mov edx, dword [ebp - 0x38]
lea eax, [ebp - 0x14]
call fcn.00405550
jmp 0x7be1e6
inc dword [ebp - 0x18]
dec dword [ebp - 0x20]
jne 0x7be137
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
call fcn.0040a348
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7be220
lea eax, [ebp - 0x44]
mov edx, 9
call fcn.0040529c
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.0040529c
ret