Function at 0x417500
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a7345
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4d1480]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x3c], ecx
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push 0
push 0
call edi
xor ecx, ecx
mov esi, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00480925
add esp, 4
mov dword [ebp - 0x38], eax
push eax
push esi
call edi
mov eax, dword [ebp - 0x38]
mov esi, eax
cmp word [eax], 0
je 0x4177a7
nop word [eax + eax]
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x41778b
cmp eax, 1
je 0x41778b
cmp eax, 2
je 0x41778b
cmp eax, 4
je 0x41778b
cmp eax, 5
je 0x41778b
cmp eax, 6
je 0x41778b
push 4
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
push str.._
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
call fcn.004082b0
mov ecx, esi
mov dword [ebp - 4], 0
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4175e0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.0040d1f0
push 1
push 0x4c12d0
lea ecx, [ebp - 0x28]
call fcn.0040d1f0
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
push 0
cmova eax, dword [ebp - 0x28]
push 0
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x417686
push 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
push 8
lea eax, [ebp - 0x34]
xorps xmm0, xmm0
push eax
push 0
push 0
push 0x2d0c14
push edi
movlpd qword [ebp - 0x34], xmm0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x41774e
cmp byte [ebp - 0x30], 0
jne 0x41774e
cmp byte [ebp - 0x2e], 0
jne 0x41774e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x4176c7
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4176bd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4177cd
push ecx
push edx
call fcn.004804a9
add esp, 8
mov ecx, esi
mov dword [ebp - 0x44], 0
xorps xmm0, xmm0
mov dword [ebp - 0x40], 0
movups xmmword [ebp - 0x54], xmm0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4176e1
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x54]
call fcn.004082b0
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 4], 1
mov eax, dword [edx + 4]
cmp eax, dword [edx + 8]
je 0x41772e
movups xmm0, xmmword [ebp - 0x54]
mov ecx, 7
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x44]
movq qword [eax + 0x10], xmm0
xor eax, eax
add dword [edx + 4], 0x18
mov word [ebp - 0x54], ax
jmp 0x41773d
lea ecx, [ebp - 0x54]
push ecx
push eax
mov ecx, edx
call fcn.004208f0
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
cmp ecx, 7
jbe 0x41778b
mov edx, dword [ebp - 0x54]
jmp 0x417760
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x41778b
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x417781
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4177cd
push ecx
push edx
call fcn.004804a9
add esp, 8
push 0
push esi
call fcn.00482077
add esp, 8
cmp word [eax + 2], 0
lea esi, [eax + 2]
jne 0x417570
mov eax, dword [ebp - 0x38]
push eax
call fcn.0048092e
add esp, 4
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.0048049b
mov esp, ebp
pop ebp
ret
call fcn.00485a5d
int3