Function at 0x10085490
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10245958
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x102e1e14]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0xfc], eax
mov dword [ebp - 0x100], 0
mov edi, dword [eax + 0x28]
mov esi, dword [eax + 0x24]
cmp esi, edi
je 0x100854f8
nop dword [eax]
lea ecx, [esi + 4]
call fcn.100165a0
add esi, 0x30
cmp esi, edi
jne 0x100854e0
mov eax, dword [ebp - 0xfc]
mov esi, dword [eax + 0x24]
push 0x3c
mov dword [eax + 0x28], esi
lea eax, [ebp - 0xf4]
push 0
push eax
call fcn.1020dca0
mov edi, dword [ebp - 0xfc]
lea eax, [ebp - 0xf4]
push eax
mov byte [ebp - 0xf2], 1
mov eax, dword [edi + 0x10]
call eax
movzx eax, byte [ebp - 0xec]
xor ecx, ecx
cmp byte [ebp - 0xf3], 1
push 0x100
cmove ecx, eax
mov dword [ebp - 0x108], ecx
call fcn.100d1d56
mov esi, eax
add esp, 0x14
mov dword [ebp - 0x104], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x1008558c
lea ecx, [ebp - 0xe8]
call fcn.1003ae60
mov dword [ebp - 0x100], 1
mov ecx, esi
push dword [edi + 0x10]
mov byte [ebp - 4], 1
push eax
push edi
call fcn.10084350
mov edi, eax
mov dword [ebp - 0x104], eax
jmp 0x10085594
xor edi, edi
mov dword [ebp - 0x104], edi
mov dword [ebp - 0x114], edi
test byte [ebp - 0x100], 1
mov dword [ebp - 4], 4
je 0x100855b5
lea ecx, [ebp - 0xe4]
call fcn.100165a0
cmp byte [ebp - 0x108], 0
mov byte [ebp - 0xf6], 0
jbe 0x1008595d
nop dword [eax]
mov byte [ebp - 0xf5], 0
nop word [eax + eax]
xor ch, ch
mov byte [ebp - 0xf7], ch
push 0x38
call fcn.100d1d56
mov esi, eax
add esp, 4
mov dword [ebp - 0x118], esi
mov al, byte [ebp - 0xf6]
lea ecx, [ebp - 0xb8]
mov byte [edi + 0x60], al
mov byte [edi + 0x92], al
mov al, byte [ebp - 0xf5]
mov byte [edi + 0x61], al
mov byte [edi + 0x98], al
mov al, byte [ebp - 0xf7]
push 6
push 0x12
mov byte [ebp - 4], 5
mov byte [edi + 0x62], al
mov byte [edi + 0x99], al
call fcn.1003ae40
mov eax, dword [edi]
lea ecx, [ebp - 0x110]
push 0
push ecx
push 0x2710
mov eax, dword [eax + 0xf8]
lea ecx, [ebp - 0xb8]
push ecx
mov ecx, edi
mov dword [ebp - 0x110], esi
mov dword [ebp - 0x10c], 0x38
mov byte [ebp - 0xb4], 0x80
call eax
cmp al, 1
jne 0x10085908
mov al, byte [esi]
cmp al, 5
je 0x10085688
cmp al, 4
jne 0x10085908
lea ecx, [ebp - 0x90]
call fcn.1003ae60
mov dl, byte [ebp - 0xf6]
xorps xmm0, xmm0
mov cl, byte [ebp - 0xf5]
mov ch, byte [ebp - 0xf7]
movups xmmword [ebp - 0x80], xmm0
mov dword [ebp - 0x68], 0
movq qword [ebp - 0x70], xmm0
mov word [ebp - 0x64], 0
mov byte [ebp - 0x90], dl
mov byte [ebp - 0x8f], cl
mov byte [ebp - 0x8e], ch
mov byte [ebp - 0x62], 0
mov eax, dword [esi + 8]
mov dword [ebp - 0x80], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x7c], eax
movups xmm0, xmmword [esi + 0x10]
movups xmmword [ebp - 0x77], xmm0
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x66], eax
lea eax, [ebp - 0xa8]
mov byte [ebp - 4], 6
push eax
mov eax, dword [ebp - 0xfc]
xorps xmm0, xmm0
movups xmmword [ebp - 0xa8], xmm0
mov byte [ebp - 0xa8], 6
movq qword [ebp - 0x98], xmm0
mov eax, dword [eax + 0x10]
mov byte [ebp - 0xa6], dl
mov byte [ebp - 0xa0], cl
mov byte [ebp - 0x9f], ch
call eax
add esp, 4
cmp byte [ebp - 0xa7], 1
jne 0x10085754
mov al, byte [ebp - 0x9d]
cmp al, 0x80
je 0x10085754
movzx eax, al
add ax, 0x41
movzx eax, ax
jmp 0x1008584b
movups xmm0, xmmword [str..X:]
mov al, 2
mov byte [ebp - 0xf8], al
movups xmmword [ebp - 0x20], xmm0
nop word [eax + eax]
movzx eax, al
add ax, 0x40
mov word [ebp - 0xfe], ax
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
jne 0x10085833
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x100857d8
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10085833
push 0x40
lea eax, [ebp - 0x60]
push 0
push eax
call fcn.1020dca0
add esp, 0xc
mov dword [ebp - 0x60], 8
lea eax, [ebp - 0x11c]
push 0
push eax
push 8
lea eax, [ebp - 0x60]
push eax
push 0
push 0
push 0x41018
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1008582c
mov al, byte [ebp - 0xf6]
cmp byte [ebp - 0x5c], al
jne 0x1008582c
mov al, byte [ebp - 0xf5]
cmp byte [ebp - 0x5a], al
je 0x100858d4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0xf8]
add al, 1
mov byte [ebp - 0xf8], al
cmp al, 0x1a
jbe 0x10085770
xor eax, eax
push eax
lea ecx, [ebp - 0x8c]
call fcn.10016630
push 0x10263250
lea ecx, [ebp - 0x8c]
call fcn.10017090
mov eax, dword [ebp - 0xfc]
mov edi, dword [eax + 0x28]
cmp dword [eax + 0x2c], edi
je 0x100858e7
mov al, byte [ebp - 0x90]
lea ecx, [edi + 4]
mov byte [edi], al
mov al, byte [ebp - 0x8f]
mov byte [edi + 1], al
mov al, byte [ebp - 0x8e]
mov byte [edi + 2], al
lea eax, [ebp - 0x8c]
push eax
call fcn.10016330
movq xmm0, qword [ebp - 0x80]
movq qword [edi + 0x10], xmm0
mov al, byte [ebp - 0x78]
mov byte [edi + 0x18], al
movups xmm0, xmmword [ebp - 0x77]
movups xmmword [edi + 0x19], xmm0
mov al, byte [ebp - 0x67]
mov byte [edi + 0x29], al
mov eax, dword [ebp - 0x66]
mov dword [edi + 0x2a], eax
mov al, byte [ebp - 0x62]
mov byte [edi + 0x2e], al
mov eax, dword [ebp - 0xfc]
add dword [eax + 0x28], 0x30
jmp 0x100858f7
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, word [ebp - 0xfe]
jmp 0x1008584b
lea ecx, [ebp - 0x90]
push ecx
push edi
lea ecx, [eax + 0x24]
call fcn.10084040
lea ecx, [ebp - 0x8c]
call fcn.100165a0
mov edi, dword [ebp - 0x104]
push 0x38
push esi
mov byte [ebp - 4], 4
call fcn.10209d2a
mov al, byte [ebp - 0xf7]
add esp, 8
inc al
mov byte [ebp - 0xf7], al
cmp al, 7
jbe 0x100855e8
mov al, byte [ebp - 0xf5]
inc al
mov byte [ebp - 0xf5], al
cmp al, 7
jbe 0x100855e0
mov al, byte [ebp - 0xf6]
inc al
mov byte [ebp - 0xf6], al
cmp al, byte [ebp - 0x108]
jb 0x100855d0
test edi, edi
je 0x1008596d
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax + 0xf4]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1020a080
mov esp, ebp
pop ebp
ret