Function at 0x1008c780
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d4559
mov eax, dword fs:[0]
push eax
sub esp, 0x6e4
mov eax, dword [0x100ff230]
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 0x1008cf64
lea ebx, [ebp - 0x428]
mov dword [ebp - 0x6c4], ebx
nop dword [eax]
movzx eax, word [ebx]
test ax, ax
je 0x1008cf64
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 0x1008cf2d
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 0x1008c862
sub ecx, edx
lea eax, [ebp - 0x18]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x6ac]
call fcn.10017a60
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 0x100da168
lea ecx, [ebp - 0x6ac]
mov byte [ebp - 4], 2
call fcn.10021360
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1008c8f0
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x664]
call fcn.10017a60
lea ecx, [ebp - 0x18]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1008c920
sub ecx, edx
lea eax, [ebp - 0x18]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x64c]
call fcn.10017a60
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1008c950
mov esi, dword [ebp - 0x6b8]
sub ecx, edx
sar ecx, 1
mov dword [ebp - 0x634], ecx
cmp esi, dword [ebp - 0x6b4]
je 0x1008ca07
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 0x1008c9cf
cmp dword [ebp - 0x650], 8
mov ecx, esi
push dword [ebp - 0x654]
cmovae eax, dword [ebp - 0x664]
push eax
call fcn.10017a60
lea eax, [ebp - 0x64c]
cmp edi, eax
je 0x1008c9f5
cmp dword [ebp - 0x638], 8
mov ecx, edi
push dword [ebp - 0x63c]
cmovae eax, dword [ebp - 0x64c]
push eax
call fcn.10017a60
mov eax, dword [ebp - 0x634]
mov dword [esi + 0x30], eax
add dword [ebp - 0x6b8], 0x34
jmp 0x1008ca1a
lea eax, [ebp - 0x664]
push eax
push esi
lea ecx, [ebp - 0x6bc]
call fcn.100894a0
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 0x1008ce65
cmp eax, 4
je 0x1008ce65
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 0x1008ca93
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x694]
call fcn.10017a60
mov ecx, dword [0x10106034]
xor bl, bl
mov byte [ebp - 4], 6
mov dword [ebp - 0x6b0], 0
test ecx, ecx
je 0x1008cbee
cmp dword [0x10106030], 0
je 0x1008cbee
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 0x1008cbf0
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 [0x10106030]
test eax, eax
js 0x1008cbe0
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 0x1008cbb6
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x67c]
call fcn.10017a60
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 0x1008cbf0
xor bl, bl
mov edx, dword [ebp - 0x680]
mov byte [ebp - 4], 5
cmp edx, 8
jb 0x1008cc34
mov ecx, dword [ebp - 0x694]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1008cc2a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1008d032
push edx
push ecx
call fcn.1009197a
add esp, 8
mov edx, dword [ebp - 0x67c]
mov dword [ebp - 0x6d0], edx
test bl, bl
je 0x1008ce21
mov ebx, dword [ebp - 0x650]
lea eax, [ebp - 0x67c]
cmp edi, 8
cmovae eax, edx
mov dword [ebp - 0x6c0], eax
cmp esi, ebx
ja 0x1008cc98
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.10093720
add esp, 0xc
xor eax, eax
mov word [edi + esi], ax
mov edi, dword [ebp - 0x66c]
jmp 0x1008cd60
cmp esi, 0x7ffffffe
ja 0x1008d037
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x1008ccb6
mov esi, bind
jmp 0x1008ccd4
mov ecx, ebx
mov eax, bind
shr ecx, 1
sub eax, ecx
cmp ebx, eax
jbe 0x1008cccc
mov esi, bind
jmp 0x1008ccd4
lea eax, [ecx + ebx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x664]
call fcn.10017a00
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.10093720
mov eax, dword [ebp - 0x6b0]
xor ecx, ecx
add esp, 0xc
mov word [eax + esi], cx
cmp ebx, 8
jb 0x1008cd5a
mov ecx, dword [ebp - 0x664]
lea ebx, [ebx*2 + 2]
mov eax, ecx
cmp ebx, 0x1000
jb 0x1008cd4a
mov ecx, dword [ecx - 4]
add ebx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1008d032
push ebx
push ecx
call fcn.1009197a
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 0x1008ce08
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 0x1008cdd0
cmp dword [ebp - 0x650], 8
mov ecx, esi
push dword [ebp - 0x654]
cmovae eax, dword [ebp - 0x664]
push eax
call fcn.10017a60
lea eax, [ebp - 0x64c]
cmp edi, eax
je 0x1008cdf6
cmp dword [ebp - 0x638], 8
mov ecx, edi
push dword [ebp - 0x63c]
cmovae eax, dword [ebp - 0x64c]
push eax
call fcn.10017a60
mov eax, dword [ebp - 0x634]
mov dword [esi + 0x30], eax
add dword [ebp - 0x6b8], 0x34
jmp 0x1008ce1b
lea eax, [ebp - 0x664]
push eax
push esi
lea ecx, [ebp - 0x6bc]
call fcn.100894a0
mov edx, dword [ebp - 0x6d0]
mov ecx, dword [ebp - 0x668]
mov byte [ebp - 4], 2
cmp ecx, 8
jb 0x1008ce5f
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1008ce55
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1008d032
push ecx
push edx
call fcn.1009197a
add esp, 8
mov ebx, dword [ebp - 0x6c4]
mov edx, dword [ebp - 0x638]
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x1008cea9
mov ecx, dword [ebp - 0x64c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1008ce9f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1008d032
push edx
push ecx
call fcn.1009197a
add esp, 8
mov edx, dword [ebp - 0x650]
cmp edx, 8
jb 0x1008cee9
mov ecx, dword [ebp - 0x664]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1008cedf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1008d032
push edx
push ecx
call fcn.1009197a
add esp, 8
mov edx, dword [ebp - 0x698]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x1008cf2d
mov ecx, dword [ebp - 0x6ac]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1008cf23
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1008d032
push edx
push ecx
call fcn.1009197a
add esp, 8
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1008cf32
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 0x1008c800
push 0x10106018
mov dword [ebp - method.nfapi::AutoLock.virtual_0], vtable.nfapi::AutoLock.0
mov dword [ebp - 0x6d4], 0x10106018
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp - 0x6c0]
mov ecx, 0x1010600c
mov byte [ebp - 4], 9
push dword [ebp - 0x6b8]
push dword [ebp - 0x6bc]
call fcn.100890b0
push 0x10106018
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp - 0x6bc]
test esi, esi
je 0x1008d016
mov edi, dword [ebp - 0x6b8]
cmp esi, edi
je 0x1008cfd6
mov ecx, esi
call fcn.10089de0
add esi, 0x34
cmp esi, edi
jne 0x1008cfc2
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 0x1008d00c
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1008d032
push ecx
push esi
call fcn.1009197a
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.10091622
mov esp, ebp
pop ebp
ret
call fcn.1009d81f
call fcn.100030c0
int3