Function at 0x40a16f
Capabilities:
Get disk information

Disassembly:
push ebp
push ebx
mov edx, 0x45
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x40a176
call fcn.0042bdd0
lea eax, [esp + 0x9c]
mov edx, 0x42f02e
push edx
push 3
push eax
call fcn.0042bd60
lea eax, [esp + 0xa4]
mov edx, 0x42f02e
push edx
push 2
push eax
call fcn.0042bd60
push edx
call fcn.0042bbf0
pop edx
push eax
push edx
call fcn.0042bbf0
pop edx
push eax
push 0x28
call fcn.004295b0
lea eax, [esp + 0xac]
push 0x28
push eax
call fcn.0042bd20
push edx
call fcn.0042bbf0
pop edx
push eax
push edx
call fcn.0042bbf0
pop edx
push eax
push 0x104
call fcn.004295b0
lea eax, [esp + 0x104]
push eax
call fcn.0042bc30
mov dword [esp + 0x104], 0
mov dword [esp + 0x108], 0
mov dword [esp + 0x10c], 0
mov byte [esp + 0x110], 0
push edx
call fcn.0042bbf0
pop edx
push eax
push 0x42fc88
call fcn.0040fce5
lea eax, [esp + 0xfc]
push eax
call fcn.0042bc30
mov dword [esp + 0x10c], 1
jmp 0x40a260
mov eax, 0x432a1a
push eax
push dword [esp + 0xfc]
call fcn.00429d90
mov ebx, eax
inc ebx
cmp ebx, dword [esp + 0x10c]
jl 0x40a4f1
push 0
push 0xc
lea eax, [esp + 8]
push eax
call fcn.0042ad40
push 0
push 0x90
lea eax, [esp + 0x14]
push eax
call fcn.0042ad40
push edx
call fcn.0042bbf0
pop edx
push eax
push edx
call fcn.0042bbf0
pop edx
push eax
mov eax, 0x432a1a
push eax
push dword [esp + 0x118]
push dword [esp + 0x108]
call fcn.00429e20
lea eax, [esp + 0x100]
push eax
call fcn.0042bc30
push 0x104
mov eax, dword [esp + 0x104]
push eax
push dword [esp + 0x104]
call sub.KERNEL32.dll_QueryDosDeviceW
mov dword [esp + 0x104], eax
lea eax, [esp]
push eax
push dword [esp + 0x104]
call fcn.0040cabb
and eax, eax
je 0x40a4e4
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x104]
call fcn.0040bc42
and eax, eax
je 0x40a4e4
lea ebp, [esp + 0xc]
push dword [ebp]
mov ebx, 1
cmp ebx, dword [esp]
jne 0x40a3b5
push 0x28
lea eax, [esp + 0xb0]
push eax
lea ebp, [esp + 0x18]
lea eax, [ebp + 0x20]
push eax
call sub.ole32.dll_StringFromGUID2
push edx
call fcn.0042bbf0
pop edx
push eax
push edx
call fcn.0042bbf0
pop edx
push eax
lea edx, [esp + 0xb4]
push edx
call fcn.0042bbf0
pop edx
push eax
push 0x28
push edx
call fcn.0042bec0
call fcn.00416402
add dword [esp], edx
call fcn.004296f0
call fcn.0042be90
mov edx, str.C12A7328_F81F_11D2_BA4B_00A0C93EC93B
call fcn.00416430
mov ecx, eax
call fcn.00416440
je 0x40a3b3
mov byte [esp + 0x114], 1
jmp 0x40a401
xor ebx, ebx
cmp ebx, dword [esp]
jne 0x40a401
push edx
call fcn.0042bbf0
pop edx
push eax
push edx
call fcn.0042bbf0
pop edx
push eax
push 1
lea ebp, [esp + 0x1c]
movsx eax, byte [ebp + 0x20]
cdq
push edx
push eax
call fcn.00429760
call fcn.0042be90
mov edx, 0x430a88
call fcn.00416430
mov ecx, eax
call fcn.00416440
je 0x40a401
mov byte [esp + 0x114], 1
pop eax
cmp byte [esp + 0x110], 0
je 0x40a4e4
lea ebp, [esp + 0xc]
push dword [ebp + 0x18]
lea ebp, [esp + 4]
push dword [ebp + 4]
call fcn.0040ac40
mov ebx, eax
and ebx, ebx
jne 0x40a4dc
push edx
call fcn.0042bbf0
pop edx
push eax
call fcn.00405903
lea eax, [esp + 0xa8]
push 2
push eax
call fcn.0042bd20
push edx
call fcn.0042bbf0
pop edx
push eax
push dword [esp + 0x104]
lea edx, [esp + 0xac]
push edx
call fcn.0042bbf0
pop edx
push eax
push 2
push edx
call fcn.0042bec0
call fcn.0042be90
push 1
call fcn.00416402
add dword [esp + 4], edx
call sub.KERNEL32.dll_DefineDosDeviceW
call fcn.00416420
and eax, eax
je 0x40a49f
inc dword [esp + 0x108]
jmp 0x40a4dc
push edx
call fcn.0042bbf0
pop edx
push eax
lea edx, [esp + 0xa8]
push edx
call fcn.0042bbf0
pop edx
push eax
push 2
push edx
call fcn.0042bec0
call fcn.00416402
add dword [esp], edx
call fcn.004296c0
call fcn.00416420
mov ebx, eax
cmp ebx, 2
jge 0x40a4dc
jmp 0x40a4f1
mov byte [esp + 0x110], 0
inc dword [esp + 0x10c]
jno 0x40a260
mov eax, dword [esp + 0x108]
jmp 0x40a4fc
push dword [esp + 0xfc]
call fcn.0042be60
push dword [esp + 0xf8]
call fcn.0042be60
push dword [esp + 0x100]
call fcn.0042be60
add esp, 0x114
pop ebx
pop ebp
ret