Function at 0x10017a70
Capabilities:
Get disk information

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10021f81
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x90
push esi
push edi
mov eax, dword [0x100290c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x418
mov dword [ebp - 0x20], 0
call fcn.10020cf0
mov esi, eax
add esp, 4
mov ecx, esi
mov dword [ebp - 0x18], esi
mov dword [esi], 0
call fcn.1001f580
mov ecx, 0x11dd76f0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10017ae0
sub ecx, edx
push ecx
push 0x11dd76f0
mov ecx, 0x10041a88
call fcn.1001e820
push 0x100258c4
lea ecx, [ebp - 0x50]
call fcn.10003fd0
lea eax, [ebp - 0x50]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x38]
call fcn.10016a60
add esp, 4
mov ecx, 0x10041b00
push eax
call fcn.1001e520
mov ecx, dword [ebp - 0x24]
cmp ecx, 0xf
jbe 0x10017b57
mov edx, dword [ebp - 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10017b4d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10017b96
push ecx
push edx
call fcn.10021042
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xf
mov byte [ebp - 0x38], 0
cmp ecx, 0xf
jbe 0x10017ba6
mov edx, dword [ebp - 0x50]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10017b9c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10017b9c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10021042
add esp, 8
mov ecx, 0x11dd6ef0
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10017bb0
sub ecx, edx
push ecx
push 0x11dd6ef0
mov ecx, 0x10041aa0
call fcn.1001e820
mov ecx, 0x11dd6af0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10017bd1
sub ecx, edx
push ecx
push 0x11dd6af0
mov ecx, 0x10041b78
call fcn.1001e820
mov eax, dword [esi + 4]
test al, al
jns 0x10017bf8
mov edx, str.Removable
jmp 0x10017c07
test al, 0x40
mov edx, str.Fixed
mov eax, str.Unknown
cmove edx, eax
mov ecx, edx
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10017c10
sub ecx, esi
push ecx
push edx
mov ecx, 0x10041a40
call fcn.1001e820
cmp dword [0x10041b14], 0xf
mov eax, 0x10041b00
cmova eax, dword [0x10041b00]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.10003fd0
lea ecx, [ebp - 0x50]
call fcn.10020410
add esp, 0x18
mov ecx, 0x10041a70
push eax
call fcn.1001e520
mov ecx, dword [ebp - 0x3c]
cmp ecx, 0xf
jbe 0x10017c8f
mov edx, dword [ebp - 0x50]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10017c85
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10017c85
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10021042
add esp, 8
cmp dword [0x10041b8c], 0xf
lea ecx, [ebp - 0x50]
mov eax, 0x10041b78
cmova eax, dword [0x10041b78]
push eax
call fcn.10003fd0
mov edi, eax
push 0x64
mov dword [ebp - 4], 1
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov esi, eax
push 0xff
push 0x10042310
push 0x100422b0
push 0x100421a0
push 0x10042264
push 0xff
push 0x10042020
push 0x10025820
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov ecx, dword [0x10042264]
mov eax, ecx
shl eax, 5
add eax, ecx
push eax
imul eax, ecx, 0x19
push eax
push str._2x_2x
push esi
call fcn.10001e10
sub esp, 8
mov edx, esi
mov ecx, esp
push edi
call fcn.1001e980
add esp, 4
lea ecx, [ebp - 0x38]
call fcn.10020410
add esp, 0x18
mov ecx, 0x10041ae8
push eax
call fcn.1001e520
mov ecx, dword [ebp - 0x24]
cmp ecx, 0xf
jbe 0x10017d62
mov edx, dword [ebp - 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10017d58
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10017da1
push ecx
push edx
call fcn.10021042
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xf
mov byte [ebp - 0x38], 0
cmp ecx, 0xf
jbe 0x10017db1
mov edx, dword [ebp - 0x50]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10017da7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10017da7
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10021042
add esp, 8
cmp dword [0x10041b14], 0xf
mov ecx, 0x10041b00
mov esi, dword [0x10041b00]
mov eax, 0x100243a6
seta dh
cmova ecx, esi
nop
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x10017df0
test dl, dl
je 0x10017dec
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x10017df0
add ecx, 2
add eax, 2
test dl, dl
jne 0x10017dd0
xor eax, eax
jmp 0x10017df5
sbb eax, eax
or eax, 1
test eax, eax
je 0x10017e61
test dh, dh
mov eax, 0x10041b00
mov ecx, str.2143
cmovne eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10017e28
test dl, dl
je 0x10017e24
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10017e28
add eax, 2
add ecx, 2
test dl, dl
jne 0x10017e08
xor eax, eax
jmp 0x10017e2d
sbb eax, eax
or eax, 1
test eax, eax
je 0x10017e61
test dh, dh
mov eax, 0x10041b00
cmovne eax, esi
sub esp, 0x18
mov ecx, esp
push eax
call fcn.10003fd0
lea ecx, [ebp - 0x50]
call fcn.10020410
add esp, 0x18
mov ecx, eax
mov dword [ebp - 4], 2
mov eax, 1
jmp 0x10017e84
cmp dword [0x10041afc], 0xf
lea ecx, [ebp - 0x38]
mov eax, 0x10041ae8
cmova eax, dword [0x10041ae8]
push eax
call fcn.10003fd0
mov ecx, eax
mov eax, 2
push ecx
mov ecx, 0x10041b30
mov dword [ebp - 0x14], eax
call fcn.1001e520
mov eax, dword [ebp - 0x14]
test al, 2
je 0x10017ee4
mov ecx, dword [ebp - 0x24]
and eax, 0xfffffffd
mov dword [ebp - 0x14], eax
cmp ecx, 0xf
jbe 0x10017ed2
mov edx, dword [ebp - 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10017ec5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10017f15
push ecx
push edx
call fcn.10021042
mov eax, dword [ebp - 0x14]
add esp, 8
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xf
mov byte [ebp - 0x38], 0
mov dword [ebp - 4], 0xffffffff
test al, 1
je 0x10017f25
mov ecx, dword [ebp - 0x3c]
cmp ecx, 0xf
jbe 0x10017f25
mov edx, dword [ebp - 0x50]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10017f1b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10017f1b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10021042
add esp, 8
mov ecx, 0xeb
xor edx, edx
nop dword [eax]
mov al, byte [edx + 0x100258d0]
xor al, cl
inc ecx
mov byte [ebp + edx - 0x9c], al
and ecx, 0x800000ff
jns 0x10017f50
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x30
jl 0x10017f30
mov byte [ebp - 0x6c], 0
lea esi, [ebp - 0x9c]
mov dword [ebp - 4], 3
lea ecx, [esi + 1]
nop word [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x10017f70
sub esi, ecx
mov eax, 0x7fffffff
mov ecx, dword [0x10041b40]
sub eax, ecx
mov dword [ebp - 0x18], ecx
cmp eax, esi
jb 0x10018143
cmp dword [0x10041b44], 0xf
lea edx, [esi + ecx]
mov eax, 0x10041b30
mov dword [ebp - 0x1c], edx
cmova eax, dword [0x10041b30]
lea edi, [ebp - 0x68]
mov dword [ebp - 0x20], eax
xorps xmm0, xmm0
mov eax, 0xf
movups xmmword [ebp - 0x68], xmm0
cmp edx, eax
jbe 0x1001803e
mov eax, edx
or eax, 0xf
cmp eax, 0x7fffffff
jbe 0x10017ffd
mov eax, 0x80000000
mov dword [ebp - 0x14], 0x7fffffff
add eax, 0x23
push eax
call fcn.10020cf0
add esp, 4
test eax, eax
je 0x100180a2
mov edx, dword [ebp - 0x1c]
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
mov eax, dword [ebp - 0x14]
jmp 0x1001803b
mov ecx, 0x16
cmp eax, ecx
cmovb eax, ecx
mov dword [ebp - 0x14], eax
lea ecx, [eax + 1]
cmp ecx, 0x1000
jb 0x10018022
lea eax, [ecx + 0x23]
cmp eax, ecx
jbe 0x10018148
jmp 0x10017fdb
test ecx, ecx
je 0x10018039
push ecx
call fcn.10020cf0
mov edx, dword [ebp - 0x1c]
mov edi, eax
mov eax, dword [ebp - 0x14]
add esp, 4
jmp 0x1001803b
xor edi, edi
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x9c]
push esi
push eax
push edi
mov dword [ebp - 0x58], edx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [edi + esi]
push dword [ebp - 0x18]
push dword [ebp - 0x20]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x1c]
add esp, 0xc
mov ecx, 0x10041b18
mov byte [edi + eax], 0
lea eax, [ebp - 0x68]
push eax
call fcn.1001e520
mov ecx, dword [ebp - 0x54]
cmp ecx, 0xf
jbe 0x100180b2
mov edx, dword [ebp - 0x68]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100180a8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100180a8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10021042
add esp, 8
mov ecx, 0x7f
xor edx, edx
nop dword [eax]
mov al, byte [edx + 0x10025860]
xor al, cl
inc ecx
mov byte [ebp + edx - 0x60], al
and ecx, 0x800000ff
jns 0x100180dd
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0xf
jl 0x100180c0
mov byte [ebp - 0x51], 0
sub esp, 0xc
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x60]
call fcn.10016850
mov dword [ebp - 4], 0xffffffff
xorps xmm0, xmm0
cmp dword [0x10041b2c], 0xf
mov edx, 0x10041b18
push ecx
cmova edx, dword [0x10041b18]
mov ecx, eax
mov dword [0x100421e8], eax
movups xmmword [ebp - 0x60], xmm0
call fcn.10016950
add esp, 0x10
mov dword [0x100421f4], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.10001f90
call fcn.10001ef0
int3