Function at 0x1008a820
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d24e9
mov eax, dword fs:[0]
push eax
sub esp, 0x6e4
mov eax, dword [0x100fd230]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x6bc], 0
mov dword [ebp - 0x6b8], 0
mov dword [ebp - 0x6b4], 0
lea eax, [ebp - 0x428]
mov dword [ebp - 4], 0
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x1008b004
lea ebx, [ebp - 0x428]
mov dword [ebp - 0x6c4], ebx
nop dword [eax]
movzx eax, word [ebx]
test ax, ax
je 0x1008b004
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x220]
push 0x104
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x16], 0x3a
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x1008afcd
xor eax, eax
mov dword [ebp - 0x6ac], 0
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x69c], 0
mov dword [ebp - 0x698], 7
lea edx, [ecx + 2]
mov word [ebp - 0x6ac], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1008a902
sub ecx, edx
lea eax, [ebp - 0x18]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x6ac]
call fcn.10017a30
xor eax, eax
mov dword [ebp - 0x664], 0
mov dword [ebp - 0x64c], eax
mov dword [ebp - 0x654], 0
mov dword [ebp - 0x650], 7
mov word [ebp - 0x664], ax
mov dword [ebp - 0x63c], eax
mov dword [ebp - 0x638], 7
mov word [ebp - 0x64c], ax
mov dword [ebp - 0x634], eax
push 1
push 0x100d8148
lea ecx, [ebp - 0x6ac]
mov byte [ebp - 4], 2
call fcn.1001f400
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1008a990
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x664]
call fcn.10017a30
lea ecx, [ebp - 0x18]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1008a9c0
sub ecx, edx
lea eax, [ebp - 0x18]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x64c]
call fcn.10017a30
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1008a9f0
mov esi, dword [ebp - 0x6b8]
sub ecx, edx
sar ecx, 1
mov dword [ebp - 0x634], ecx
cmp esi, dword [ebp - 0x6b4]
je 0x1008aaa7
xor eax, eax
mov dword [esi], 0
mov dword [ebp - 0x6c0], esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea edi, [esi + 0x18]
mov dword [edi], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 7
lea eax, [ebp - 0x664]
mov byte [ebp - 4], 4
cmp esi, eax
je 0x1008aa6f
cmp dword [ebp - 0x650], 8
mov ecx, esi
push dword [ebp - 0x654]
cmovae eax, dword [ebp - 0x664]
push eax
call fcn.10017a30
lea eax, [ebp - 0x64c]
cmp edi, eax
je 0x1008aa95
cmp dword [ebp - 0x638], 8
mov ecx, edi
push dword [ebp - 0x63c]
cmovae eax, dword [ebp - 0x64c]
push eax
call fcn.10017a30
mov eax, dword [ebp - 0x634]
mov dword [esi + 0x30], eax
add dword [ebp - 0x6b8], 0x34
jmp 0x1008aaba
lea eax, [ebp - 0x664]
push eax
push esi
lea ecx, [ebp - 0x6bc]
call fcn.10087500
cmp dword [ebp - 0x698], 8
lea eax, [ebp - 0x6ac]
cmovae eax, dword [ebp - 0x6ac]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
je 0x1008af05
cmp eax, 4
je 0x1008af05
xor esi, esi
mov dword [ebp - 0x67c], 0
mov edi, 7
mov dword [ebp - 0x66c], esi
xor eax, eax
mov dword [ebp - 0x668], edi
mov word [ebp - 0x67c], ax
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x694], eax
mov byte [ebp - 4], 5
lea edx, [ecx + 2]
mov dword [ebp - 0x684], eax
mov dword [ebp - 0x680], edi
mov word [ebp - 0x694], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1008ab33
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x694]
call fcn.10017a30
mov ecx, dword [0x10104fd4]
xor bl, bl
mov byte [ebp - 4], 6
mov dword [ebp - 0x6b0], 0
test ecx, ecx
je 0x1008ac8e
cmp dword [0x10104fd0], 0
je 0x1008ac8e
cmp dword [ebp - 0x680], 8
lea eax, [ebp - 0x694]
mov dword [ebp - 0x6f0], 0x18
cmovae eax, dword [ebp - 0x694]
mov dword [ebp - 0x6d4], eax
mov eax, dword [ebp - 0x684]
add eax, eax
mov dword [ebp - 0x6ec], 0
mov word [ebp - 0x6d8], ax
mov word [ebp - 0x6d6], ax
lea eax, [ebp - 0x6d8]
mov dword [ebp - 0x6e8], eax
lea eax, [ebp - 0x6f0]
push eax
push 1
lea eax, [ebp - 0x6b0]
mov dword [ebp - 0x6e4], 0x40
push eax
mov dword [ebp - 0x6e0], 0
mov dword [ebp - 0x6dc], 0
call ecx
mov eax, dword [ebp - 0x6b0]
test eax, eax
je 0x1008ac90
lea ecx, [ebp - 0x630]
mov dword [ebp - 0x6cc], 0x2080208
mov dword [ebp - 0x6c8], ecx
lea ecx, [ebp - 0x6cc]
push 0
push ecx
push eax
call dword [0x10104fd0]
test eax, eax
js 0x1008ac80
movzx ecx, word [ebp - 0x6cc]
xor edx, edx
mov eax, dword [ebp - 0x6c8]
mov word [ecx + eax], dx
mov edx, dword [ebp - 0x6c8]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1008ac56
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x67c]
call fcn.10017a30
mov esi, dword [ebp - 0x66c]
mov bl, 1
mov edi, dword [ebp - 0x668]
push dword [ebp - 0x6b0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1008ac90
xor bl, bl
mov edx, dword [ebp - 0x680]
mov byte [ebp - 4], 5
cmp edx, 8
jb 0x1008acd4
mov ecx, dword [ebp - 0x694]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1008acca
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1008b0d2
push edx
push ecx
call fcn.1008f79d
add esp, 8
mov edx, dword [ebp - 0x67c]
mov dword [ebp - 0x6d0], edx
test bl, bl
je 0x1008aec1
mov ebx, dword [ebp - 0x650]
lea eax, [ebp - 0x67c]
cmp edi, 8
cmovae eax, edx
mov dword [ebp - 0x6c0], eax
cmp esi, ebx
ja 0x1008ad38
cmp ebx, 8
mov dword [ebp - 0x654], esi
lea edi, [ebp - 0x664]
cmovae edi, dword [ebp - 0x664]
add esi, esi
push esi
push eax
push edi
call fcn.100917c0
add esp, 0xc
xor eax, eax
mov word [edi + esi], ax
mov edi, dword [ebp - 0x66c]
jmp 0x1008ae00
cmp esi, 0x7ffffffe
ja 0x1008b0d7
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x1008ad56
mov esi, bind
jmp 0x1008ad74
mov ecx, ebx
mov eax, bind
shr ecx, 1
sub eax, ecx
cmp ebx, eax
jbe 0x1008ad6c
mov esi, bind
jmp 0x1008ad74
lea eax, [ecx + ebx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x664]
call fcn.100179d0
mov edi, dword [ebp - 0x66c]
mov dword [ebp - 0x650], esi
mov dword [ebp - 0x6b0], eax
mov dword [ebp - 0x654], edi
lea esi, [edi + edi]
push esi
push dword [ebp - 0x6c0]
push eax
call fcn.100917c0
mov eax, dword [ebp - 0x6b0]
xor ecx, ecx
add esp, 0xc
mov word [eax + esi], cx
cmp ebx, 8
jb 0x1008adfa
mov ecx, dword [ebp - 0x664]
lea ebx, [ebx*2 + 2]
mov eax, ecx
cmp ebx, 0x1000
jb 0x1008adea
mov ecx, dword [ecx - 4]
add ebx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1008b0d2
push ebx
push ecx
call fcn.1008f79d
mov eax, dword [ebp - 0x6b0]
add esp, 8
mov dword [ebp - 0x664], eax
mov esi, dword [ebp - 0x6b8]
mov dword [ebp - 0x634], edi
cmp esi, dword [ebp - 0x6b4]
je 0x1008aea8
xor eax, eax
mov dword [esi], 0
mov dword [ebp - 0x6c0], esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea edi, [esi + 0x18]
mov dword [edi], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 7
lea eax, [ebp - 0x664]
mov byte [ebp - 4], 8
cmp esi, eax
je 0x1008ae70
cmp dword [ebp - 0x650], 8
mov ecx, esi
push dword [ebp - 0x654]
cmovae eax, dword [ebp - 0x664]
push eax
call fcn.10017a30
lea eax, [ebp - 0x64c]
cmp edi, eax
je 0x1008ae96
cmp dword [ebp - 0x638], 8
mov ecx, edi
push dword [ebp - 0x63c]
cmovae eax, dword [ebp - 0x64c]
push eax
call fcn.10017a30
mov eax, dword [ebp - 0x634]
mov dword [esi + 0x30], eax
add dword [ebp - 0x6b8], 0x34
jmp 0x1008aebb
lea eax, [ebp - 0x664]
push eax
push esi
lea ecx, [ebp - 0x6bc]
call fcn.10087500
mov edx, dword [ebp - 0x6d0]
mov ecx, dword [ebp - 0x668]
mov byte [ebp - 4], 2
cmp ecx, 8
jb 0x1008aeff
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1008aef5
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1008b0d2
push ecx
push edx
call fcn.1008f79d
add esp, 8
mov ebx, dword [ebp - 0x6c4]
mov edx, dword [ebp - 0x638]
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x1008af49
mov ecx, dword [ebp - 0x64c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1008af3f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1008b0d2
push edx
push ecx
call fcn.1008f79d
add esp, 8
mov edx, dword [ebp - 0x650]
cmp edx, 8
jb 0x1008af89
mov ecx, dword [ebp - 0x664]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1008af7f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1008b0d2
push edx
push ecx
call fcn.1008f79d
add esp, 8
mov edx, dword [ebp - 0x698]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x1008afcd
mov ecx, dword [ebp - 0x6ac]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1008afc3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1008b0d2
push edx
push ecx
call fcn.1008f79d
add esp, 8
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1008afd2
sub ecx, edx
sar ecx, 1
lea ebx, [ebx + ecx*2]
add ebx, 2
lea ecx, [ebp - 0x428]
mov eax, ebx
mov dword [ebp - 0x6c4], ebx
sub eax, ecx
sar eax, 1
cmp eax, 0x104
jb 0x1008a8a0
push 0x10104fb8
mov dword [ebp - method.nfapi::AutoLock.virtual_0], vtable.nfapi::AutoLock.0
mov dword [ebp - 0x6d4], 0x10104fb8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp - 0x6c0]
mov ecx, 0x10104fac
mov byte [ebp - 4], 9
push dword [ebp - 0x6b8]
push dword [ebp - 0x6bc]
call fcn.10087110
push 0x10104fb8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp - 0x6bc]
test esi, esi
je 0x1008b0b6
mov edi, dword [ebp - 0x6b8]
cmp esi, edi
je 0x1008b076
mov ecx, esi
call fcn.10087e80
add esi, 0x34
cmp esi, edi
jne 0x1008b062
mov esi, dword [ebp - 0x6bc]
mov ecx, dword [ebp - 0x6b4]
mov eax, 0x4ec4ec4f
sub ecx, esi
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
imul ecx, eax, 0x34
mov eax, esi
cmp ecx, 0x1000
jb 0x1008b0ac
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1008b0d2
push ecx
push esi
call fcn.1008f79d
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008f445
mov esp, ebp
pop ebp
ret
call fcn.1009b8bf
call fcn.10002f30
int3