Function at 0x1008cd20
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d4c59
mov eax, dword fs:[0]
push eax
sub esp, 0x6e4
mov eax, dword [0x10100230]
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 0x1008d504
lea ebx, [ebp - 0x428]
mov dword [ebp - 0x6c4], ebx
nop dword [eax]
movzx eax, word [ebx]
test ax, ax
je 0x1008d504
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 0x1008d4cd
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 0x1008ce02
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 0x100db168
lea ecx, [ebp - 0x6ac]
mov byte [ebp - 4], 2
call fcn.100213a0
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1008ce90
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 0x1008cec0
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 0x1008cef0
mov esi, dword [ebp - 0x6b8]
sub ecx, edx
sar ecx, 1
mov dword [ebp - 0x634], ecx
cmp esi, dword [ebp - 0x6b4]
je 0x1008cfa7
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 0x1008cf6f
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 0x1008cf95
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 0x1008cfba
lea eax, [ebp - 0x664]
push eax
push esi
lea ecx, [ebp - 0x6bc]
call fcn.10089a40
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 0x1008d405
cmp eax, 4
je 0x1008d405
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 0x1008d033
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x694]
call fcn.10017a60
mov ecx, dword [0x10107034]
xor bl, bl
mov byte [ebp - 4], 6
mov dword [ebp - 0x6b0], 0
test ecx, ecx
je 0x1008d18e
cmp dword [0x10107030], 0
je 0x1008d18e
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 0x1008d190
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 [0x10107030]
test eax, eax
js 0x1008d180
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 0x1008d156
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 0x1008d190
xor bl, bl
mov edx, dword [ebp - 0x680]
mov byte [ebp - 4], 5
cmp edx, 8
jb 0x1008d1d4
mov ecx, dword [ebp - 0x694]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1008d1ca
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1008d5d2
push edx
push ecx
call fcn.10091f2c
add esp, 8
mov edx, dword [ebp - 0x67c]
mov dword [ebp - 0x6d0], edx
test bl, bl
je 0x1008d3c1
mov ebx, dword [ebp - 0x650]
lea eax, [ebp - 0x67c]
cmp edi, 8
cmovae eax, edx
mov dword [ebp - 0x6c0], eax
cmp esi, ebx
ja 0x1008d238
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.10093ce0
add esp, 0xc
xor eax, eax
mov word [edi + esi], ax
mov edi, dword [ebp - 0x66c]
jmp 0x1008d300
cmp esi, 0x7ffffffe
ja 0x1008d5d7
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x1008d256
mov esi, bind
jmp 0x1008d274
mov ecx, ebx
mov eax, bind
shr ecx, 1
sub eax, ecx
cmp ebx, eax
jbe 0x1008d26c
mov esi, bind
jmp 0x1008d274
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.10093ce0
mov eax, dword [ebp - 0x6b0]
xor ecx, ecx
add esp, 0xc
mov word [eax + esi], cx
cmp ebx, 8
jb 0x1008d2fa
mov ecx, dword [ebp - 0x664]
lea ebx, [ebx*2 + 2]
mov eax, ecx
cmp ebx, 0x1000
jb 0x1008d2ea
mov ecx, dword [ecx - 4]
add ebx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1008d5d2
push ebx
push ecx
call fcn.10091f2c
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 0x1008d3a8
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 0x1008d370
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 0x1008d396
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 0x1008d3bb
lea eax, [ebp - 0x664]
push eax
push esi
lea ecx, [ebp - 0x6bc]
call fcn.10089a40
mov edx, dword [ebp - 0x6d0]
mov ecx, dword [ebp - 0x668]
mov byte [ebp - 4], 2
cmp ecx, 8
jb 0x1008d3ff
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1008d3f5
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1008d5d2
push ecx
push edx
call fcn.10091f2c
add esp, 8
mov ebx, dword [ebp - 0x6c4]
mov edx, dword [ebp - 0x638]
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x1008d449
mov ecx, dword [ebp - 0x64c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1008d43f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1008d5d2
push edx
push ecx
call fcn.10091f2c
add esp, 8
mov edx, dword [ebp - 0x650]
cmp edx, 8
jb 0x1008d489
mov ecx, dword [ebp - 0x664]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1008d47f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1008d5d2
push edx
push ecx
call fcn.10091f2c
add esp, 8
mov edx, dword [ebp - 0x698]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x1008d4cd
mov ecx, dword [ebp - 0x6ac]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1008d4c3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1008d5d2
push edx
push ecx
call fcn.10091f2c
add esp, 8
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1008d4d2
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 0x1008cda0
push 0x10107018
mov dword [ebp - method.nfapi::AutoLock.virtual_0], vtable.nfapi::AutoLock.0
mov dword [ebp - 0x6d4], 0x10107018
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp - 0x6c0]
mov ecx, 0x1010700c
mov byte [ebp - 4], 9
push dword [ebp - 0x6b8]
push dword [ebp - 0x6bc]
call fcn.10089650
push 0x10107018
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp - 0x6bc]
test esi, esi
je 0x1008d5b6
mov edi, dword [ebp - 0x6b8]
cmp esi, edi
je 0x1008d576
mov ecx, esi
call fcn.1008a380
add esi, 0x34
cmp esi, edi
jne 0x1008d562
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 0x1008d5ac
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1008d5d2
push ecx
push esi
call fcn.10091f2c
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.10091bd4
mov esp, ebp
pop ebp
ret
call fcn.1009dddf
call fcn.100030c0
int3