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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f8748
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x6b000c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x444], ecx
mov edi, dword [ebp + 8]
test edi, edi
je 0x4a7404
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov esi, eax
cmp esi, 1
je 0x4a7404
test esi, esi
je 0x4a7404
push edi
call fcn.004a7ae0
test eax, eax
jne 0x4a7404
cmp esi, 3
jne 0x4a7404
mov si, word [0x639ee0]
push 0x206
push eax
lea eax, [ebp - 0x21a]
mov word [ebp - 0x21c], si
push eax
call fcn.00588800
add esp, 0xc
mov word [ebp - 0x424], si
lea eax, [ebp - 0x422]
push 0x206
push 0
push eax
call fcn.00588800
add esp, 0xc
mov dword [ebp - 0x43c], 0
lea eax, [ebp - 0x424]
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x438], 0
push 0x103
push eax
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x43c]
push eax
push 0x103
lea eax, [ebp - 0x21c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x4a7404
push 0x38
call fcn.00560437
add esp, 4
mov dword [ebp - 0x430], eax
mov dword [ebp - 4], 0
mov ecx, eax
call fcn.004a5da0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x430], esi
test esi, esi
je 0x4a7404
mov ecx, edi
mov dword [esi + 0x28], 3
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a72a0
sub ecx, edx
sar ecx, 1
push ecx
push edi
mov ecx, esi
call fcn.0040c9d0
lea ebx, [esi + 4]
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x42c], ebx
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a72d0
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
mov ecx, ebx
call fcn.0040c9d0
lea ecx, [ebp - 0x424]
lea eax, [ecx + 2]
mov dword [ebp - 0x428], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a7300
sub ecx, dword [ebp - 0x428]
lea eax, [ebp - 0x424]
sar ecx, 1
push ecx
push eax
lea ecx, [esi + 8]
call fcn.0040c9d0
lea eax, [esi + 0x18]
push eax
lea eax, [esi + 0x14]
push eax
lea eax, [esi + 0x10]
push eax
lea eax, [esi + 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
mov ecx, esi
call fcn.004a61d0
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
jne 0x4a73f0
push 0x650a3c
mov edx, str.LocalDiskVolumeName
lea ecx, [ebp - 0x440]
call fcn.004db870
add esp, 4
mov dword [ebp - 4], 1
or edi, 0xffffffff
mov ecx, dword [eax]
mov esi, dword [ebx]
sub esi, 0x10
lea edx, [ecx - 0x10]
cmp edx, esi
je 0x4a73ce
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x4a73bf
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x4a73bf
mov ecx, edx
call fcn.0040c950
mov dword [ebp - 0x428], eax
mov ecx, edi
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x4a73b2
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x428]
mov ecx, dword [ebp - 0x42c]
add eax, 0x10
mov dword [ecx], eax
jmp 0x4a73ce
push dword [ecx - 0xc]
push ecx
mov ecx, dword [ebp - 0x42c]
call fcn.0040c9d0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x440]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x4a73f0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x444]
lea eax, [ebp - 0x430]
push eax
call fcn.004a7e80
jmp 0x4a7406
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0055f9be
mov esp, ebp
pop ebp
ret 4