Function at 0x4fdb50
Capabilities:
Get disk size

Disassembly:
sub esp, 0x24
movzx ecx, word [esp + 0x2c]
xor edx, edx
cmp word [esp + 0x2c], 3
xorps xmm0, xmm0
push ebx
push esi
mov esi, dword [esp + 0x30]
cmovbe edx, ecx
movsd qword [esp + 0x24], xmm0
movzx ebx, dx
push edi
test esi, esi
jne 0x4fdb81
mov word [esp + 0x38], 0x5c
test esi, esi
lea eax, [esp + 0x38]
cmovne eax, esi
push eax
call fcn.004e00f0
add esp, 4
mov edi, eax
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
cmp dword [0x8a8994], 0
mov dword [esp + 0x24], eax
jne 0x4fdbf7
call fcn.0057e070
test eax, eax
mov edx, str.kernel32.dll
mov ecx, str.unicows.dll
cmove ecx, edx
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4fdbe6
push str.GetDiskFreeSpaceExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x8a8990], eax
mov dword [0x8a8994], 1
jmp 0x4fdbfc
mov eax, dword [0x8a8990]
mov dword [0x8a8994], 1
jmp 0x4fdbfc
mov eax, dword [0x8a8990]
test eax, eax
jne 0x4fdd36
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x40]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
xor ecx, ecx
mov esi, eax
test esi, esi
push 0
setne cl
push ecx
call fcn.004edd70
add esp, 8
test esi, esi
je case.default.0x4fdd68
mov eax, ebx
cmp eax, 3
ja case.default.0x4fdd68
jmp dword [eax*4 + 0x4fdee4]
mov eax, dword [esp + 0x34]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x7676e0]
mov eax, dword [esp + 0x14]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x7676e0]
mov eax, dword [esp + 0xc]
mulsd xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x7676e0]
mulsd xmm1, xmm0
movsd qword [esp + 0x28], xmm1
jmp case.default.0x4fdd68
mov eax, dword [esp + 0x34]
movd xmm2, eax
shr eax, 0x1f
cvtdq2pd xmm2, xmm2
addsd xmm2, qword [eax*8 + 0x7676e0]
mov eax, dword [esp + 0xc]
movd xmm3, eax
cvtdq2pd xmm3, xmm3
shr eax, 0x1f
addsd xmm3, qword [eax*8 + 0x7676e0]
mov eax, dword [esp + 0x1c]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x7676e0]
mulsd xmm1, xmm2
mulsd xmm1, xmm3
movsd qword [esp + 0x28], xmm1
cmp ebx, 2
jne case.default.0x4fdd68
mov eax, dword [esp + 0x14]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x7676e0]
mulsd xmm0, xmm2
mulsd xmm0, xmm3
subsd xmm1, xmm0
movsd qword [esp + 0x28], xmm1
jmp case.default.0x4fdd68
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x14]
push ecx
push edi
call eax
mov esi, eax
push 0
push esi
call fcn.004edd70
add esp, 8
test esi, esi
je case.default.0x4fdd68
mov eax, ebx
cmp eax, 3
ja case.default.0x4fdd68
jmp dword [eax*4 + 0x4fdef4]
mov eax, dword [esp + 0x10]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x7676e0]
mov eax, dword [esp + 0xc]
mulsd xmm1, qword [0x76d850]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x7676e0]
addsd xmm1, xmm0
movsd qword [esp + 0x28], xmm1
jmp case.default.0x4fdd68
mov eax, dword [esp + 0x18]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x7676e0]
mov eax, dword [esp + 0x14]
mulsd xmm1, qword [0x76d850]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x7676e0]
addsd xmm1, xmm0
movsd qword [esp + 0x28], xmm1
jmp case.default.0x4fdd68
mov eax, dword [esp + 0x20]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x7676e0]
mov eax, dword [esp + 0x1c]
mulsd xmm1, qword [0x76d850]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x7676e0]
addsd xmm1, xmm0
movsd qword [esp + 0x28], xmm1
jmp case.default.0x4fdd68
mov eax, dword [esp + 0x20]
xorps xmm3, xmm3
xorps xmm0, xmm0
xorps xmm1, xmm1
cvtsi2sd xmm3, eax
shr eax, 0x1f
addsd xmm3, qword [eax*8 + 0x7676e0]
mov eax, dword [esp + 0x1c]
mulsd xmm3, qword [0x76d850]
cvtsi2sd xmm0, eax
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x7676e0]
mov eax, dword [esp + 0x18]
cvtsi2sd xmm1, eax
shr eax, 0x1f
addsd xmm3, xmm0
xorps xmm0, xmm0
addsd xmm1, qword [eax*8 + 0x7676e0]
mov eax, dword [esp + 0x14]
mulsd xmm1, qword [0x76d850]
cvtsi2sd xmm0, eax
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x7676e0]
addsd xmm1, xmm0
subsd xmm3, xmm1
movsd qword [esp + 0x28], xmm3
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
test edi, edi
je 0x4fded6
push edi
call fcn.004a6790
add esp, 4
fld qword [esp + 0x28]
pop edi
pop esi
pop ebx
add esp, 0x24
ret