Function at 0x4590d0
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 0x459101
mov word [esp + 0x38], 0x5c
test esi, esi
lea eax, [esp + 0x38]
cmovne eax, esi
push eax
call fcn.004495b0
add esp, 4
mov edi, eax
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
cmp dword [0x7eea50], 0
mov dword [esp + 0x24], eax
jne 0x459177
call fcn.004ebec0
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 0x459166
push str.GetDiskFreeSpaceExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x7eea4c], eax
mov dword [0x7eea50], 1
jmp 0x45917c
mov eax, dword [0x7eea4c]
mov dword [0x7eea50], 1
jmp 0x45917c
mov eax, dword [0x7eea4c]
test eax, eax
jne 0x4592b6
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.004541f0
add esp, 8
test esi, esi
je case.default.0x4592e8
mov eax, ebx
cmp eax, 3
ja case.default.0x4592e8
jmp dword [eax*4 + 0x459464]
mov eax, dword [esp + 0x34]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x64da90]
mov eax, dword [esp + 0x14]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x64da90]
mov eax, dword [esp + 0xc]
mulsd xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x64da90]
mulsd xmm1, xmm0
movsd qword [esp + 0x28], xmm1
jmp case.default.0x4592e8
mov eax, dword [esp + 0x34]
movd xmm2, eax
shr eax, 0x1f
cvtdq2pd xmm2, xmm2
addsd xmm2, qword [eax*8 + 0x64da90]
mov eax, dword [esp + 0xc]
movd xmm3, eax
cvtdq2pd xmm3, xmm3
shr eax, 0x1f
addsd xmm3, qword [eax*8 + 0x64da90]
mov eax, dword [esp + 0x1c]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x64da90]
mulsd xmm1, xmm2
mulsd xmm1, xmm3
movsd qword [esp + 0x28], xmm1
cmp ebx, 2
jne case.default.0x4592e8
mov eax, dword [esp + 0x14]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x64da90]
mulsd xmm0, xmm2
mulsd xmm0, xmm3
subsd xmm1, xmm0
movsd qword [esp + 0x28], xmm1
jmp case.default.0x4592e8
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.004541f0
add esp, 8
test esi, esi
je case.default.0x4592e8
mov eax, ebx
cmp eax, 3
ja case.default.0x4592e8
jmp dword [eax*4 + 0x459474]
mov eax, dword [esp + 0x10]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x64da90]
mov eax, dword [esp + 0xc]
mulsd xmm1, qword [0x70efc8]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x64da90]
addsd xmm1, xmm0
movsd qword [esp + 0x28], xmm1
jmp case.default.0x4592e8
mov eax, dword [esp + 0x18]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x64da90]
mov eax, dword [esp + 0x14]
mulsd xmm1, qword [0x70efc8]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x64da90]
addsd xmm1, xmm0
movsd qword [esp + 0x28], xmm1
jmp case.default.0x4592e8
mov eax, dword [esp + 0x20]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x64da90]
mov eax, dword [esp + 0x1c]
mulsd xmm1, qword [0x70efc8]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x64da90]
addsd xmm1, xmm0
movsd qword [esp + 0x28], xmm1
jmp case.default.0x4592e8
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 + 0x64da90]
mov eax, dword [esp + 0x1c]
mulsd xmm3, qword [0x70efc8]
cvtsi2sd xmm0, eax
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x64da90]
mov eax, dword [esp + 0x18]
cvtsi2sd xmm1, eax
shr eax, 0x1f
addsd xmm3, xmm0
xorps xmm0, xmm0
addsd xmm1, qword [eax*8 + 0x64da90]
mov eax, dword [esp + 0x14]
mulsd xmm1, qword [0x70efc8]
cvtsi2sd xmm0, eax
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x64da90]
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 0x459456
push edi
call fcn.0047f840
add esp, 4
fld qword [esp + 0x28]
pop edi
pop esi
pop ebx
add esp, 0x24
ret