Function at 0x1007d970
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10154b11
mov eax, dword fs:[0]
push eax
mov eax, 0x190c
call fcn.100f4490
mov eax, dword [0x10209f80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x1900], edi
mov dword [ebp - 0x1888], 0
mov dword [ebp - 0x188c], edi
movq qword [edi], xmm0
mov dword [edi + 8], 0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
lea eax, [ebp - 0x810]
push eax
push 0x800
mov dword [ebp - 4], 0
mov dword [ebp - 0x1888], 1
call esi
cmp eax, 0x7ff
jae 0x1007da2b
lea eax, [ebp - 0x810]
push eax
push 0x800
call esi
test eax, eax
je 0x1007e163
cmp eax, 0x801
jae 0x1007e163
jmp 0x1007da30
mov eax, 0x7ff
push eax
lea eax, [ebp - 0x810]
mov dword [ebp - 0x1818], 0
xorps xmm0, xmm0
mov dword [ebp - 0x1814], 0
push eax
lea ecx, [ebp - 0x1828]
movups xmmword [ebp - 0x1828], xmm0
call fcn.10016120
push 0
xorps xmm0, xmm0
mov dword [ebp - 4], 1
push 0x101fc582
lea ecx, [ebp - 0x18dc]
mov dword [ebp - 0x18cc], 0
movups xmmword [ebp - 0x18dc], xmm0
mov dword [ebp - 0x18c8], 0
call fcn.10016120
push 1
xorps xmm0, xmm0
mov byte [ebp - 4], 2
push 0x101fc888
lea ecx, [ebp - 0x18ac]
mov dword [ebp - 0x189c], 0
movups xmmword [ebp - 0x18ac], xmm0
mov dword [ebp - 0x1898], 0
call fcn.10016120
cmp dword [ebp - 0x1818], 0
mov byte [ebp - 4], 3
je 0x1007dd16
cmp dword [ebp - 0x18c8], 0xf
lea ecx, [ebp - 0x18dc]
mov esi, dword [ebp - 0x189c]
lea edx, [ebp - 0x18ac]
cmova ecx, dword [ebp - 0x18dc]
cmp dword [ebp - 0x1898], 0xf
cmova edx, dword [ebp - 0x18ac]
cmp esi, dword [ebp - 0x18cc]
jne 0x1007db72
sub esi, 4
jb 0x1007db29
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x1007db2e
add edx, 4
add ecx, 4
sub esi, 4
jae 0x1007db18
cmp esi, 0xfffffffc
je 0x1007db62
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x1007db5b
cmp esi, 0xfffffffd
je 0x1007db62
mov al, byte [edx + 1]
cmp al, byte [ecx + 1]
jne 0x1007db5b
cmp esi, 0xfffffffe
je 0x1007db62
mov al, byte [edx + 2]
cmp al, byte [ecx + 2]
jne 0x1007db5b
cmp esi, 0xffffffff
je 0x1007db62
mov al, byte [edx + 3]
cmp al, byte [ecx + 3]
je 0x1007db62
sbb eax, eax
or eax, 1
jmp 0x1007db64
xor eax, eax
test eax, eax
je 0x1007dd16
mov esi, dword [ebp - 0x189c]
xor edi, edi
mov eax, 0xa
mov dword [ebp - 0x1884], eax
mov byte [ebp - 0x187d], 0
nop word [eax + eax]
cmp dword [ebp - 0x1898], 0xf
lea edx, [ebp - 0x18ac]
lea ecx, [ebp - 0x1828]
cmova edx, dword [ebp - 0x18ac]
cmp dword [ebp - 0x1814], 0xf
mov dword [ebp - 0x18f8], edx
cmova ecx, dword [ebp - 0x1828]
mov dword [ebp - 0x1890], ecx
cmp esi, dword [ebp - 0x1818]
ja 0x1007dc9f
mov eax, dword [ebp - 0x1818]
sub eax, esi
cmp edi, eax
ja 0x1007dc99
test esi, esi
je 0x1007dcc6
movsx edx, byte [edx]
inc eax
add eax, ecx
mov dword [ebp - 0x1894], edx
add ecx, edi
mov dword [ebp - 0x18fc], eax
sub eax, ecx
push eax
push edx
push ecx
call sub.VCRUNTIME140.dll_memchr
mov edi, eax
add esp, 0xc
test edi, edi
je 0x1007dc99
mov eax, dword [ebp - 0x18f8]
mov edx, edi
sub esi, 4
jb 0x1007dc31
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x1007dc36
add edx, 4
add eax, 4
sub esi, 4
jae 0x1007dc20
cmp esi, 0xfffffffc
je 0x1007dc6a
mov cl, byte [edx]
cmp cl, byte [eax]
jne 0x1007dc63
cmp esi, 0xfffffffd
je 0x1007dc6a
mov cl, byte [edx + 1]
cmp cl, byte [eax + 1]
jne 0x1007dc63
cmp esi, 0xfffffffe
je 0x1007dc6a
mov cl, byte [edx + 2]
cmp cl, byte [eax + 2]
jne 0x1007dc63
cmp esi, 0xffffffff
je 0x1007dc6a
mov cl, byte [edx + 3]
cmp cl, byte [eax + 3]
je 0x1007dc6a
sbb eax, eax
or eax, 1
jmp 0x1007dc6c
xor eax, eax
test eax, eax
je 0x1007dcba
mov eax, dword [ebp - 0x18fc]
inc edi
sub eax, edi
push eax
push dword [ebp - 0x1894]
push edi
call sub.VCRUNTIME140.dll_memchr
mov esi, dword [ebp - 0x189c]
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x1007dc13
mov eax, dword [ebp - 0x1884]
cmp byte [ebp - 0x187d], 0
je 0x1007dd10
test eax, eax
je 0x1007dd10
mov esi, dword [ebp - 0x189c]
xor edi, edi
dec eax
jmp 0x1007db79
sub edi, dword [ebp - 0x1890]
mov esi, dword [ebp - 0x189c]
cmp edi, 0xffffffff
je 0x1007dc99
cmp dword [ebp - 0x18c8], 0xf
lea eax, [ebp - 0x18dc]
push dword [ebp - 0x18cc]
cmova eax, dword [ebp - 0x18dc]
lea ecx, [ebp - 0x1828]
push eax
push esi
push edi
mov byte [ebp - 0x187d], 1
call fcn.1008b3d0
add edi, dword [ebp - 0x18cc]
cmp edi, 0xffffffff
je 0x1007dd10
mov eax, dword [ebp - 0x1884]
jmp 0x1007db90
mov edi, dword [ebp - 0x188c]
lea ecx, [ebp - 0x18ac]
call fcn.100122f0
lea ecx, [ebp - 0x18dc]
mov byte [ebp - 4], 1
call fcn.100122f0
lea eax, [ebp - 0x187d]
mov dword [ebp - 0x182c], 0
push eax
lea eax, [ebp - 0x187e]
mov byte [ebp - 0x187d], 0
push eax
lea eax, [ebp - 0x1828]
mov byte [ebp - 0x187e], 0
push eax
lea eax, [ebp - 0x1834]
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x1834], xmm0
call fcn.100822f0
add esp, 0x10
xorps xmm0, xmm0
mov dword [ebp - 0x1854], 0
movups xmmword [ebp - 0x1864], xmm0
mov dword [ebp - 0x1850], 0xf
movups xmmword [ebp - 0x184c], xmm0
mov byte [ebp - 0x1864], 0
mov dword [ebp - 0x183c], 0
mov dword [ebp - 0x1838], 0xf
mov byte [ebp - 0x184c], 0
mov eax, dword [ebp - 0x1830]
mov esi, dword [ebp - 0x1834]
mov byte [ebp - 4], 5
mov dword [ebp - 0x1894], eax
cmp esi, eax
je 0x1007e111
nop dword [eax]
lea eax, [ebp - 0x1864]
cmp eax, esi
je 0x1007de03
cmp dword [esi + 0x14], 0xf
mov eax, esi
jbe 0x1007ddf4
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x1864]
push eax
call fcn.10014e30
cmp dword [ebp - 0x1838], 0xf
lea eax, [ebp - 0x184c]
mov dword [ebp - 0x183c], 0
cmova eax, dword [ebp - 0x184c]
push esi
mov byte [eax], 0
lea eax, [ebp - 0x187c]
push eax
call fcn.100825a0
add esp, 8
cmp dword [ebp - 0x1868], 7
lea ecx, [ebp - 0x1810]
push 0
push 0
push 0
push 0
push 0
push 0x800
lea eax, [ebp - 0x187c]
mov byte [ebp - 4], 6
cmova eax, dword [ebp - 0x187c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x1007e073
xorps xmm0, xmm0
mov dword [ebp - 0x18e4], 0
lea ecx, [ebp - 0x1810]
mov dword [ebp - 0x18e0], 0
movups xmmword [ebp - 0x18f4], xmm0
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1007dea0
sub ecx, edx
lea eax, [ebp - 0x1810]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x18f4]
call fcn.10015f80
mov edi, dword [ebp - 0x1888]
xorps xmm0, xmm0
mov ecx, dword [ebp - 0x18e4]
or edi, 2
mov byte [ebp - 4], 8
mov dword [ebp - 0x18b4], 0
mov dword [ebp - 0x18b0], 0xf
mov dword [ebp - 0x1888], edi
movups xmmword [ebp - 0x18c4], xmm0
mov byte [ebp - 0x18c4], 0
test ecx, ecx
je 0x1007dfe2
cmp dword [ebp - 0x18e0], 7
lea eax, [ebp - 0x18f4]
push 0
cmova eax, dword [ebp - 0x18f4]
push 0
push 0
push 0
push ecx
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1890], eax
test eax, eax
je 0x1007dfe2
push 0
push eax
lea ecx, [ebp - 0x1918]
call fcn.10012410
mov edi, eax
lea eax, [ebp - 0x18c4]
cmp eax, edi
je 0x1007df8a
mov ecx, eax
call fcn.100122f0
movups xmm0, xmmword [edi]
movups xmmword [ebp - 0x18c4], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [ebp - 0x18b4], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
lea ecx, [ebp - 0x1918]
call fcn.100122f0
cmp dword [ebp - 0x18b0], 0xf
lea ecx, [ebp - 0x18c4]
push 0
cmova ecx, dword [ebp - 0x18c4]
lea eax, [ebp - 0x18f4]
cmp dword [ebp - 0x18e0], 7
push 0
push dword [ebp - 0x1890]
cmova eax, dword [ebp - 0x18f4]
push ecx
push dword [ebp - 0x18e4]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, dword [ebp - 0x1888]
lea ecx, [ebp - 0x184c]
call fcn.100122f0
movups xmm0, xmmword [ebp - 0x18c4]
mov ecx, dword [ebp - 0x18e0]
and edi, 0xfffffffd
mov dword [ebp - 0x1888], edi
mov byte [ebp - 0x18c4], 0
mov byte [ebp - 4], 6
movups xmmword [ebp - 0x184c], xmm0
movq xmm0, qword [ebp - 0x18b4]
movq qword [ebp - 0x183c], xmm0
mov dword [ebp - 0x18b4], 0
mov dword [ebp - 0x18b0], 0xf
cmp ecx, 7
jbe 0x1007e073
mov edx, dword [ebp - 0x18f4]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1007e069
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1007e153
push ecx
push edx
call fcn.100f340e
add esp, 8
mov eax, dword [ebp - 0x188c]
mov edi, dword [eax + 4]
cmp edi, dword [eax + 8]
lea eax, [ebp - 0x1864]
push eax
je 0x1007e0b4
mov ecx, edi
mov dword [ebp - 0x1890], edi
call fcn.10012540
lea eax, [ebp - 0x184c]
mov byte [ebp - 4], 9
lea ecx, [edi + 0x18]
push eax
call fcn.10012540
mov edi, dword [ebp - 0x188c]
add dword [edi + 4], 0x30
jmp 0x1007e0c2
push edi
mov edi, dword [ebp - 0x188c]
mov ecx, edi
call fcn.1006e6f0
mov ecx, dword [ebp - 0x1868]
mov byte [ebp - 4], 5
cmp ecx, 7
jbe 0x1007e102
mov edx, dword [ebp - 0x187c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1007e0f8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1007e153
push ecx
push edx
call fcn.100f340e
add esp, 8
add esi, 0x18
cmp esi, dword [ebp - 0x1894]
jne 0x1007dde0
lea ecx, [ebp - 0x1864]
call fcn.10005dd0
lea ecx, [ebp - 0x1834]
call fcn.10014120
mov ecx, dword [ebp - 0x1814]
cmp ecx, 0xf
jbe 0x1007e163
mov edx, dword [ebp - 0x1828]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1007e159
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1007e159
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100f340e
add esp, 8
mov eax, edi
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.100f3936
mov esp, ebp
pop ebp
ret 4