Function at 0x10090220
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d8b59
mov eax, dword fs:[0]
push eax
sub esp, 0x6e4
mov eax, dword [0x10105230]
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 0x10090a04
lea ebx, [ebp - 0x428]
mov dword [ebp - 0x6c4], ebx
nop dword [eax]
movzx eax, word [ebx]
test ax, ax
je 0x10090a04
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 0x100909cd
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 0x10090302
sub ecx, edx
lea eax, [ebp - 0x18]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x6ac]
call fcn.10017b10
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 0x100df188
lea ecx, [ebp - 0x6ac]
mov byte [ebp - 4], 2
call fcn.10021910
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10090390
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x664]
call fcn.10017b10
lea ecx, [ebp - 0x18]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100903c0
sub ecx, edx
lea eax, [ebp - 0x18]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x64c]
call fcn.10017b10
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100903f0
mov esi, dword [ebp - 0x6b8]
sub ecx, edx
sar ecx, 1
mov dword [ebp - 0x634], ecx
cmp esi, dword [ebp - 0x6b4]
je 0x100904a7
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 0x1009046f
cmp dword [ebp - 0x650], 8
mov ecx, esi
push dword [ebp - 0x654]
cmovae eax, dword [ebp - 0x664]
push eax
call fcn.10017b10
lea eax, [ebp - 0x64c]
cmp edi, eax
je 0x10090495
cmp dword [ebp - 0x638], 8
mov ecx, edi
push dword [ebp - 0x63c]
cmovae eax, dword [ebp - 0x64c]
push eax
call fcn.10017b10
mov eax, dword [ebp - 0x634]
mov dword [esi + 0x30], eax
add dword [ebp - 0x6b8], 0x34
jmp 0x100904ba
lea eax, [ebp - 0x664]
push eax
push esi
lea ecx, [ebp - 0x6bc]
call fcn.1008cf00
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 0x10090905
cmp eax, 4
je 0x10090905
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 0x10090533
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x694]
call fcn.10017b10
mov ecx, dword [0x1010db24]
xor bl, bl
mov byte [ebp - 4], 6
mov dword [ebp - 0x6b0], 0
test ecx, ecx
je 0x1009068e
cmp dword [0x1010db20], 0
je 0x1009068e
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 0x10090690
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 [0x1010db20]
test eax, eax
js 0x10090680
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 0x10090656
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x67c]
call fcn.10017b10
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 0x10090690
xor bl, bl
mov edx, dword [ebp - 0x680]
mov byte [ebp - 4], 5
cmp edx, 8
jb 0x100906d4
mov ecx, dword [ebp - 0x694]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100906ca
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10090ad2
push edx
push ecx
call fcn.1009517b
add esp, 8
mov edx, dword [ebp - 0x67c]
mov dword [ebp - 0x6d0], edx
test bl, bl
je 0x100908c1
mov ebx, dword [ebp - 0x650]
lea eax, [ebp - 0x67c]
cmp edi, 8
cmovae eax, edx
mov dword [ebp - 0x6c0], eax
cmp esi, ebx
ja 0x10090738
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.100971a0
add esp, 0xc
xor eax, eax
mov word [edi + esi], ax
mov edi, dword [ebp - 0x66c]
jmp 0x10090800
cmp esi, 0x7ffffffe
ja 0x10090ad7
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x10090756
mov esi, bind
jmp 0x10090774
mov ecx, ebx
mov eax, bind
shr ecx, 1
sub eax, ecx
cmp ebx, eax
jbe 0x1009076c
mov esi, bind
jmp 0x10090774
lea eax, [ecx + ebx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x664]
call fcn.10017ab0
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.100971a0
mov eax, dword [ebp - 0x6b0]
xor ecx, ecx
add esp, 0xc
mov word [eax + esi], cx
cmp ebx, 8
jb 0x100907fa
mov ecx, dword [ebp - 0x664]
lea ebx, [ebx*2 + 2]
mov eax, ecx
cmp ebx, 0x1000
jb 0x100907ea
mov ecx, dword [ecx - 4]
add ebx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10090ad2
push ebx
push ecx
call fcn.1009517b
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 0x100908a8
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 0x10090870
cmp dword [ebp - 0x650], 8
mov ecx, esi
push dword [ebp - 0x654]
cmovae eax, dword [ebp - 0x664]
push eax
call fcn.10017b10
lea eax, [ebp - 0x64c]
cmp edi, eax
je 0x10090896
cmp dword [ebp - 0x638], 8
mov ecx, edi
push dword [ebp - 0x63c]
cmovae eax, dword [ebp - 0x64c]
push eax
call fcn.10017b10
mov eax, dword [ebp - 0x634]
mov dword [esi + 0x30], eax
add dword [ebp - 0x6b8], 0x34
jmp 0x100908bb
lea eax, [ebp - 0x664]
push eax
push esi
lea ecx, [ebp - 0x6bc]
call fcn.1008cf00
mov edx, dword [ebp - 0x6d0]
mov ecx, dword [ebp - 0x668]
mov byte [ebp - 4], 2
cmp ecx, 8
jb 0x100908ff
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100908f5
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10090ad2
push ecx
push edx
call fcn.1009517b
add esp, 8
mov ebx, dword [ebp - 0x6c4]
mov edx, dword [ebp - 0x638]
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x10090949
mov ecx, dword [ebp - 0x64c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1009093f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10090ad2
push edx
push ecx
call fcn.1009517b
add esp, 8
mov edx, dword [ebp - 0x650]
cmp edx, 8
jb 0x10090989
mov ecx, dword [ebp - 0x664]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1009097f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10090ad2
push edx
push ecx
call fcn.1009517b
add esp, 8
mov edx, dword [ebp - 0x698]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x100909cd
mov ecx, dword [ebp - 0x6ac]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100909c3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10090ad2
push edx
push ecx
call fcn.1009517b
add esp, 8
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100909d2
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 0x100902a0
push 0x1010db08
mov dword [ebp - method.nfapi::AutoLock.virtual_0], vtable.nfapi::AutoLock.0
mov dword [ebp - 0x6d4], 0x1010db08
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp - 0x6c0]
mov ecx, 0x1010dafc
mov byte [ebp - 4], 9
push dword [ebp - 0x6b8]
push dword [ebp - 0x6bc]
call fcn.1008cb10
push 0x1010db08
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp - 0x6bc]
test esi, esi
je 0x10090ab6
mov edi, dword [ebp - 0x6b8]
cmp esi, edi
je 0x10090a76
mov ecx, esi
call fcn.1008d880
add esi, 0x34
cmp esi, edi
jne 0x10090a62
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 0x10090aac
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10090ad2
push ecx
push esi
call fcn.1009517b
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.10094e23
mov esp, ebp
pop ebp
ret
call fcn.100a129f
call fcn.100030c0
int3