Function at 0xb30607
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x238
mov eax, dword [0xc05fa8]
mov esi, dword [ebp + 0xc]
lea edi, [esp + 0x28]
mov ecx, edi
xor eax, ebp
mov dword [esp + 0x230], eax
push esi
call fcn.00aa2768
push edi
call fcn.00b2ff38
add esp, 4
cmp byte [edi + 0xb], 0
mov ebx, eax
jns 0xb30650
push dword [esp + 0x28]
call fcn.00b86896
add esp, 4
test bl, bl
mov bl, 1
jne 0xb3088a
mov eax, dword [ebp + 8]
lea edi, [esp + 0x18]
xor ecx, ecx
mov dword [edi + 4], ecx
mov dword [edi], ecx
mov dword [edi + 8], ecx
push edi
push eax
call fcn.00b30150
add esp, 8
test al, al
je 0xb306ca
lea edi, [esp + 8]
mov ecx, edi
push esi
call fcn.00aa2768
movzx eax, byte [edi + 0xb]
mov ecx, dword [edi]
test al, al
mov edx, eax
jns 0xb30697
mov edx, dword [esp + 0xc]
mov edi, ecx
cmp word [edi + edx*2 - 2], 0x5c
jne 0xb30719
lea eax, [esp + 0x14]
dec edx
lea esi, [esp + 8]
lea ecx, [esp + 0x28]
push eax
push edx
push 0
push esi
call fcn.00abd53a
cmp byte [esi + 0xb], 0
js 0xb306d1
mov word [esp + 8], 0
mov byte [esp + 0x13], 0
jmp 0xb306fd
xor ebx, ebx
jmp 0xb30878
mov eax, dword [esp + 8]
mov word [eax], 0
mov dword [esp + 0xc], 0
cmp byte [esp + 0x13], 0
jns 0xb306fd
push dword [esp + 8]
call fcn.00b86896
add esp, 4
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x30]
movsd xmm0, qword [esp + 0x28]
mov dword [esp + 0x10], eax
movsd qword [esp + 8], xmm0
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 8]
test al, al
lea eax, [esp + 8]
cmovs eax, ecx
xor ecx, ecx
cmp byte [esp + 0x23], cl
jns 0xb30730
mov ecx, dword [esp + 0x18]
jmp 0xb30734
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.00b9ba63
add esp, 8
test eax, eax
je 0xb307a9
lea edi, [esp + 8]
mov ecx, edi
mov edx, edi
call fcn.00b3044a
mov ecx, edi
mov ebx, eax
call fcn.00b3050b
test al, al
jne 0xb307b0
test bl, bl
je 0xb307b0
lea esi, [esp + 0x28]
xor eax, eax
lea ecx, [esp + 0x18]
mov edx, esi
mov dword [esi + 4], eax
mov dword [esi], eax
mov dword [esi + 8], eax
call fcn.00b3054a
test al, al
je 0xb307ce
xor eax, eax
cmp byte [esp + 0x13], al
jns 0xb30789
mov edi, dword [esp + 8]
lea esi, [esp + 0x28]
cmp byte [esi + 0xb], al
mov eax, esi
jns 0xb30798
mov eax, dword [esp + 0x28]
push edi
push eax
call fcn.00b9ba63
add esp, 8
test eax, eax
sete bl
jmp 0xb307d0
mov bl, 1
jmp 0xb30861
xor ebx, ebx
test al, al
je 0xb30861
cmp byte [esp + 0x13], 0
mov dword [esp + 4], ebx
mov dword [esp], ebx
jns 0xb307e8
mov eax, dword [esp + 8]
jmp 0xb307ec
xor ebx, ebx
cmp byte [esi + 0xb], 0
jns 0xb30861
push dword [esp + 0x28]
call fcn.00b86896
add esp, 4
jmp 0xb30861
lea eax, [esp + 8]
mov eax, dword [eax]
lea esi, [esp + 0x28]
mov ecx, esp
mov dword [ecx], eax
push 0x104
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
cmp eax, 2
jb 0xb30861
cmp eax, 0x104
je 0xb30861
push esi
call fcn.00b9f3c4
add esp, 4
mov edi, eax
movzx eax, byte [esp + 0x13]
test al, al
jns 0xb30827
mov eax, dword [esp + 0xc]
lea ecx, [edi + eax - 2]
movzx eax, byte [esp + 0x23]
test al, al
mov edx, eax
jns 0xb3083a
mov edx, dword [esp + 0x1c]
cmp ecx, edx
jne 0xb3085f
test al, al
jns 0xb30848
mov eax, dword [esp + 0x18]
jmp 0xb3084c
lea eax, [esp + 0x18]
push edi
lea ecx, [esp + 0x2c]
push ecx
push eax
call fcn.00b9bbe0
add esp, 0xc
test eax, eax
je 0xb308a2
xor ebx, ebx
cmp byte [esp + 0x13], 0
jns 0xb30874
push dword [esp + 8]
call fcn.00b86896
add esp, 4
lea edi, [esp + 0x18]
cmp byte [edi + 0xb], 0
jns 0xb3088a
push dword [esp + 0x18]
call fcn.00b86896
add esp, 4
mov ecx, dword [esp + 0x230]
xor ecx, ebp
call fcn.00b868d1
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor ecx, ecx
cmp byte [esp + 0x13], cl
jns 0xb308b0
mov eax, dword [esp + 8]
jmp 0xb308b4
lea eax, [esp + 8]
add eax, 4
cmp byte [esp + 0x23], cl
jns 0xb308c3
mov ecx, dword [esp + 0x18]
jmp 0xb308c7
lea ecx, [esp + 0x18]
lea ecx, [ecx + edi*2]
push eax
push ecx
call fcn.00b9ba63
add esp, 8
test eax, eax
sete bl
jmp 0xb30861