Function at 0x510b10
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c5a57
mov eax, dword fs:[0]
push eax
sub esp, 0xc8c
mov eax, dword [0x61f138]
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 eax, ecx
mov dword [ebp - 0xc74], eax
mov edi, dword [eax + 8]
lea ebx, [eax + 4]
mov esi, dword [ebx]
cmp esi, edi
je 0x510b70
lea ecx, [esi + 0x18]
call fcn.00445c30
mov ecx, esi
call fcn.00445c30
add esi, 0x40
cmp esi, edi
jne 0x510b52
mov esi, dword [ebx]
mov eax, dword [ebp - 0xc74]
lea ecx, [eax + 0x10]
mov dword [ebx + 4], esi
call fcn.00480c90
lea eax, [ebp - 0xc30]
push eax
push 0x800
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp word [ebp - 0xc30], 0
lea esi, [ebp - 0xc30]
je 0x510d83
push 0x20a
lea eax, [ebp - 0x430]
push 0
push eax
call fcn.00586880
push 0x20a
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.00586880
add esp, 0x18
mov dword [ebp - 0xc78], 0
lea eax, [ebp - 0x220]
mov dword [ebp - 0xc7c], 0
mov dword [ebp - 0xc74], 0
push 0x105
push eax
lea eax, [ebp - 0xc74]
push eax
lea eax, [ebp - 0xc7c]
push eax
lea eax, [ebp - 0xc78]
push eax
push 0x105
lea eax, [ebp - 0x430]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x510d60
xor eax, eax
mov dword [ebp - 0xc60], 0
mov dword [ebp - 0xc5c], 7
mov word [ebp - 0xc70], ax
mov dword [ebp - 0xc48], eax
mov dword [ebp - 0xc44], 7
mov word [ebp - 0xc58], ax
mov ecx, esi
mov dword [ebp - 4], eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x510c60
sub ecx, edx
sar ecx, 1
dec ecx
lea eax, [esi + ecx*2]
sub eax, esi
lea ecx, [ebp - 0xc70]
sar eax, 1
push eax
push esi
push 0
push 0
call fcn.0049baf0
push 3
push 0x5f299c
lea ecx, [ebp - 0xc58]
call fcn.00445cb0
lea eax, [ebp - 0xc90]
mov dword [ebp - 0xc40], 0
push eax
lea eax, [ebp - 0xc88]
mov dword [ebp - 0xc3c], 0
push eax
lea eax, [ebp - 0xc98]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov eax, dword [ebp - 0xc88]
mov edi, dword [ebx + 4]
mov dword [ebp - 0xc38], eax
mov eax, dword [ebp - 0xc84]
mov dword [ebp - 0xc34], eax
lea eax, [ebp - 0xc70]
push eax
cmp dword [ebx + 8], edi
je 0x510d3b
mov ecx, edi
mov dword [ebp - 0xc80], edi
call fcn.00441370
lea eax, [ebp - 0xc58]
mov byte [ebp - 4], 1
push eax
lea ecx, [edi + 0x18]
call fcn.00441370
mov eax, dword [ebp - 0xc40]
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0xc3c]
mov dword [edi + 0x34], eax
mov eax, dword [ebp - 0xc38]
mov dword [edi + 0x38], eax
mov eax, dword [ebp - 0xc34]
mov dword [edi + 0x3c], eax
add dword [ebx + 4], 0x40
jmp 0x510d43
push edi
mov ecx, ebx
call fcn.00514520
lea ecx, [ebp - 0xc58]
mov dword [ebp - 4], 0xffffffff
call fcn.00445c30
lea ecx, [ebp - 0xc70]
call fcn.00445c30
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x510d65
sub eax, edx
sar eax, 1
lea esi, [esi + eax*2]
add esi, 2
cmp word [esi], cx
jne 0x510ba1
mov eax, dword [0x6d3584]
cmp eax, dword [0x6d3588]
je 0x510ed8
xor eax, eax
mov dword [ebp - 0xc60], 0
mov dword [ebp - 0xc5c], 7
mov word [ebp - 0xc70], ax
mov dword [ebp - 0xc48], eax
mov dword [ebp - 0xc44], 7
mov word [ebp - 0xc58], ax
push 7
push str.Network
lea ecx, [ebp - 0xc70]
mov dword [ebp - 4], 2
call fcn.00445cb0
push 3
push 0x5f6e74
lea ecx, [ebp - 0xc58]
call fcn.00445cb0
push 0x6d3650
mov dword [ebp - 0xc40], 0
mov dword [ebp - 0xc3c], 0
mov dword [ebp - 0xc38], 0xffffffff
mov dword [ebp - 0xc34], 0xffffffff
mov dword [ebp - 0xc80], 0x6d3650
call fcn.0055d042
add esp, 4
test eax, eax
je 0x510e3f
push eax
call fcn.0055ca85
add esp, 4
mov byte [ebp - 4], 3
lea eax, [ebp - 0xc70]
mov esi, dword [ebx + 4]
push eax
cmp dword [ebx + 8], esi
je 0x510e9c
mov ecx, esi
mov dword [ebp - 0xc78], esi
call fcn.00441370
lea eax, [ebp - 0xc58]
mov byte [ebp - 4], 4
push eax
lea ecx, [esi + 0x18]
call fcn.00441370
mov eax, dword [ebp - 0xc40]
mov dword [esi + 0x30], eax
mov eax, dword [ebp - 0xc3c]
mov dword [esi + 0x34], eax
mov eax, dword [ebp - 0xc38]
mov dword [esi + 0x38], eax
mov eax, dword [ebp - 0xc34]
mov dword [esi + 0x3c], eax
add dword [ebx + 4], 0x40
jmp 0x510ea4
push esi
mov ecx, ebx
call fcn.00514520
push 0x6d3650
mov byte [ebp - 4], 5
call fcn.0055d067
add esp, 4
test eax, eax
je 0x510ec2
push eax
call fcn.0055ca85
add esp, 4
lea ecx, [ebp - 0xc58]
call fcn.00445c30
lea ecx, [ebp - 0xc70]
call fcn.00445c30
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.0056eeb4
mov esp, ebp
pop ebp
ret