Function at 0x4177e0
Capabilities:
Get disk information
Get disk size
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a73b8
mov eax, dword fs:[0]
push eax
sub esp, 0x880
mov eax, dword [0x4d1480]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x814], 0
mov ecx, 3
cmp dword [esi + 0x10], ecx
xorps xmm0, xmm0
movups xmmword [ebp - 0x850], xmm0
cmovb ecx, dword [esi + 0x10]
mov eax, esi
cmp dword [esi + 0x14], 7
mov dword [ebp - 0x840], 0
mov dword [ebp - 0x83c], 0
jbe 0x41784c
mov eax, dword [esi]
push ecx
push eax
lea ecx, [ebp - 0x850]
call fcn.004082b0
mov eax, 4
mov dword [ebp - 0x870], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x834]
cmp dword [ebp - 0x83c], 7
lea eax, [ebp - 0x850]
push 0
cmova eax, dword [ebp - 0x850]
push 0
push ecx
push eax
mov dword [ebp - 0x834], 0
mov dword [ebp - 0x830], 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x417d34
push 0x800
lea eax, [ebp - 0x810]
mov dword [ebp - 0x838], 1
push 0
push eax
call fcn.00482730
add esp, 0xc
mov eax, esi
cmp dword [esi + 0x14], 7
jbe 0x4178d7
mov eax, dword [esi]
push 0x400
lea ecx, [ebp - 0x810]
push ecx
lea ecx, [ebp - 0x838]
push ecx
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x4179ea
xorps xmm0, xmm0
mov dword [ebp - 0x81c], 0
lea ecx, [ebp - 0x810]
mov dword [ebp - 0x818], 0
movups xmmword [ebp - 0x82c], xmm0
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417930
sub ecx, edx
lea eax, [ebp - 0x810]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x82c]
call fcn.004082b0
mov eax, 5
mov byte [ebp - 4], 1
push 0x4c12d4
lea ecx, [ebp - 0x82c]
mov dword [ebp - 0x870], eax
mov dword [ebp - 0x814], eax
call fcn.0040cba0
test al, al
jne 0x4179ea
xorps xmm0, xmm0
mov dword [ebp - 0x87c], 0
lea ecx, [ebp - 0x810]
mov dword [ebp - 0x878], 0
movups xmmword [ebp - 0x88c], xmm0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4179a2
sub ecx, edx
lea eax, [ebp - 0x810]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x88c]
call fcn.004082b0
mov eax, 7
lea ecx, [ebp - 0x88c]
push str.NTFS
mov dword [ebp - 0x870], eax
call fcn.0040cba0
mov byte [ebp - 0x869], 1
test al, al
je 0x4179f1
mov byte [ebp - 0x869], 0
mov eax, dword [ebp - 0x870]
test al, 2
je 0x417a4a
mov ecx, dword [ebp - 0x878]
and eax, 0xfffffffd
mov dword [ebp - 0x870], eax
cmp ecx, 7
jbe 0x417a4a
mov edx, dword [ebp - 0x88c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x417a3a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417da2
push ecx
push edx
call fcn.004804a9
mov eax, dword [ebp - 0x870]
add esp, 8
mov dword [ebp - 4], 0
test al, 1
je 0x417a95
mov ecx, dword [ebp - 0x818]
cmp ecx, 7
jbe 0x417a95
mov edx, dword [ebp - 0x82c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x417a8b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417da2
push ecx
push edx
call fcn.004804a9
add esp, 8
cmp byte [ebp - 0x869], 0
jne 0x417d34
mov edx, dword [ebp - 0x830]
mov ecx, dword [ebp - 0x834]
call fcn.00481280
mulsd xmm0, qword [0x4c4b00]
mov ecx, 2
cmp dword [esi + 0x10], ecx
mov dword [ebp - 0x87c], 0
cmovb ecx, dword [esi + 0x10]
cmp dword [esi + 0x14], 7
movsd qword [ebp - 0x874], xmm0
xorps xmm0, xmm0
movups xmmword [ebp - 0x88c], xmm0
mov dword [ebp - 0x878], 0
jbe 0x417af5
mov esi, dword [esi]
push ecx
push esi
lea ecx, [ebp - 0x88c]
call fcn.004082b0
mov byte [ebp - 4], 2
lea esi, [ebp - 0x88c]
cmp dword [ebp - 0x878], 7
lea ecx, [ebp - 0x82c]
push 4
cmova esi, dword [ebp - 0x88c]
xorps xmm0, xmm0
push str.._
movups xmmword [ebp - 0x82c], xmm0
mov dword [ebp - 0x81c], 0
mov dword [ebp - 0x818], 0
call fcn.004082b0
mov ecx, esi
mov byte [ebp - 4], 3
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417b53
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x82c]
call fcn.0040d1f0
cmp dword [ebp - 0x818], 7
lea eax, [ebp - 0x82c]
push 0
cmova eax, dword [ebp - 0x82c]
push 0
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x417c5a
mov ecx, dword [ebp - 0x818]
cmp ecx, 7
jbe 0x417be2
mov edx, dword [ebp - 0x82c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x417bd8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417d9d
push ecx
push edx
call fcn.004804a9
add esp, 8
mov byte [ebp - 0x869], 0
mov ecx, dword [ebp - 0x878]
cmp ecx, 7
jbe 0x417c29
mov edx, dword [ebp - 0x88c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x417c1f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417da2
push ecx
push edx
call fcn.004804a9
add esp, 8
cmp byte [ebp - 0x869], 0
je 0x417d3f
movsd xmm0, qword [ebp - 0x874]
cvttsd2si eax, xmm0
cmp eax, 0x6000
jle 0x417d3f
mulsd xmm0, qword [0x4c4b10]
jmp 0x417d37
push 0
lea ecx, [ebp - 0x814]
mov dword [ebp - 0x814], 0
push ecx
push 0xc
lea ecx, [ebp - 0x868]
mov dword [ebp - 0x85c], 8
push ecx
push 0xc
lea ecx, [ebp - 0x85c]
mov dword [ebp - 0x858], 0
push ecx
push 0x2d1400
push eax
mov byte [ebp - 0x860], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp byte [ebp - 0x860], 1
mov ecx, dword [ebp - 0x818]
jne 0x417cfb
cmp ecx, 7
jbe 0x417cef
mov edx, dword [ebp - 0x82c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x417ce5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417d9d
push ecx
push edx
call fcn.004804a9
add esp, 8
mov byte [ebp - 0x869], 1
jmp 0x417be9
cmp ecx, 7
jbe 0x417be2
mov edx, dword [ebp - 0x82c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x417bd8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417d9d
jmp 0x417bd8
xorps xmm0, xmm0
movsd qword [ebp - 0x874], xmm0
mov ecx, dword [ebp - 0x83c]
cmp ecx, 7
jbe 0x417d7b
mov edx, dword [ebp - 0x850]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x417d71
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417da2
push ecx
push edx
call fcn.004804a9
add esp, 8
movsd xmm0, qword [ebp - 0x874]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048049b
mov esp, ebp
pop ebp
ret
call fcn.00485a5d
call fcn.00485a5d
int3