Function at 0x10016050
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x10017ffb
mov eax, dword fs:[0]
push eax
sub esp, 0x4c4
mov eax, dword [0x1001e388]
xor eax, esp
mov dword [esp + 0x4c0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1001e388]
xor eax, esp
push eax
lea eax, [esp + 0x4d8]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
lea eax, [esp + 0x2cc]
push eax
push 0x104
mov dword [esp + 0x4e8], ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x100163ab
lea ebp, [esp + 0x2cc]
lea edi, [ebx + 7]
jmp 0x100160d0
movzx eax, word [ebp]
cmp ax, bx
je 0x100163ab
push 0x104
lea ecx, [esp + 0xc8]
push ecx
lea edx, [esp + 0xc4]
push edx
mov word [esp + 0xc8], ax
mov word [esp + 0xca], 0x3a
mov word [esp + 0xcc], bx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x10016377
lea eax, [esp + 0xbc]
mov dword [esp + 0x9c], edi
mov dword [esp + 0x98], ebx
mov word [esp + 0x88], bx
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10016140
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xc0]
push eax
lea esi, [esp + 0x8c]
call fcn.10005a20
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], ebx
mov word [esp + 0x4c], bx
mov dword [esp + 0x7c], edi
mov dword [esp + 0x78], ebx
mov word [esp + 0x68], bx
mov dword [esp + 0x80], ebx
push 1
push 0x1001ae8c
mov ecx, esi
mov byte [esp + 0x4e8], 2
call fcn.100058a0
lea eax, [esp + 0xc4]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x100161a5
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0xc8]
push ecx
lea esi, [esp + 0x50]
call fcn.10005a20
lea eax, [esp + 0xbc]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x100161d0
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0xc0]
push edx
lea esi, [esp + 0x6c]
call fcn.10005a20
lea eax, [esp + 0xc4]
lea edx, [eax + 2]
jmp 0x10016200
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10016200
sub eax, edx
sar eax, 1
mov dword [esp + 0x80], eax
lea eax, [esp + 0x48]
push eax
lea esi, [esp + 0x20]
call fcn.10004050
mov eax, dword [esp + 0x88]
mov esi, 8
cmp dword [esp + 0x9c], esi
jae 0x10016240
lea eax, [esp + 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
je 0x10016317
cmp eax, 4
je 0x10016317
mov dword [esp + 0xb8], edi
mov dword [esp + 0xb4], ebx
mov word [esp + 0xa4], bx
lea edx, [esp + 0xc4]
lea eax, [esp + 0x2c]
mov byte [esp + 0x4e0], 3
call fcn.10003da0
lea ecx, [esp + 0x2c]
push ecx
lea esi, [esp + 0xa4]
mov byte [esp + 0x4e4], 4
call fcn.10014e70
add esp, 4
mov byte [esp + 0x4e0], 3
cmp dword [esp + 0x44], 8
mov byte [esp + 0x1b], al
jb 0x100162c3
mov edx, dword [esp + 0x30]
push edx
call fcn.10008635
add esp, 4
cmp byte [esp + 0x1b], bl
je 0x100162f8
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0xa8]
lea ecx, [esp + 0x50]
call fcn.10005970
mov eax, dword [esp + 0xb4]
lea ecx, [esp + 0x48]
push ecx
lea esi, [esp + 0x20]
mov dword [esp + 0x84], eax
call fcn.10004050
cmp dword [esp + 0xb8], 8
jb 0x10016312
mov edx, dword [esp + 0xa4]
push edx
call fcn.10008635
add esp, 4
mov esi, 8
cmp dword [esp + 0x7c], esi
jb 0x1001632a
mov eax, dword [esp + 0x68]
push eax
call fcn.10008635
add esp, 4
cmp dword [esp + 0x60], esi
mov dword [esp + 0x7c], edi
mov dword [esp + 0x78], ebx
mov word [esp + 0x68], bx
jb 0x1001634a
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.10008635
add esp, 4
mov byte [esp + 0x4e0], bl
cmp dword [esp + 0x9c], esi
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], ebx
mov word [esp + 0x4c], bx
jb 0x10016377
mov edx, dword [esp + 0x88]
push edx
call fcn.10008635
add esp, 4
mov eax, ebp
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10016380
sub eax, edx
sar eax, 1
lea ebp, [ebp + eax*2 + 2]
mov eax, ebp
lea ecx, [esp + 0x2cc]
sub eax, ecx
sar eax, 1
cmp eax, 0x104
jb 0x100160d0
push 0x10020460
mov dword [esp + 0xc0], vtable.nfapi::AutoLock.0
mov dword [esp + 0xc4], 0x10020460
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ebx, [esp + 0x1c]
mov byte [esp + 0x4e0], 5
call fcn.10003ec0
push 0x10020460
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x1001640f
mov edx, dword [esp + 0xbc]
mov ecx, dword [esp + 0x24]
push edx
push ecx
call fcn.10007100
mov edx, dword [esp + 0x28]
push edx
call fcn.10008635
add esp, 0xc
mov ecx, dword [esp + 0x4d8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c0]
xor ecx, esp
call fcn.10007bc1
add esp, 0x4d0
ret