Function at 0x1000b5b0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10020d7b
mov eax, dword fs:[0]
push eax
sub esp, 0x668
mov eax, dword [0x10030040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x670], edx
mov ebx, ecx
mov dword [ebp - 0x660], ebx
mov eax, dword [0x1002c5f4]
mov dword [ebp - 0x1c], eax
mov ax, word [0x1002c5f8]
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x624]
push eax
push 0x3ff
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x1000b7d2
movzx eax, word [ebp - 0x624]
lea edi, [ebp - 0x624]
mov dword [ebp - 0x658], edi
nop dword [eax + eax]
mov word [ebp - 0x1c], ax
lea eax, [ebp - 0x224]
push 0x104
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x1000b7b5
push ebx
lea ecx, [ebp - 0x63c]
call fcn.1000bea0
lea ebx, [ebp - 0x224]
mov dword [ebp - 4], 0
lea ecx, [ebx + 2]
nop
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x1000b670
mov edx, dword [ebp - 0x63c]
sub ebx, ecx
mov eax, dword [ebp - 0x62c]
lea ecx, [ebp - 0x63c]
sar ebx, 1
cmp dword [ebp - 0x628], 7
mov dword [ebp - 0x664], ebx
cmova ecx, edx
mov dword [ebp - 0x65c], edx
mov dword [ebp - 0x66c], ecx
cmp ebx, eax
ja 0x1000b76a
sub eax, ebx
test ebx, ebx
jne 0x1000b6c2
xor esi, esi
jmp 0x1000b76d
inc eax
mov esi, ecx
lea eax, [ecx + eax*2]
mov dword [ebp - 0x668], eax
mov di, word [ebp - 0x224]
mov ecx, eax
sub ecx, esi
mov edx, 0
sar ecx, 1
je 0x1000b704
movzx eax, word [esi]
cmp ax, di
je 0x1000b702
nop word [eax + eax]
cmp ecx, 1
je 0x1000b704
movzx eax, word [esi + 2]
add esi, 2
dec ecx
cmp ax, di
jne 0x1000b6f0
mov edx, esi
mov esi, edx
test esi, esi
je 0x1000b75e
lea edx, [ebp - 0x224]
mov edi, ebx
test ebx, ebx
je 0x1000b734
mov ebx, esi
mov eax, edx
sub ebx, eax
nop dword [eax]
movzx ecx, word [ebx + edx]
movzx eax, word [edx]
cmp cx, ax
jne 0x1000b74a
add edx, 2
sub edi, 1
jne 0x1000b720
sub esi, dword [ebp - 0x66c]
mov edi, dword [ebp - 0x658]
mov edx, dword [ebp - 0x65c]
sar esi, 1
jmp 0x1000b76d
mov ebx, dword [ebp - 0x664]
add esi, 2
mov eax, dword [ebp - 0x668]
jmp 0x1000b6ce
mov edi, dword [ebp - 0x658]
mov edx, dword [ebp - 0x65c]
or esi, 0xffffffff
cmp esi, 0xffffffff
jne 0x1000b7f0
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x628]
cmp eax, 7
jbe 0x1000b7af
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000b7a5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000b8e3
push ecx
push edx
call fcn.1000c98e
add esp, 8
mov ebx, dword [ebp - 0x660]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x1000b7b5
movzx eax, word [edi]
mov dword [ebp - 0x658], edi
test ax, ax
jne 0x1000b630
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1000c666
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x654]
call fcn.1000bea0
mov edx, eax
mov ecx, edi
mov byte [ebp - 4], 1
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000b810
mov eax, dword [edx + 0x10]
sub ecx, edi
sar ecx, 1
inc eax
push ecx
push dword [ebp - 0x658]
lea ecx, [ebp - 0x63c]
push eax
push esi
call fcn.1000bfc0
mov ecx, dword [ebp - 0x640]
cmp ecx, 7
jbe 0x1000b873
mov edx, dword [ebp - 0x654]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000b869
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000b8de
push ecx
push edx
call fcn.1000c98e
add esp, 8
cmp dword [ebp - 0x628], 7
lea eax, [ebp - 0x63c]
cmova eax, dword [ebp - 0x63c]
push eax
push 0x104
push dword [ebp - 0x670]
call fcn.10012175
mov ecx, dword [ebp - 0x628]
add esp, 0xc
cmp ecx, 7
jbe 0x1000b8d7
mov edx, dword [ebp - 0x63c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000b8cd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000b8e3
push ecx
push edx
call fcn.1000c98e
add esp, 8
mov al, 1
jmp 0x1000b7d4
call fcn.100102ea
call fcn.100102ea
int3