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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e3f79
mov eax, dword fs:[0]
push eax
sub esp, 0x77c
mov eax, dword [0x534008]
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 ebx, edx
mov esi, ecx
push 0xb
xor eax, eax
mov dword [ebp - 0x778], 0
mov dword [ebp - 0x774], 0
lea ecx, [ebp - 0x788]
push str.Shell32.dll
mov dword [ebp - 0x778], 0
mov dword [ebp - 0x774], 7
mov word [ebp - 0x788], ax
call fcn.0040a960
mov dword [ebp - 4], 0
lea eax, [ebp - 0x788]
push eax
call fcn.00485760
mov ecx, eax
call fcn.00485820
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x788]
call fcn.0040a900
test edi, edi
je 0x47da06
push str.SHGetFileInfoW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x47da06
xor eax, eax
mov dword [ebp - 0x498], 0
mov dword [ebp - 0x494], 0
mov dword [ebp - 0x498], 0
mov dword [ebp - 0x494], 7
mov word [ebp - 0x4a8], ax
mov dword [ebp - 4], 1
mov dword [ebp - 0x480], eax
mov dword [ebp - 0x47c], eax
mov dword [ebp - 0x480], eax
mov dword [ebp - 0x47c], 7
mov word [ebp - 0x490], ax
mov byte [ebp - 4], 2
mov dword [ebp - 0x468], eax
mov dword [ebp - 0x464], eax
mov dword [ebp - 0x468], eax
mov dword [ebp - 0x464], 7
mov word [ebp - 0x478], ax
mov dword [ebp - 4], 4
push 0x2b4
push eax
lea eax, [ebp - 0x770]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x47d9b9
mov eax, dword [esi]
push 0x610
push 0x2b4
lea ecx, [ebp - 0x770]
push ecx
push 0
push eax
call edi
test eax, eax
jne 0x47da0d
mov dword [ebp - 4], 6
lea ecx, [ebp - 0x478]
call fcn.0040a900
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x490]
call fcn.0040a900
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4a8]
call fcn.0040a900
xor al, al
jmp 0x47dcdc
lea ecx, [ebp - 0x764]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47da16
sub ecx, edx
lea eax, [ebp - 0x764]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x4a8]
call fcn.0040a960
lea ecx, [ebp - 0x55c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47da41
sub ecx, edx
lea eax, [ebp - 0x55c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x490]
call fcn.0040a960
push 0x20a
lea eax, [ebp - 0x430]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x20a
lea eax, [ebp - 0x220]
mov dword [ebp - 0x4b4], 0
push 0
push eax
mov dword [ebp - 0x4b0], 0
mov dword [ebp - 0x4ac], 0
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x47dab4
mov eax, dword [esi]
push 0x104
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x4ac]
push ecx
lea ecx, [ebp - 0x4b0]
push ecx
lea ecx, [ebp - 0x4b4]
push ecx
push 0x104
lea ecx, [ebp - 0x430]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x47dbd9
xor eax, eax
lea ecx, [ebp - 0x220]
mov word [ebp - 0x18], ax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47db00
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x478]
call fcn.0040a960
cmp dword [esi + 0x14], 8
mov byte [ebp - 0x448], 1
mov dword [ebp - 0x438], 0
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x43c], 0
jb 0x47db59
mov esi, dword [esi]
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x440]
push eax
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x438]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x47dbfd
mov esi, dword [ebp - 0x434]
mov eax, esi
mov edi, dword [ebp - 0x438]
imul eax, edi
push 0
push edi
mov dword [ebp - 0x460], eax
mov eax, dword [ebp - 0x43c]
mul esi
push edx
push eax
call fcn.004d32e0
mov dword [ebp - 0x458], eax
mov eax, dword [ebp - 0x440]
mov dword [ebp - 0x454], edx
mul esi
push 0
push edi
push edx
push eax
call fcn.004d32e0
mov dword [ebp - 0x450], eax
mov dword [ebp - 0x44c], edx
jmp 0x47dbfd
xorps xmm0, xmm0
mov dword [ebp - 0x460], 0
movlpd qword [ebp - 0x458], xmm0
movlpd qword [ebp - 0x450], xmm0
mov byte [ebp - 0x448], 0
lea eax, [ebp - 0x4a8]
cmp ebx, eax
je 0x47dc23
cmp dword [ebp - 0x494], 8
mov ecx, ebx
push dword [ebp - 0x498]
cmovae eax, dword [ebp - 0x4a8]
push eax
call fcn.0040a960
lea ecx, [ebx + 0x18]
lea eax, [ebp - 0x490]
cmp ecx, eax
je 0x47dc4a
cmp dword [ebp - 0x47c], 8
push dword [ebp - 0x480]
cmovae eax, dword [ebp - 0x490]
push eax
call fcn.0040a960
lea ecx, [ebx + 0x30]
lea eax, [ebp - 0x478]
cmp ecx, eax
je 0x47dc71
cmp dword [ebp - 0x464], 8
push dword [ebp - 0x468]
cmovae eax, dword [ebp - 0x478]
push eax
call fcn.0040a960
mov eax, dword [ebp - 0x460]
mov dword [ebx + 0x48], eax
mov eax, dword [ebp - 0x458]
mov dword [ebx + 0x50], eax
mov eax, dword [ebp - 0x454]
mov dword [ebx + 0x54], eax
mov eax, dword [ebp - 0x450]
mov dword [ebx + 0x58], eax
mov eax, dword [ebp - 0x44c]
mov dword [ebx + 0x5c], eax
mov al, byte [ebp - 0x448]
mov byte [ebx + 0x60], al
mov dword [ebp - 4], 9
lea ecx, [ebp - 0x478]
call fcn.0040a900
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x490]
call fcn.0040a900
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4a8]
call fcn.0040a900
mov al, 1
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.004b5f6c
mov esp, ebp
pop ebp
ret