Function at 0x101723d0
Capabilities:
Get disk information
Get disk size
Get storage device properties
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x2f0
mov edi, dword [ebp + 8]
mov ebx, ecx
bt edx, edi
jae 0x1017249e
add edi, 0x41
mov word [esp + 0x20], di
mov dword [esp + 0x22], 0x5c003a
mov word [esp + 0x26], 0
lea esi, [esp + 0x20]
push esi
call sub.KERNEL32.dll_GetDriveTypeW
lea ecx, [eax - 4]
cmp ecx, 0xfffffffe
jb 0x1017249e
mov dword [esp + 8], edi
mov dword [esp + 0xb8], eax
lea edi, [esp + 0xe2]
push 0x20a
push 0
push edi
call sub.msvcrt.dll_memset
add esp, 0xc
pxor xmm0, xmm0
movdqa xmmword [esp + 0x80], xmm0
movdqa xmmword [esp + 0x70], xmm0
movdqa xmmword [esp + 0x60], xmm0
movdqa xmmword [esp + 0x50], xmm0
lea eax, [esp + 0x50]
push 0x20
push eax
push 0
push 0
push 0
push 0x105
push edi
push esi
call sub.KERNEL32.dll_GetVolumeInformationW
test eax, eax
je 0x1017249e
xor eax, eax
nop word [eax + eax]
cmp word [esp + eax*2 + 0xe2], 0
je 0x101724ac
inc eax
cmp eax, 0x105
jne 0x10172480
mov edi, dword [esp + 8]
mov eax, 0x105
jmp 0x101724bb
mov dword [ebx], 3
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, dword [esp + 8]
cmp eax, 0x106
jae 0x101727b1
lea eax, [esp + eax*2 + 0xe2]
lea ecx, [esp + 0xe2]
mov word [esp + 0x94], 0
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], eax
lea ecx, [esp + 0xbc]
lea edx, [esp + 0x94]
call fcn.1016f1f0
movzx ecx, word [esp + 0x50]
mov eax, dword [esp + 0xbc]
mov edx, dword [esp + 0xc4]
mov dword [esp + 0xc], ebx
test cx, cx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], edx
mov word [esp + 0x16], cx
je 0x101726b4
cmp word [esp + 0x52], 0
je 0x101726c0
cmp word [esp + 0x54], 0
je 0x101726ca
cmp word [esp + 0x56], 0
je 0x101726d4
cmp word [esp + 0x58], 0
je 0x101726de
cmp word [esp + 0x5a], 0
je 0x101726e8
cmp word [esp + 0x5c], 0
je 0x101726f2
cmp word [esp + 0x5e], 0
je 0x101726fc
cmp word [esp + 0x60], 0
je 0x10172706
cmp word [esp + 0x62], 0
je 0x10172710
cmp word [esp + 0x64], 0
je 0x1017271a
cmp word [esp + 0x66], 0
je 0x10172724
cmp word [esp + 0x68], 0
je 0x1017272e
cmp word [esp + 0x6a], 0
je 0x10172738
cmp word [esp + 0x6c], 0
je 0x10172742
cmp word [esp + 0x6e], 0
je 0x1017274c
cmp word [esp + 0x70], 0
je 0x10172756
cmp word [esp + 0x72], 0
je 0x1017275d
cmp word [esp + 0x74], 0
je 0x10172764
cmp word [esp + 0x76], 0
je 0x1017276b
cmp word [esp + 0x78], 0
je 0x10172772
cmp word [esp + 0x7a], 0
je 0x10172779
cmp word [esp + 0x7c], 0
je 0x10172780
cmp word [esp + 0x7e], 0
je 0x10172787
cmp word [esp + 0x80], 0
je 0x1017278e
cmp word [esp + 0x82], 0
je 0x10172795
cmp word [esp + 0x84], 0
je 0x1017279c
cmp word [esp + 0x86], 0
je 0x101727a3
cmp word [esp + 0x88], 0
je 0x101727aa
cmp word [esp + 0x8a], 0
je 0x101727c6
cmp word [esp + 0x8c], 0
je 0x101727cd
cmp word [esp + 0x8e], 1
mov esi, 0x20
sbb esi, 0
jmp 0x101727d2
mov ebx, 1
xor esi, esi
jmp 0x1017289c
mov esi, 1
jmp 0x101727d6
mov esi, 2
jmp 0x101727d6
mov esi, 3
jmp 0x101727d6
mov esi, 4
jmp 0x101727d6
mov esi, 5
jmp 0x101727d6
mov esi, 6
jmp 0x101727d6
mov esi, 7
jmp 0x101727d6
mov esi, 8
jmp 0x101727d6
mov esi, 9
jmp 0x101727d6
mov esi, 0xa
jmp 0x101727d6
mov esi, 0xb
jmp 0x101727d6
mov esi, 0xc
jmp 0x101727d6
mov esi, 0xd
jmp 0x101727d6
mov esi, 0xe
jmp 0x101727d6
mov esi, 0xf
jmp 0x101727d6
mov esi, 0x10
jmp 0x101727d6
mov esi, 0x11
jmp 0x101727d2
mov esi, 0x12
jmp 0x101727d2
mov esi, 0x13
jmp 0x101727d2
mov esi, 0x14
jmp 0x101727d2
mov esi, 0x15
jmp 0x101727d2
mov esi, 0x16
jmp 0x101727d2
mov esi, 0x17
jmp 0x101727d2
mov esi, 0x18
jmp 0x101727d2
mov esi, 0x19
jmp 0x101727d2
mov esi, 0x1a
jmp 0x101727d2
mov esi, 0x1b
jmp 0x101727d2
mov esi, 0x1c
jmp 0x101727d2
push 0x1034d898
push 0x105
push eax
call fcn.1002a190
add esp, 0xc
ud2
mov esi, 0x1d
jmp 0x101727d2
mov esi, 0x1e
mov edi, dword [esp + 8]
mov eax, dword [0x103564a0]
mov ebx, dword [0x1035648c]
movzx eax, byte [eax]
mov eax, dword [ebx]
test eax, eax
jne 0x101727f9
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x10172883
mov dword [ebx], eax
push esi
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x10172883
mov ebx, eax
xor eax, eax
cmp esi, 0x10
jb 0x10172cf0
lea edx, [esp + esi*2 + 0x50]
lea ecx, [ebx + esi]
mov dword [esp + 8], edx
lea edx, [esp + 0x50]
cmp edx, ecx
setb cl
cmp ebx, dword [esp + 8]
jae 0x10172835
test cl, cl
jne 0x10172cf0
movdqa xmm0, xmmword [0x1034d070]
mov eax, esi
xor ecx, ecx
and eax, 0x30
nop word cs:[eax + eax]
nop
movdqu xmm1, xmmword [esp + ecx*2 + 0x50]
movdqu xmm2, xmmword [esp + ecx*2 + 0x60]
pand xmm1, xmm0
pand xmm2, xmm0
packuswb xmm1, xmm1
packuswb xmm2, xmm2
movq qword [ebx + ecx], xmm1
movq qword [ebx + ecx + 8], xmm2
add ecx, 0x10
cmp eax, ecx
jne 0x10172850
jmp 0x10172ce8
push esi
push 1
call fcn.1001a7e0
add esp, 8
jmp 0x10172c6f
movq xmm0, qword [str.._]
movq qword [esp + 0x94], xmm0
mov word [esp + 0x9c], di
mov dword [esp + 0x9e], 0x3a
push 0
push 0
push 3
push 0
push 3
push 0
lea eax, [esp + 0xac]
push eax
call sub.KERNEL32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x10172c27
mov dword [esp + 8], eax
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
lea eax, [esp + 0x28]
lea ecx, [esp + 0x40]
push eax
push ecx
push 0
lea eax, [esp + 0x2c]
push eax
call sub.KERNEL32.dll_GetDiskFreeSpaceExW
test eax, eax
je 0x10172bd8
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov eax, ecx
or eax, edx
je 0x10172bd8
mov eax, dword [esp + 0x28]
mov dword [esp + 0xd4], 7
mov dword [esp + 0xd8], 0
mov dword [esp + 0xb0], edx
mov dword [esp + 0xb4], ecx
mov byte [esp + 0xdc], 0
mov dword [esp + 0xcc], 0
mov dword [esp + 0xc8], 0
mov dword [esp + 0xd0], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xa8], eax
lea eax, [esp + 0x3c]
lea edx, [esp + 0xd4]
lea ecx, [esp + 0xc8]
push 0
push eax
push 0xc
push ecx
push 0xc
push edx
push 0x2d1400
push dword [esp + 0x24]
call sub.KERNEL32.dll_DeviceIoControl
xor edx, edx
cmp byte [esp + 0xd0], 0
mov ecx, 2
mov dword [esp + 0x18], 1
sete dl
cmp dword [esp + 0x3c], 0xc
cmovne edx, ecx
test eax, eax
mov eax, 1
cmove edx, ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xa4], edx
test ecx, ecx
je 0x10172a47
js 0x10172c6a
mov eax, dword [0x103564a0]
mov edi, dword [0x1035648c]
movzx eax, byte [eax]
mov eax, dword [edi]
test eax, eax
jne 0x10172a32
call sub.KERNEL32.dll_GetProcessHeap
mov ecx, dword [esp + 0x10]
test eax, eax
je 0x10172c50
mov dword [edi], eax
push ecx
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
mov ecx, dword [esp + 0x10]
test eax, eax
je 0x10172c50
push ecx
push dword [esp + 0x20]
mov dword [esp + 0x40], eax
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
test esi, esi
je 0x10172a95
mov eax, dword [0x103564a0]
mov edi, dword [0x1035648c]
movzx eax, byte [eax]
mov eax, dword [edi]
test eax, eax
jne 0x10172a80
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x10172c5d
mov dword [edi], eax
push esi
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
mov dword [esp + 0x18], eax
je 0x10172c5d
push esi
push ebx
push dword [esp + 0x20]
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [0x103564a0]
movzx eax, byte [eax]
mov eax, dword [0x1035648c]
mov eax, dword [eax]
test eax, eax
jne 0x10172acb
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x10172c42
mov ecx, dword [0x1035648c]
mov dword [ecx], eax
push 8
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x10172c42
movq xmm0, qword [esp + 0x20]
mov edi, eax
movq qword [eax], xmm0
lea eax, [esp + 0x20]
mov word [esp + 0x28], 0
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x26]
mov dword [esp + 0x30], eax
lea ecx, [esp + 0x40]
lea edx, [esp + 0x28]
call fcn.1016f1f0
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0xc]
movq xmm0, qword [esp + 0x40]
cmp dword [esp + 0xb8], 2
mov dword [ecx + 0x48], eax
mov eax, dword [esp + 0xa4]
movq qword [ecx + 0x40], xmm0
mov dword [ecx], eax
mov eax, dword [esp + 0x38]
mov dword [ecx + 4], 0xffffffff
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x10]
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov eax, dword [esp + 0xb0]
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x1c], eax
mov eax, dword [esp + 0xb4]
mov dword [ecx + 0x18], eax
mov eax, dword [esp + 0xa8]
mov dword [ecx + 0x24], eax
mov eax, dword [esp + 0xac]
mov dword [ecx + 0x20], eax
mov eax, dword [esp + 0x18]
mov dword [ecx + 0x28], eax
mov dword [ecx + 0x2c], esi
mov dword [ecx + 0x30], esi
mov dword [ecx + 0x34], edi
mov dword [ecx + 0x38], 4
mov dword [ecx + 0x3c], 4
sete byte [ecx + 0x4c]
push dword [esp + 8]
call sub.KERNEL32.dll_CloseHandle
cmp word [esp + 0x16], 0
je 0x10172bbd
push ebx
push 0
mov eax, dword [0x1035648c]
push dword [eax]
call sub.KERNEL32.dll_HeapFree
cmp dword [esp + 0xc0], 0
je 0x101724a4
push dword [esp + 0x1c]
push 0
mov eax, dword [0x1035648c]
jmp 0x10172c1b
mov eax, dword [esp + 0xc]
mov dword [eax], 3
push dword [esp + 8]
call sub.KERNEL32.dll_CloseHandle
cmp word [esp + 0x16], 0
je 0x10172c02
mov eax, dword [0x1035648c]
push ebx
push 0
push dword [eax]
call sub.KERNEL32.dll_HeapFree
cmp dword [esp + 0xc0], 0
je 0x101724a4
mov eax, dword [0x1035648c]
push dword [esp + 0x1c]
push 0
push dword [eax]
call sub.KERNEL32.dll_HeapFree
jmp 0x101724a4
push 0xffffffffffffffff
call sub.KERNEL32.dll_CloseHandle
mov eax, dword [esp + 0xc]
mov dword [eax], 3
cmp word [esp + 0x16], 0
jne 0x10172bf3
jmp 0x10172c02
push 8
push 2
call fcn.1001a7e0
add esp, 8
jmp 0x10172c6f
push ecx
push 1
call fcn.1001a7e0
add esp, 8
jmp 0x10172c6f
push esi
push 1
call fcn.1001a7e0
add esp, 8
jmp 0x10172c6f
call fcn.1001a7a0
ud2
cmp esi, eax
je 0x1017289c
movzx ecx, byte [esp + eax*2 + 0x50]
mov byte [ebx + eax], cl
inc eax
jmp 0x10172ce8