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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x5322a8]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
xor ecx, ecx
mov dword [ebp - 0x48], eax
xor eax, eax
mov dword [ebp - 0x2c], edi
mov word [ebp - 0x28], cx
mov dword [ebp - 0x26], eax
mov dword [ebp - 0x22], eax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x16], eax
mov dword [ebp - 0x12], eax
mov dword [ebp - 0xe], eax
mov word [ebp - 0xa], ax
nop
movzx ecx, word [eax + 0x523b1c]
mov word [ebp + eax - 0x28], cx
add eax, 2
cmp cx, di
jne 0x4b6090
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, eax
mov dword [ebp - 0x30], ebx
cmp ebx, edi
je 0x4b62ed
test bl, 1
je 0x4b62dd
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
add edx, 0x41
push eax
mov word [ebp - 0x28], dx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x4b62dd
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0x3c]
push edx
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x28]
push ecx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x44], edi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x3c]
cmp eax, edi
jne 0x4b610d
cmp ecx, edi
je 0x4b6131
mov esi, dword [ebp - 0x40]
mov edx, dword [ebp - 0x44]
shl eax, 0x16
shr ecx, 0xa
add eax, ecx
shl esi, 0x16
shr edx, 0xa
add esi, edx
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], edi
jmp 0x4b6134
mov esi, dword [ebp - 0x54]
push 0x200
call fcn.004e4240
push 0x200
mov ebx, eax
push edi
push ebx
call fcn.004e7d90
lea eax, [ebp - 0x28]
mov edx, ebx
mov ecx, eax
add esp, 0x10
sub edx, ecx
jmp 0x4b6160
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, di
jne 0x4b6160
lea edi, [ebx - 2]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4b6172
mov edx, dword [0x51d454]
mov eax, ebx
mov dword [edi], edx
lea edx, [eax + 2]
jmp 0x4b6190
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4b6190
mov ecx, dword [ebp - 0x5c]
sub eax, edx
sar eax, 1
push 0xa
lea eax, [ebx + eax*2]
push eax
shr ecx, 0xa
push ecx
call fcn.004e45ff
add esp, 0xc
lea edi, [ebx - 2]
jmp 0x4b61c0
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4b61c0
mov edx, dword [0x51d454]
mov eax, ebx
mov dword [edi], edx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4b61e0
sub eax, edx
sar eax, 1
push 0xa
lea eax, [ebx + eax*2]
push eax
shr esi, 0xa
push esi
call fcn.004e45ff
add esp, 0xc
lea edi, [ebx - 2]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4b6204
mov ecx, dword [0x51d454]
mov eax, ebx
mov dword [edi], ecx
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4b6220
sub eax, edx
sar eax, 1
mov edx, 1
mov word [ebx + eax*2], dx
mov eax, ebx
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4b6240
mov esi, dword [ebp - 0x48]
sub eax, edx
mov ecx, esi
sar eax, 1
lea edi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4b6257
sub ecx, edi
sar ecx, 1
add ecx, eax
cmp ecx, 0x1800
jae 0x4b62ed
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4b6275
sub eax, edx
sar eax, 1
mov eax, ebx
jne 0x4b62a1
mov edx, esi
sub edx, ebx
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4b6290
jmp 0x4b62cf
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4b62a3
sub eax, edx
lea edi, [esi - 2]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4b62b3
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebx
call fcn.004e424b
mov ebx, dword [ebp - 0x30]
add esp, 4
xor edi, edi
inc dword [ebp - 0x2c]
shr ebx, 1
mov dword [ebp - 0x30], ebx
cmp ebx, edi
jne 0x4b60b7
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.004e3946
mov esp, ebp
pop ebp
ret