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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ecx
mov esi, eax
lea edi, [ebp - 4]
xor ecx, ecx
mov cl, byte [esi]
cmp cl, 2
jb 0x47f82f
mov cl, 2
mov byte [edi], cl
inc esi
inc edi
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 8], edx
xor eax, eax
push ebp
push 0x47fce3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
mov cl, 2
call fcn.00403360
mov dword [ebp - 0x2c], 0xff
mov eax, dword [ebp - 0x2c]
call fcn.00408c4c
mov dword [ebp - 0x24], eax
lea edx, [ebp - 4]
lea eax, [ebp - 0x3c]
call fcn.00403354
mov edx, 0x47fcf4
lea eax, [ebp - 0x3c]
mov cl, 3
call fcn.00403324
lea edx, [ebp - 0x3c]
lea eax, [ebp - 0x38]
call fcn.00404cec
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x24]
call fcn.0040a1cc
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 6
ja case.default.0x47f8a3
jmp dword [eax*4 + 0x47f8aa]
mov eax, dword [ebp - 8]
mov byte [eax + 3], 0
jmp case.default.0x47f8a3
mov eax, dword [ebp - 8]
mov byte [eax + 3], 1
jmp case.default.0x47f8a3
mov eax, dword [ebp - 8]
mov byte [eax + 3], 2
jmp case.default.0x47f8a3
mov eax, dword [ebp - 8]
mov byte [eax + 3], 3
jmp case.default.0x47f8a3
mov eax, dword [ebp - 8]
mov byte [eax + 3], 4
jmp case.default.0x47f8a3
mov eax, dword [ebp - 8]
mov byte [eax + 3], 5
jmp case.default.0x47f8a3
mov eax, dword [ebp - 8]
mov byte [eax + 3], 6
mov eax, dword [ebp - 8]
mov dx, word [0x47fcf8]
mov word [eax + 4], dx
lea eax, [ebp - 4]
call fcn.0047f6e4
test al, al
je 0x47fc50
mov eax, dword [ebp - 8]
add eax, 0x14
push eax
mov eax, dword [ebp - 8]
add eax, 0x10
push eax
mov eax, dword [ebp - 8]
add eax, 0xc
push eax
mov eax, dword [ebp - 8]
add eax, 8
push eax
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_GetDiskFreeSpaceA
xor eax, eax
push ebp
push 0x47f9aa
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 8
call fcn.00402adc
mov ebx, eax
push ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [0x4aa924]
mov eax, dword [eax]
call eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
mov dword [eax + 0x20], edx
mov edx, dword [ebp - 0x14]
mov dword [eax + 0x24], edx
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x20]
mov dword [eax + 0x28], edx
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0x2c], edx
mov edx, 8
mov eax, ebx
call fcn.00402b0c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47f9f0
mov eax, dword [ebp - 0x2c]
call fcn.00408c4c
mov ebx, eax
mov eax, dword [ebp - 0x2c]
call fcn.00408c4c
mov esi, eax
mov eax, dword [ebp - 0x2c]
push eax
push esi
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 8]
add eax, 0x18
push eax
mov eax, dword [ebp - 0x2c]
push eax
push ebx
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x47fcbb
mov eax, dword [ebp - 8]
add eax, 0x30
mov edx, ebx
call fcn.00404c80
mov eax, dword [ebp - 8]
add eax, 0x38
mov edx, esi
call fcn.00404c80
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x18]
xor edx, edx
push edx
push eax
lea edx, [ebp - 0x34]
mov eax, 8
call fcn.0040959c
lea eax, [ebp - 0x40]
push eax
mov ecx, 4
mov edx, 1
mov eax, dword [ebp - 0x34]
call fcn.00404fc4
push dword [ebp - 0x40]
push 0x47fd04
lea eax, [ebp - 0x44]
push eax
mov ecx, 4
mov edx, 5
mov eax, dword [ebp - 0x34]
call fcn.00404fc4
push dword [ebp - 0x44]
mov eax, dword [ebp - 8]
add eax, 0x34
mov edx, 3
call fcn.00404e24
mov eax, ebx
call fcn.00402b0c
mov eax, esi
call fcn.00402b0c
mov eax, dword [ebp - 0x24]
call fcn.00402b0c
mov eax, dword [ebp - 0x30]
and eax, 1
cmp eax, 1
jne 0x47fadc
mov eax, dword [ebp - 8]
mov ax, word [eax + 4]
or ax, word [0x47fd08]
mov edx, dword [ebp - 8]
mov word [edx + 4], ax
mov eax, dword [ebp - 0x30]
and eax, 2
cmp eax, 2
jne 0x47fafc
mov eax, dword [ebp - 8]
mov ax, word [eax + 4]
or ax, word [0x47fd0c]
mov edx, dword [ebp - 8]
mov word [edx + 4], ax
mov eax, dword [ebp - 0x30]
and eax, 4
cmp eax, 4
jne 0x47fb1c
mov eax, dword [ebp - 8]
mov ax, word [eax + 4]
or ax, word [0x47fd10]
mov edx, dword [ebp - 8]
mov word [edx + 4], ax
mov eax, dword [ebp - 0x30]
and eax, 8
cmp eax, 8
jne 0x47fb3c
mov eax, dword [ebp - 8]
mov ax, word [eax + 4]
or ax, word [0x47fd14]
mov edx, dword [ebp - 8]
mov word [edx + 4], ax
mov eax, dword [ebp - 0x30]
and eax, 0x8000
cmp eax, 0x8000
jne 0x47fb60
mov eax, dword [ebp - 8]
mov ax, word [eax + 4]
or ax, word [0x47fd18]
mov edx, dword [ebp - 8]
mov word [edx + 4], ax
mov eax, dword [ebp - 0x30]
and eax, 0x10
cmp eax, 0x10
jne 0x47fb80
mov eax, dword [ebp - 8]
mov ax, word [eax + 4]
or ax, word [0x47fd1c]
mov edx, dword [ebp - 8]
mov word [edx + 4], ax
cmp dword [ebp - 0x28], 0xff
jne 0x47fb9e
mov eax, dword [ebp - 8]
mov ax, word [eax + 4]
or ax, word [0x47fd20]
mov edx, dword [ebp - 8]
mov word [edx + 4], ax
mov eax, dword [ebp - 0x30]
and eax, 0x20
cmp eax, 0x20
jne 0x47fbbe
mov eax, dword [ebp - 8]
mov ax, word [eax + 4]
or ax, word [0x47fd24]
mov edx, dword [ebp - 8]
mov word [edx + 4], ax
mov eax, dword [ebp - 0x30]
and eax, 0x40
cmp eax, 0x40
jne 0x47fbde
mov eax, dword [ebp - 8]
mov ax, word [eax + 4]
or ax, word [0x47fd28]
mov edx, dword [ebp - 8]
mov word [edx + 4], ax
mov eax, dword [ebp - 0x30]
and eax, 0x80
cmp eax, 0x80
jne 0x47fc02
mov eax, dword [ebp - 8]
mov ax, word [eax + 4]
or ax, word [0x47fd2c]
mov edx, dword [ebp - 8]
mov word [edx + 4], ax
mov eax, dword [ebp - 0x30]
and eax, 0x100
cmp eax, 0x100
jne 0x47fc26
mov eax, dword [ebp - 8]
mov ax, word [eax + 4]
or ax, word [0x47fd30]
mov edx, dword [ebp - 8]
mov word [edx + 4], ax
mov eax, dword [ebp - 0x30]
and eax, 0x200
cmp eax, 0x200
jne 0x47fcbb
mov eax, dword [ebp - 8]
mov ax, word [eax + 4]
or ax, word [0x47fd34]
mov edx, dword [ebp - 8]
mov word [edx + 4], ax
jmp 0x47fcbb
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax + 8], edx
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax + 0x14], edx
mov eax, dword [ebp - 8]
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
mov eax, dword [ebp - 8]
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0
mov eax, dword [ebp - 8]
add eax, 0x30
call fcn.00404a88
mov eax, dword [ebp - 8]
add eax, 0x34
call fcn.00404a88
mov eax, dword [ebp - 8]
add eax, 0x38
call fcn.00404a88
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax + 0x18], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47fcea
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.00404aac
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.00404aac
ret