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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6e013c
mov eax, dword fs:[0]
push eax
sub esp, 0x30c
mov eax, dword [0x831704]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2fc], ecx
mov dword [ebp - 0x314], 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
mov edx, eax
mov esi, dword [sym.imp.MSVCR120.dll_free]
xor ecx, ecx
mov dword [ebp - 0x2f8], edx
mov edi, 1
mov dword [0x880ec4], 0
mov dword [ebp - 0x2f4], ecx
nop
mov eax, edi
shl eax, cl
test edx, eax
je 0x464a29
lea eax, [ecx + 0x41]
mov dword [ebp - 0x16], 0x5c003a
mov word [ebp - 0x18], ax
xor eax, eax
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov byte [ebp - 0x2f0], 0
cmp eax, 3
jne 0x464a23
mov eax, dword [ebp - 0x2f4]
add eax, 0x41
push eax
lea eax, [ebp - 0x280]
push str.__c:
push eax
call fcn.0045e610
add esp, 0xc
lea eax, [ebp - 0x280]
push 0
push 0
push 3
push 0
push 3
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x304], eax
cmp eax, 0xffffffff
je 0x464944
push 0x227
call fcn.006cff38
add esp, 4
mov dword [ebp - 0x2cc], 0
mov edi, eax
mov dword [ebp - 0x2c8], 0
lea eax, [ebp - 0x318]
push 0
push eax
push 0x227
push edi
push 0xc
lea eax, [ebp - 0x2cc]
mov dword [edi + 4], 0x227
push eax
push 0x2d1400
push dword [ebp - 0x304]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x464925
mov eax, dword [ebp - 0x2f0]
mov ecx, 1
cmp dword [edi + 0x1c], 7
movzx eax, al
cmove eax, ecx
mov dword [ebp - 0x2f0], eax
push edi
call ebx
add esp, 4
push dword [ebp - 0x304]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x2f0], 0
jne 0x464a23
push 0
push 0
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x464a23
mov al, byte [ebp - 0x2f4]
add al, 0x41
movsx eax, al
push eax
lea eax, [ebp - 0x24]
push str._c:_
push eax
call fcn.0046e030
mov edx, dword [ebp - 0x30c]
add esp, 0xc
mov ecx, dword [ebp - 0x310]
call fcn.006d276c
push dword [0x77db98]
mulsd xmm0, qword [0x7d28d0]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2ec]
push eax
movsd qword [ebp - 0x308], xmm0
call fcn.004291b0
add esp, 0xc
mov edx, eax
mov dword [ebp - 4], 0
mov eax, dword [0x880ec4]
lea eax, [eax + eax*4]
lea ecx, [eax*8 + 0x881920]
cmp ecx, edx
je 0x4649de
push 0xffffffffffffffff
push 0
push edx
call fcn.00419170
mov dword [ebp - 4], 0xffffffff
push dword [ebp - 0x2d4]
call esi
add esp, 4
cmp dword [ebp - 0x2d8], 8
jb 0x464a04
push dword [ebp - 0x2ec]
call ebx
add esp, 4
mov eax, dword [0x880ec4]
movsd xmm0, qword [ebp - 0x308]
inc dword [0x880ec4]
lea eax, [eax + eax*4]
movsd qword [eax*8 + 0x881940], xmm0
mov edx, dword [ebp - 0x2f8]
mov eax, dword [ebp - 0x2f4]
mov edi, 1
inc eax
mov dword [ebp - 0x2f4], eax
mov ecx, eax
cmp eax, 0x1a
jl 0x464830
cmp dword [0x880ec4], 0
jle 0x464b64
mov eax, edi
mov edi, 0x881940
mov dword [ebp - 0x2f0], eax
mov ebx, eax
cmp eax, dword [0x880ec4]
jge 0x464b41
lea esi, [edi + 8]
movsd xmm0, qword [esi + 0x20]
comisd xmm0, xmmword [edi]
jbe 0x464b2b
xor eax, eax
mov dword [ebp - 0x2ac], 7
push 0xffffffffffffffff
mov word [ebp - 0x2c0], ax
lea ecx, [ebp - 0x2c0]
lea eax, [edi - 0x20]
mov dword [ebp - 0x2b0], 0
push 0
push eax
call fcn.00419170
mov dword [ebp - 0x2a8], 0
lea eax, [edi - 0x20]
mov dword [ebp - 4], 1
cmp eax, esi
je 0x464ad5
push 0xffffffffffffffff
push 0
push esi
lea ecx, [edi - 0x20]
call fcn.00419170
lea eax, [ebp - 0x2c0]
cmp esi, eax
je 0x464aeb
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00419170
movsd xmm1, qword [edi]
movsd xmm0, qword [esi + 0x20]
mov dword [ebp - 4], 0xffffffff
push dword [ebp - 0x2a8]
movsd qword [edi], xmm0
movsd qword [esi + 0x20], xmm1
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
cmp dword [ebp - 0x2ac], 8
jb 0x464b2b
push dword [ebp - 0x2c0]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
inc ebx
add esi, 0x28
cmp ebx, dword [0x880ec4]
jl 0x464a71
mov eax, dword [ebp - 0x2f0]
inc eax
add edi, 0x28
mov dword [ebp - 0x2f0], eax
dec eax
cmp eax, dword [0x880ec4]
mov eax, dword [ebp - 0x2f0]
jl 0x464a60
mov ebx, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
xor eax, eax
mov dword [ebp - 0x28c], 7
push eax
push 0x7ca0c0
lea ecx, [ebp - 0x2a0]
mov dword [ebp - 0x290], 0
mov word [ebp - 0x2a0], ax
call fcn.00419290
mov dword [ebp - 0x288], 0
xor esi, esi
mov dword [ebp - 4], 2
cmp dword [0x880ec4], esi
jle 0x464c53
mov edi, 0x881920
jmp 0x464bc0
push 0x7ca0c4
lea eax, [ebp - 0x2ec]
push edi
push eax
call fcn.005c7cb0
add esp, 0xc
lea ecx, [ebp - 0x2a0]
mov byte [ebp - 4], 3
cmp ecx, eax
je 0x464bed
push 0xffffffffffffffff
push 0
push eax
call fcn.00419170
mov byte [ebp - 4], 2
push dword [ebp - 0x2d4]
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
cmp dword [ebp - 0x2d8], 8
jb 0x464c14
push dword [ebp - 0x2ec]
call ebx
add esp, 4
lea eax, [ebp - 0x2a0]
push eax
call fcn.005f7e50
add esp, 4
test al, al
jne 0x464cc1
lea eax, [ebp - 0x2a0]
push 0x1ff
push eax
call fcn.005d6bd0
add esp, 8
test al, al
jne 0x464cc1
inc esi
add edi, 0x28
cmp esi, dword [0x880ec4]
jl 0x464bc0
mov esi, dword [ebp - 0x2fc]
xor eax, eax
push eax
push 0x7ca064
mov ecx, esi
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
call fcn.00419290
push dword [ebp - 0x288]
mov dword [esi + 0x18], 0
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
cmp dword [ebp - 0x28c], 8
jb 0x464ca3
push dword [ebp - 0x2a0]
call ebx
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006d1ba7
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x2fc]
xor eax, eax
push 0xffffffffffffffff
push eax
mov ecx, esi
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
lea eax, [ebp - 0x2a0]
push eax
call fcn.00419170
jmp 0x464c79